bad results for the search for context on the empty element tags
I use Oracle DBMS 11.1 and 11.2 and created an index on an XML column context (article group: PATH_SECTION_GROUP).When you enter a query like
SELECT count (*) FROM my_table t WHERE contains (t.co_xml,'hasPath(/tag1/tag2)') > 0
I get bad results if tag2 is an empty element tag (< tag2 / >) that appears somewhere in the
XML instance, but is NOT directly under tag1.
For example, the following XML instance is (but shouldn't!):
< a >
blah blah < tag3 > < tag1 > < / tag3 > < / tag1 >
blah < tag4 > < tag2 / > < / tag4 >
< /a >
This seems to happen only for the empty element tags. Is this a known bug and does anyone know of a workaround?
Thank you in advance for your help!
Roman
Like you, I've been looking in the wrong places, bug of thought, rather than documented behavior. Finally, I came across the following excerpt from the next section of the documentation on haspath in Oracle text reference.
http://download.Oracle.com/docs/CD/B28359_01/text.111/b28304/cqoper.htm#i997393
Limits
Because of the way in which XML data section are saved, false match may appear with XML sections that are completely empty as follows:
A query of HASPATH(A/B/E) or HASPATH(A/D/C) falsely corresponds to this document. This type of fake correspondent can be avoided by inserting some text between the empty tags.
Tags: Database
Similar Questions
-
Found 0 results for my browser missing important elements, the menu..., whole tool bar drop down to print, copy, work offline, file, save, bookmarks, history. I just installed latest foxfire on windows xp. Found a few instructions, but they called the keys of my computer does not have (key under OSX there no file, edit, history, help, tools, navigation, all the things that your directions say to use. Also, I'm still hanging and the message a scrip is running. I don't know what are the thises scripts but I of course don't need them.
This has happened
Each time Firefox opened
== I just noticed it. It probably happened when I upgraded foxfire.
Don't see the menu bar not (File, Edit, View, history, Favorites, tools, help)?
Turn on/off the menu bar is a new feature in version 3.6.
(Linux and OSX see: what happened to the file, edit and view menus? )
Windows Method 1. Press and hold the key and press the letters of the following in this exact order: V T M
Windows method 2 Press and release the button. The Menu bar is displayed; then choose ~ ~ red: V ~ ~ iew > ~ ~ red: T ~ ~ oolbars and click on ~ ~ Red: M ~ ~ enu Bar.
The menu bar should now be displayed permanently, unless you turn it off again using view > toolbars. Check = not displayed, NO check mark is not displayed.
See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missingNavigation, bar toolbar bookmarks and other toolbars under view > toolbars. By clicking on one of them will place a check mark (display) or remove the check mark (not shown).
To display the status bar, view, and then click status bar to place a check mark (display) or remove the check mark (not shown).
Mode full screen
http://KB.mozillazine.org/netbooks#Full_screenSee also:
Back and front toolbar buttons or others are missing
Customize controls, buttons, and Firefox toolbars -
Bad results using the scientific calculator
When you use the scientific calculator of Wondows 7, when I type 126/(3.6*6.48), I get a wrong result: 23.328. When I use Excel to do the same, I get the correct result: 5.40. Any idea?
I tried this using the scientific calculator and got the correct results, enter the numbers exactly how you wrote them and then hit equal.
-
Acrobat DC more bad results of the marking of Word 2010
Does using Acrobat DC and Word 2010 usually produced marking poor results? Everything gets the tag, but 95% of the labels are incorrect and role mapping is in every sense (title 1 title [final paragraph, text body mapped to title 2, etc.). Fortunately, lists and tables come out well. The results were not significantly different between a Word well formatted, built from a solid model structure or file Word a bit chaotic, riddled with direct formatting.
I am relatively new to mark the PDF files for accessibility, and I wonder if I would get better results by using Word 2010 with Acrobat X or XI or Word 2013 2016 with Acrobat DC. My goal is to have structured accessible PDF files without the need of treatment of syndrome of carpal for my hands.
Yikes! Certainly worth a try a newer version of Word to see if you get the best results, although I use Word 2010 and 2015 and have not noticed a huge difference. A rate of 20% on average, cleaning is a reasonable expectation, IMHO.
-
Oracle db bad result on the subquery error
Hello
I work with Oracle databases up to 10 g and I found an error and could not find any documentation on this subject yet. Maybe you can help me.
The error is fairly easy to reproduce. If you run the following query in adapting the parameters that you should get a result, the problem is that you should get only an error!
Select * from user_tab_columns
where table_name in
(
Select table_name from < TABLE_B >
);
Parameter: TABLE_B
Description: This must be an existing table in the schema that is not any field from the table table_name.
As I said, the subquery is false, so if you try to run separately it fails. The problem is when you run the two together because, if the link field has the same name, it returns all the values in the table in the outer query.
Do you know if this is solved a specific patch of 10g or 11g?
Thanks in advance for your interest.
Best regards
Leo ([email protected])This isn't a mistake, given that table_name is a valid column in the external table name. If you start using table alias names in front of the column names, you will get the error.
example of
SQL> select * from user_tab_columns u 2 where u.table_name in 3 (select d.table_name from dual d 4 ); (select d.table_name from dual d * ERROR at line 3: ORA-00904: "D"."TABLE_NAME": invalid identifier
What oracle is without any alias table corresponds to this selection:
SQL> select count(*) from user_tab_columns u 2 where u.table_name in 3 (select u.table_name from dual d 4 ); COUNT(*) ---------- 3553 SQL>
including.
Published by: Sven w. on July 24, 2009 17:27
-
Make the result of the empty calculation if a factor is equal to 0
I found a similar discussion with this thread, but it didn't answer exactly what I needed. I wish that the result of a calculation that is simple to be empty if a factor is empty or zero.
For example, I have a calcuation C field that is the sum of the fields A and B. A will always have a value, but B does not. If B is empty or 0, I C does not show any output value. Is this possible in Acrobat? Thank you.
Sure. A custom calculation script might look like:
(function () {}
Get the first value in the field, as a number
var v1 = + getField("text1").value;
Get the second field value, as a string
var S2 = getField("text2").valueAsString;
Converts a string to a number;
var v2 = + s2
Set this field to the sum value if the second field is not empty or if not equal to zero
Event.Value = s2 & v2! == 0 ? v1 + v2;:
})();
-
How to operate the user enter value query and get the result on the text element
Hello
I'm really beginning to JDeveloper and ADF, I want to execute the query below, before with forms, I just add: TEXT_NAME to enhance the users entries, what should I do now with ADF, really unclear question and I would be grateful all help with that.
Select
NVL (min (substr (a.StartTime, 1, 8)), 0) Service_Start_Time, nvl (sum (a.sessionvolume), 0) Total_Traffic_KB
Of
aaa_bill one
where
msid =: TEXT_ITEM
and starttime > = (select max (fee) FROM aaa_bill
where msid =: TEXT_ITEM and accountreason = 5);You can use a form of parameter ADF for this requirement.
https://blogs.Oracle.com/Shay/entry/combining_multiple_queries_and -
Insert first in the results of the empty table in ORA-00001: unique constraint
Hi all
We are running Oracle 10 g. I modified an Oracle stored procedure instead of using the cursor for loops or bulk collect for use INSERT with the SELECT statement. When I run this version, I get ORA-00001 on first insertion. ONCE the exception is thrown. I checked that the array is empty. I don't think the ORA-00001 is the real cause of the problem. I have a syntax problem I'm not aware of.
Here's the script:
Thank you for your help,CREATE OR REPLACE PROCEDURE SP_LOAD_TEST (p_rpt_month varchar2) IS --=================================================== -- define exceptions --=================================================== DUP_VAL_ON_INDEX EXCEPTION; --=================================================== -- read the USER data --=================================================== CURSOR c_get_USERS_TBL IS select DIV_CD, WRKR_USER_ID, RPT_MONTH from USERS_TBL WHERE RPT_MONTH = P_RPT_MONTH ORDER BY DIV_CD, WRKR_USER_ID; --=================================================== -- get the location name from the TLOC_DMSN table --=================================================== CURSOR c_wrkr_loc_name ( p_wrkr_user_id varchar2) IS select WRKR_LOC from .TLOC_DMSN WHERE TRIM(wrkr_user_id) = TRIM(p_wrkr_user_id); --=================================================== -- define a place holder for each row fetched from each cursor --=================================================== c_get_USERS_TBL_row c_get_USERS_TBL%ROWTYPE; --=================================================== -- define variables --=================================================== v_elapsed_time VARCHAR2(50); v_elapsed_time_hh FLOAT; v_elapsed_time_mi FLOAT; v_elapsed_time_ss FLOAT; v_mod_ss FLOAT; v_mod_mi FLOAT; v_elapsed_time_minus_ss FLOAT; v_div_cd1 USERS_TBL.div_cd%TYPE; v_wrkr_user_id1 USERS_TBL.wrkr_user_id%TYPE; v_rpt_month1 USERS_TBL.wrkr_user_id%TYPE; v_div_cd2 USERS_TBL.div_cd%TYPE; v_wrkr_user_id2 USERS_TBL.wrkr_user_id%TYPE; V_rpt_month2 USERS_TBL.rpt_month%TYPE; v_usage_hour FACT_TBL.usage_hour%TYPE; v_bytes_sent FACT_TBL.bytes_sent%TYPE; v_bytes_rcvd FACT_TBL.bytes_rcvd%TYPE; v_total_bytes FACT_TBL.total_bytes%TYPE; v_div_nm FACT_TBL.div_nm%TYPE; v_wrkr_loc .TLOC_DMSN.WRKR_LOC%TYPE; v_wrkr_dspl_nm FACT_TBL.wrkr_dspl_nm%TYPE; v_wrkr_ph FACT_TBL.wrkr_ph%TYPE; v_url FACT_TBL.url%TYPE; v_divcd_userid VARCHAR2(12); v_prev_divcd_userid VARCHAR2(12); v_prev_div_cd USERS_TBL.div_cd%TYPE; v_prev_wrkr_user_id FACT_TBL.wrkr_user_id%TYPE; v_date_id NUMBER(10); v_user CHAR(8); v_seq_id NUMBER; v_insert_counter NUMBER; v_mmyyyy VARCHAR2(6); v_mm VARCHAR2(2); BEGIN --=================================================== -- initialize variables --=================================================== v_div_cd1 := ' '; v_prev_div_cd := ' '; v_wrkr_user_id1 := ' '; v_wrkr_loc := ' '; v_rpt_month1 := ' '; v_divcd_userid := ' '; v_prev_divcd_userid := ' '; v_prev_wrkr_user_id := ' '; v_insert_counter := 0; v_seq_id := 0; v_mmyyyy := ' '; --=================================================== -- build run month in mmyyyy format before writing to TLOAD_LOG table --=================================================== CASE WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'JANUARY' THEN v_mm := '01'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'FEBRUARY' THEN v_mm := '02'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'MARCH' THEN v_mm := '03'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'APRIL' THEN v_mm := '04'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'MAY' THEN v_mm := '05'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'JUNE' THEN v_mm := '06'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'JULY' THEN v_mm := '07'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'AUGUST' THEN v_mm := '08'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'SEPTEMBER' THEN v_mm := '09'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'OCTOBER' THEN v_mm := '10'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'NOVEMBER' THEN v_mm := '11'; WHEN UPPER(SUBSTR(p_rpt_month,1,INSTRB(p_rpt_month,'-',1,1)-1)) = 'DECEMBER' THEN v_mm := '12'; END CASE; v_mmyyyy := v_mm||substr(p_rpt_month,INSTRB(p_rpt_month,'-',1,1)+1,4); --=================================================== -- get the name of user running this procedure --=================================================== v_user := ' '; select user into v_user from dual; --=================================================== -- get date id for the current date --=================================================== v_date_id := 0; select date_id into v_date_id from .dwtime5 where DWDATE = trunc(sysdate); --=================================================== -- read each ROW IN the users TABLE --=================================================== -- Open the cursor and intialize the active set Open c_get_USERS_TBL; -- Retrieve the first row, to setup for the WHILE loop FETCH c_get_USERS_TBL into c_get_USERS_TBL_row; -- Continue looping while there are more rows to fetch WHILE c_get_USERS_TBL%FOUND LOOP v_div_cd1 := c_get_USERS_TBL_row.div_cd; v_wrkr_user_id1 := c_get_USERS_TBL_row.wrkr_user_id; v_rpt_month1 := c_get_USERS_TBL_row.rpt_month; CASE WHEN v_div_cd1 <> v_prev_div_cd THEN v_prev_divcd_userid := v_divcd_userid; v_divcd_userid := v_div_cd1||v_wrkr_user_id1; WHEN v_wrkr_user_id1 <> v_prev_wrkr_user_id THEN v_prev_divcd_userid := v_prev_div_cd||v_prev_wrkr_user_id; v_divcd_userid := v_div_cd1||v_wrkr_user_id1; END CASE; Open c_wrkr_loc_name(v_wrkr_user_id1); Fetch c_wrkr_loc_name INTO v_wrkr_loc; IF c_wrkr_loc_name%NOTFOUND THEN v_wrkr_loc := NULL; END IF; Close c_wrkr_loc_name ; v_seq_id := 0; select SEQ_USER_ID.nextval into v_seq_id from dual; INSERT INTO DETAIL_TBL_TEST(DETAIL_PK_ID, DIVCD_USERID, WRKR_USER_ID, WRKR_DSPL_NM, RPT_MONTH, USAGE_HOUR, DIV_CD, DIV_NM, WRKR_LOC, BYTES_RCVD, BYTES_SENT, TOTAL_BYTES, WRKR_PH, URL, CREATE_DT, CREATE_USER, CREATE_PGM, UPDATE_DT, UPDATE_USER, UPDATE_PGM ) SELECT v_seq_id, v_divcd_userid, wrkr_user_id, wrkr_dspl_nm, rpt_month, usage_hour, div_cd, div_nm, v_wrkr_loc, bytes_rcvd, bytes_sent, total_bytes, wrkr_ph, url, SYSDATE, v_user, 'SP_LOAD_DETAIL_TBL', SYSDATE, v_user, 'SP_LOAD_DETAIL_TBL' FROM FACT_TBL, DUAL WHERE DIV_CD = v_div_cd1 AND TRIM(wrkr_user_id) = TRIM(v_wrkr_user_id1) AND rpt_month = v_rpt_month1 ORDER BY DIV_CD, WRKR_USER_ID; v_insert_counter := v_insert_counter + 1; IF v_insert_counter >= 500 THEN -- commit changes COMMIT; v_insert_counter := 0; END IF; FETCH c_get_USERS_TBL into c_get_USERS_TBL_row; END LOOP; Close c_get_USERS_TBL; --=================================================== -- final commit --=================================================== COMMIT; EXCEPTION WHEN DUP_VAL_ON_INDEX THEN DBMS_OUTPUT.PUT_LINE('Attempting to insert a row that already exists!!!'); WHEN OTHERS THEN RAISE; --END; --=================================================== -- procedure ended. --=================================================== END;
SeyedHello
I guess that the error you receive notice when you were in that sequence was ORA-02287: unauthorized by sequence number. This is because you had the ORDER BY clause in there. If you get rid of it, you can just use the sequence number in the insert without the need first to select it...
With ORDER BY
XXXX> insert 2 into 3 dt_t1 4 SELECT 5 dt_seq.NEXTVAL, 6 SYSDATE 7 FROM 8 dual 9 CONNECT BY LEVEL 10 <=10 11 ORDER BY 12 1 13 / dt_seq.NEXTVAL, * ERROR at line 5: ORA-02287: sequence number not allowed here
No ORDER OF
XXXX> insert 2 into 3 dt_t1 4 SELECT 5 dt_seq.NEXTVAL, 6 SYSDATE 7 FROM 8 dual 9 CONNECT BY LEVEL 10 <=10 11 / 10 rows created.
Of course, I guess you want a new id for each row, as seems to be the name of the primary key column.
HTH
David
Published by: Bravid on December 19, 2011 16:07
Published by: Bravid on December 19, 2011 16:08
-
scenartist closed captions export results in the empty file of CCS
I imported my legends like MRS. When I export via the menu media export I get:
-----------------------
Scenarist_SCC V1.0
-----------------------
so no subtitles in it (it takes about 500 of them!).
If I export in other formats such as stl spruce, it works.
No idea why this is the case?
/ Bernd
Hello there - if you try to take 708 caption data and put it in a sidecar of CSC, it won't work - CSC sidecar format supports data only 608.
-
Hello
I use structured system subfolder to keep my organized emails (hundreds and hundreds of folders).
When I do a search, get the list of results and in this list, I found the email I was after, HOW can I find the message? In other words, how can I open the folder that contains this particular email?
Thank you in advance for your time and effort.Right click on a folder, search for Messages, and then click 'Search subfolders', then enter the selection criteria, search, search for a result in the lower pane, then 'open folder '. The message is opened in the Message pane and the containing folder is highlighted in the folders pane.
It isn't a global search and location does not show the full folder path, but it is another option. Note that the location column can also be displayed in the message search window.
-
I am tracking my own Web site position in search rankings. For a short period, he appeared on page 1 for certain keywords. It is now on page 2 or 3, (as seen by me and other users when you use another computer or a browser), but when I search on my computer I see the old pages of results showing the top of page 1. How can I erase these old pages of results?
If you press Ctrl and F5 at the same time, that changes? I think that Google (I guess that's what you're referring to the) changes in search results is inspired by a little if you are connected and preferences, etc.. Try to connect on google if you are connected.
-
I want to uninstall a toolbar that has been the result of the search for something specific
Hello
I want to uninstall a toolbar that has been the result of the search for printable piano music.
I uninstalled the stuff accompanying this research but I can't get rid of the toolbar. Can I just download an another toolbar as C.NET or what?I have a Dell dimension 4700 desktop, XP and I have ' yet to learn through this forum help and everyone.
Thank you
Gina Davis
Original title: how to uninstall toolbat Inbox
(IE unknown version)
Hello
Tools are what bar you referring? That's a browser or another program?
Method 1:
Run this fixit to remove it completely.http://support.Microsoft.com/mats/Program_Install_and_Uninstall/Method 2:
You can uninstall the toolbar by following the steps below:
a. open your Internet browser.
b. click on 'Tools' then 'Add-ons' in IE; Click on "Tools" and "Manage Add-ons."
c. find the add-on "Toolbar" in the list of available modules.
d. remove the add-on toolbar in Internet Explorer, select the toolbar and click "disable".
If you want to remove the toolbar, you can do this by uninstalling it in Add or remove programs. -
Identify the follow-up sessions: search the MMC gave no results for NBSMBLOGGER
Trying to familiarize myself with the trace specific in payments & follow-up session. I see NBSMBLOGGER and impossible to find exactly what this monitor is watching and where one can get a report of this execution. The MMC search gave no results for NBSMBLOGGER. See guidelines on the way to master these monitors.
A success in the registry suggests that it is the "NetBT, SMB Trace Provider" at least used by WMI, perhaps in collaboration with different diagnoses.
-
Title of the page and the information for the results of the search engines
Where can I publish the page information to be given on the results of the search engines?
Hello
Please see the links below.
http://helpx.Adobe.com/Muse/using/strategies-optimizing-sites-search-engines.html
http://www.Muse-themes.com/blogs/News/6103624-SEO-in-Adobe-Muse-search-engine-optimization
Concerning
Vivek
-
Fix the activation parameters for caching the results of the customer? No performance gain
I gathered and made every detail I could search. I use Oracle EE 11.2 g 32-bit on Windows 7 64 bit
But despite I activate client caching result, I see no difference response API despite I have remote, connect to the server on LAN 1Gbit network
I see > difference 1 sec only when you enable caching of server (2nd opening files 300% faster 57 dry-> 18 s) and 32 MB are cached for the opening.
I don't know how to see the client_result_cache except the network traffic, detours, IO
MEASURES_
* 1.* I activated the parameter setting Statement Caching on the client and dbhome and set it equal to my ora.ini file OPEN_CURSORS (300) the registry as possible. And rebooted the system, of course.
---------
HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > ORACLE > KEY_OraClient11g_home1 > OLED > StmtCacheSize
HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > ORACLE > KEY_OraDb11g_home1 > OLED > StmtCacheSize
-There is no standard oracle registry dir - probably cause its 64 bit +.
-* 2 I have Super-activated all relevant SYSTEM parameters. 3 X the size necessary to be cached, FORCED cach, 100% of the result, 600000ms lag(10min)
-------
client_result_cache_lag... large integer 600000
client_result_cache_size... great integer.100M
...
db_cache_advice... chain... WE
db_cache_size... large integer 0
...
... full object_cache_max_size_percent... 10
... full object_cache_optimal_size... 102400
... full result_cache_max_result... 100
result_cache_max_size... big integer.100M-this is for caching wright + server
result_cache_mode... chain... FORCE
... full result_cache_remote_expiration... 30
session_cached_cursors... around... 50
-Is everything OK? Why not better time response then?
The LAN 1Gbit 1 customer is perhaps too fast anyway, and I should try via internet or something?
Hope that you have an idea, I can't search to find or think of something.As said by John, SQL * Plus does not implement caching the result to the client. You write an application for OIC (or another application that knows the OIC calls appropriate to make) that implements the setting cache the result of the customer.
Your test is behaving as expected.
Justin
Maybe you are looking for
-
How can I block firefox Hello in my business network
We do not allow any kind of conversation in the office and spend a lot of time banning facebook, Skype, Gmail chat, etc., of our networks. Unfortunately, we rely heavily on Firefox for our interoffice web (intranet) applications.This sounds like anot
-
Satellite A210 how to reset the BIOS password unknown?
Hey guys I have a BIOS password on my Toshiba Satellite A210, I have no idea what it can be. One day, when I turned on my laptop, it came with a black screen with a blue rectangle in the Middle says "Enter password". I tried to enter my Windows login
-
Auto fill cells with color based on the result in the cell
Is it possible to automatically fill a color in an excel cell based on the result that is displayed in a cell for example, if the result is in (0.00 - 1.00 = green), (superior to-2.00 orange)... -1.00 0.54 -2.50
-
Cannot install DirectX? (Steam)
Hi, I have a freshly formatted Vista Home Premium x 64 and can play games very well. But when I go to play a game on Steam instantly "stops working" before it even comes into play. This is probably because DirectX just before I left to run it failed.
-
How import from Windows mail emails.
I recently bought a new laptop and I use free email of Windows that comes with the computer. I used this program on my old computer (I think it's Windows Mail or Windows Live Mail). I exported my old emails and a subfolders and I would like to impo