DRG-51030 (generic query extension) in a more restrictive query with AND
The folloing query returns a result:select count(*) from cust where contains(xmlcol, 'y% within name0') > 0;
COUNT(*)
----------
35205
The following query returns an error message, although it is more restrictiveselect count(*) from cust where contains(xmlcol, 'F% within name5 and y% within name0') > 0;
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-51030: wildcard query expansion resulted in too many terms
Is there a way to get the second query return a result (growing wildcard_maxterms can help for some queries, but not for all. As data grows, the parameter will not the solution)?Oracle 10.2.0.4
No matter how restrictive the query as a whole is, is the number of extensions for any individual term that matters.
Tags: Database
Similar Questions
-
DRG-51030: extension of generic query after the use of @.
The following query returns a single line:
Select * from userinterface where contains (searchtx, "Smith in name" and %gmx.de within the email) > 0;
Returns a line.
If I add (= > %@gmx.de within the email) the following error occurs:
Select * from userinterface where contains (searchtx, "Smith in name" and %@gmx.de within the email) > 0;
Returns
ERROR on line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle text error:
DRG-51030: extension of generic query resulted in terms too
@ Special character is causing the expansion of generic query? "@gmx.de" is more restictive compared to the 'gmx.de"(Oracle 10.2.0.4)
Select * from userinterface where contains (searchtx, "Smith in name" and % within the email) > 0;
also works and returns three rows.'@' is a character by default, which means that your search for "%@gmx" will turn into a search for the phrase "% gmx.
Because '%' on its own matches each word in the index, you get this error.
Not part of your question, but in general it's a bad idea to use wildcards, unless you use the option SUBSTRING_INDEX. With a wildcard to start Oracle text may not use the index on the table "list of words" $I and is forced to do a full table scan to find the corresponding tokens.
-
More than 1 SQL query with checkbox and error invalid number report
Hi all
I have two SQL query reports that each has an apex_item.checkbox and two processes for each report. A report/process works very well. It gives me an error of invalid number.
In addition, another query SQL (editable report) gives me the following error when using the Multi line process, delete.
ORA-06502: PL/SQL: digital or value error: character number conversion
error ORA-06502: PL/SQL: digital or value error: character number conversion
errorOk When I got a report from SQL query (with box and a process) and the query SQL (editable report) everything worked. It stopped working when I added another SQL query report (with box and a process).
A SQL query has the following in my query: apex_item.checkbox(3,email_id,'UNCHECKED') ""
The other SQL query has the following: apex_item.checkbox(2,b.file_id,'UNCHECKED') ""
Any help will be greatly appreciated,
Sylvia
Hi Reema,
I've recreated the region and now it works!
Thank you for this, looking at
Sylvia
-
After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?
Open Safari while holding the SHIFT key
Try to reset the settings of Safari:
1. open Safari
2. click on the Safari menu at the top (to the right of the Apple logo)
3. Select the Preferences/Privacy tab
4. click on remove all data from the Web site
5. close Safari.
Remove cache Safari files:
1. click on finder
2. look for the menu GO to top
3. click on GO and hold down the option key. This will show a user library folder.
4. click library and find the Caches folder
5. in the folder caches com.apple.Safari Ouvrezledossier
6. move the Cache.db file Trash.
This should solve the problem. If it does not help, try to disable the Safari extensions
1. open Safari
2. click on the Safari menu at the top (to the right of the Apple logo)
3. Select Preferences
4. find the Extensions tab
5 disable all extensions of
6. relaunch Safari
-
OfficeJet 8600 more: power cord with adapter for Officejet 8600 set more lost
Lost my power cord complete with adapter. Can I use a power cord generic Office Depot, without the 'square' on the wire? Or is it necessary to have the power cord with the adapter, as it was originally? It will damage my 8600 more to use a power cord without this "square" in the annex on my more than 8600 all-in-One? Thank you.
Hello @DB2,
I understand that you have lost the power cord for your HP Officejet Pro 8600 more e-all-in-one printer and you want to replace it. I would like to help you to solve this problem today. The HP Officejet 8600 more only comes with a power cord. The adapter is built into the back of your printer. You have to unscrew the back of your machine in order to access it. Therefore, if you buy a spare power cord it should work perfectly for you.
The power requirements for this machine are:
- Power: Universal power adapter (external)
- Power consumption: Input voltage: 100 to 240 VAC (± 10%), 50/60 Hz (± 3 Hz)
Output voltage: + 32V / + 12V to 1095 mA/170 my
- Consumption: 30 watt impression (project Quick Mode); 32 watts copy (Fast draft Mode)
You can buy a power cable of the store to use with your printer, or you can contact our Technical Support queue and buy the correct power cord for your printer by phone.
HP Technical Support can be reached at the: 800-474-6836.
If you do not live in the United States / Canada region, please click the link below to get help from your region number.
Please let me know if this information solves your problem. Thanks for joining the Forums from HP Support. I look forward to hear from you!
-
Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?
Welcome to Oracle Forms! Out of curiosity, what do you mean by 'new '? You are a student or new to an organization that uses Oracle Forms? Or just play with Oracle Forms to learn something new?
Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library. It's accessible, like most of the other products in the Builder menu > help.
Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query. When in this mode, there are various restrictions. Yet once, it will find more details in the Builder Help. In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode". There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.
Normal mode, as its name implies, is when it is in a State of 'normal '. Basically to do nothing in particular, but also not in ENTER QUERY mode. In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..
You will find additional information, as well as a lot of documentation on the product page of forms of OTN:
-
Write a SQL query with lines in columns
All the
I need help in writing a SQL query with lines in columns, let give u an example...
drop table activity;
CREATE TABLE 'ACTIVITY '.
(
"PROJECT_WID" NUMBER (22.0) NOT NULL,
VARCHAR2 (150 CHAR) "PROJECT_NO."
VARCHAR2 (800 CHAR) 'NAME '.
);
Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1683691, '10007', 12-121');
Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1684994, '10008', 12-122');
Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (1686296, '10009', 12-123');
Insert in the ACTIVITY (PROJECT_WID, PROJECT_NO, NAME) values (2225222, '9040', 12-124');
drop table lonet;
CREATE TABLE 'LONET.
(
VARCHAR2 (150 CHAR) "NAME."
NUMBER OF THE "ROOT."
VARCHAR2 (150 CHAR) "ENTRYVALUE".
);
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("GAC", 1683691, "LDE");
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('NAM', 1683691, 'LME');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('BAG', 1683691, 'ICE');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1683691, 'IKE');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('NAM', 1686291, "QTY");
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1686291, 'MAX');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("GAC", 1684994, "MTE");
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('PAP', 1684994, 'MAC');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('FMT', 1684994, 'NICE');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('FMR', 1684994, 'RAY');
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ('BAG', 1686296, "CAQ");
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("PAP", 1686296, "QAQ");
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("VANESSA", 1686296, "THEW");
INSERT INTO LONET (NAME, ROOT, ENTRYVALUE) VALUES ("ANDR", 1686296, "REYL");
commit;
Link: activity.project_wid = lonet.root
look like output
Project_wid Project_no NAME GAC NAM BAG RAC 1683691 10007 12-121 LDE LME LCE LKE 1684994 10008 12-122 MTE null null MAC 1686296 10009 12-123 null null CAQ QAQ 2225222 9040 12-124 null null null null two problems, in that I am running
1. I dono how simply we can convert rows to columns
2. for root = 1683691, there are double NAM and RAC in lonet table... ideally these data should not be there, but since its here, we can take a MAX so that it returns a value
3. There are undesirables who should be ignored
Once again my thought process is that we join the activity and 4 alias table lonet.
ask for your help in this
Thank you
Hello
This is called pivoting.
Here's a way to do it:
WITH relevant_data AS
(
SELECT a.project_wid, a.project_no, b.SID
, l.name AS lonet_name, l.entryvalue
Activity one
LEFT OUTER JOIN lonet l.root = a.project_wid l
)
SELECT *.
OF relevant_data
PIVOT (MAX (entryvalue)
FOR lonet_name IN ("GAC" IN the gac
"NAM" AS nam
'BAG' IN the bag
"RAC" AS cars
)
)
ORDER BY project_wid
;
Output:
PROJECT_WID PROJECT_NO GAC NAM BAG RAC NAME
----------- ---------- ---------- ---------- ---------- ---------- ----------
1683691 12 - 10007 121 LDE LME LCE LKE
1684994 MAC MTE 10008 12-122
1686296 12 - 10009 123 QAC QAQ
2225222 9040 12 - 124
To learn more about swivel, see the FAQ in the Forum: Re: 4. How can I convert rows to columns?
Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!
-
Hi all
I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue
Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool
I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).
Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2
So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.
My application uses SQL server 2008-2012 at the backend to store data from different sources.
Character set used: SQL_Latin1_General_CP1_CI_AS
To write and test queries: PL/SQL developer tool
My Client use Oracle 11 g
Character set used: Normal character: NLS_CHARACTER: AL16UTF16
National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521
I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.
Please let me know if I'm missing something or you need more information on this issue.
Thanks in advance,
HP
Simple answer. No.
Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.
-
AF:query with additional features
Hi all
JDev: 11.1.1.3 (11.1.1.5 migration)
We use the af:query component as our standard query module (seems logical).
Thanks to the Frank Nimphius 'validation of complex area of the af:query component' on the ADF Code corner.
It is clear, how to make the validation in an af:query component.
What we want to do is the following: on an existing field, add an icon/link that opens a pop-up window that contains
a taskflow, which contains a more complex query (with af:query ;-)). Must return the result of the tf
in the field in the first part of FY: query.
Is something like this?
Thank you.
Filip Huysmans.Filip,
No, you can not
Frank
-
SQL query with dynamic exercise
Hello
I wrote this query with static exercise and exercise, I need info on making the dynamic variables
Exercise: starts from July1st. This year up to June 30 is "2011" and July ' 1's '2012'
Exercise: July1st his '1' and June ' 1 his '12'
Query:
Select distinct o.c_num, o.ac_num, s.sub_ac_num, o.fiscal_year, o.ac_exp_date, s.sub_ac_ind
of org_account o
outer join left sub_account s
on o.c_num = s.c_num and o.ac_num = s.ac_num
where (o.ac_exp_date > = CURRENT_DATE or o.ac_exp_date is null)
and o.fiscal_year = * '2011' * -> need to be dynamic
and o.fiscal_period = * '12' * -> need to be dynamic
Thank you
Mano
Published by: user9332645 on June 2, 2011 18:55Hi, Mano,
Welcome to the forum!
Whenever you have a question, please post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.
Always tell what version of Oracle you are using.Since this is your first thread, I will post some examples of data for you:
CREATE TABLE table_x ( dt DATE ); INSERT INTO table_x (dt) VALUES (DATE '2010-12-31'); INSERT INTO table_x (dt) VALUES (DATE '2011-01-01'); INSERT INTO table_x (dt) VALUES (DATE '2011-06-02'); INSERT INTO table_x (dt) VALUES (DATE '2011-06-30'); INSERT INTO table_x (dt) VALUES (DATE '2011-07-01');
What is the output you can from these data?
DT FISCAL_YEAR FISCAL_PERIOD ----------- --------------- --------------- 31-Dec-2010 2011 06 01-Jan-2011 2011 07 02-Jun-2011 2011 12 30-Jun-2011 2011 12 01-Jul-2011 2012 01
If so, here's a way to get it:
SELECT dt , TO_CHAR ( ADD_MONTHS (dt, 6) , 'YYYY' ) AS fiscal_year , TO_CHAR ( ADD_MONTHS (dt, 6) , 'MM' ) AS fiscal_period FROM table_x ORDER BY dt ;
Since your exercise begins 6 months prior to the calendar year, you must add 6 months to the actual date for the fiscal year and month.
The above query produces strings for fiscal_year and fiscal_period. If you prefer to have the numbers, then use EXTRACT instead of TO_CHAR:
SELECT dt , EXTRACT ( YEAR FROM ADD_MONTHS (dt, 6) ) AS fiscal_year , EXTRACT ( MONTH FROM ADD_MONTHS (dt, 6) ) AS fiscal_period FROM table_x ORDER BY dt ;
The first query will work in Oracle 6 (and more).
I don't know when EXTRACT was introduced. Certainly, it works in Oracle 10 and may be available in older versions too. -
Is it possible to update a query with another query?
I'm trying to update a query with another query (see the attachment of the code). Here is my setup: I have a table in an Access database in which I enter a string in a form and an update. This string is a single record in another table in the same data source. The first table has one record to provide the second, which has many and will have more. Basically what I was asking is: is this a valid thing to do in coldfusion? If this isn't the case, please help with a method to alter. I'm still new to coldfusion.
The overall effect, I'm going to do is to display a folder as a profile of truck recommended on the website: www.truckerstoystore.net. Currently, I get an error when I try to view the page with the current configuration of the query.
Check out this page to see the error: www.truckerstoystore.net/currentTOW2.cfm
Assistance in this matter is greatly appreciated.
------------------------------------------------------------------------------------------ -----------------------------------------------------------------------The owner of the column has a data type of character and thus the value must be in single quotes
WHERE owner = "#Owner #
But as your learning, I suggest using cfqueryparam
WHERE owner =
Ken
-
iPhone 6s more wakes up with the movement
After iOS 10.0.1 upgrade, my iPhone 6 s more wakes up with the movement. I use my iPhone in a cradle on my bike. When I hit bumps it wake up which is very distracting! He has never done this before. Is there a way to disable this feature?
Shabby,
Select settings > display and brightness > "Raise to Wake" out
-
IOS 10 makes your iphone 6 more battery drain faster and feel hot
iOS 10 makes my iPhone 6 more battery drain faster and feel hot. Even charge my phone because my phone warm. I charged my phone three times per day.
It is the case for all the iPhone 6 as well as holders with iOS10?Every since going to iOS10, my 6 s more drains much faster - even after doing a factory reset.
I used to get 7 to 10 hours before hitting 40% when the iOS9
-
Hi, I have problem in my IPhone 6 more is the focus and blurry image when turn what to do?
for example, please find the attachment.
First check if your iPhone is eligible or not: https://www.apple.com/support/iphone6plus-isightcamera/
and if your iPhone is not affected, so go here: get help with the camera on your iPhone, iPad or iPod touch - Apple Support
-
I have stored more than 120 bookmarks and deleted the names to save space in the quick bookmark bar. Therefore, since the Bard got full, if a bookmark or folder had desciptive text next to it, the text would collapse until just the icon shows. If I hover over the icon, the test appears again. These days, I found easier to rank my favorites in folders, HOWEVER, I do not know which folder is because the text next to the icons folder remains reduced until I have pass the mouse on them. I want to customize it so that the text is fixed next to the icon or folder. How can I do this? Please help and thank you!
Incredible bookmarks try: https://addons.mozilla.org/firefox/addon/50722
Maybe you are looking for
-
prototype of the project file information
I have a request where I build a dll and the functions in the dll must be packaged for use in other software. I am creating the function wrapper for text file automatically. Ideally I ould like to use only the file of the project to do, but there is
-
Error code 646. I can't find the solution
I have Windows Vista Home Premium. I try to install the updates but the message: "Error code 646 Windows has encountered an unknown error." He said that I have missed on three things: 1. MS update for Microsoft Excel 2002 (KB973471) security; 2 updat
-
Hello I have a HP Pavilion dv6-1259dx. This morning when I tried to log on my laptop I have weird message "the user profile service has no logon" "unable to load the user profile. Anyone know what is happening with my laptop. Your contribution is ver
-
Install by pressing the F8 key.
My computer is a mess. We need a way too long to start, and the hard drive operates as if I have no recollection. (I have two gigibytes, the maximum of the motherboard will accept) I want to reinstall windows, but when I boot on my XP cd, I can't get
-
MIC not working not not with Vista Home Basic
Since I installed Vista Home Basic microphone does not work. It worked perfectly with Windows 98 earlier. The speakers are OK. The microphone is connected is not detected by the system. Vista has been updated with the Service Pack SP1. The sound card