ORA-29902 error with CONTAINS()
Hello,
I have trouble using the CONTAINS() function on an indexed document.
I created the index with
create index ikenndatenTextIndex
on kenndaten_as_column_500 x (kenndaten)
indextype is ctxsys.context
+++++++++++++++++++++++++++++++++++++++++++++
with Result:
Index created
+++++++++++++++++++++++++++++++++++++++++++++
where the column "kenndaten" contains XMLType Documents
Now, typing in isqlplus:
select extract(x.kenndaten,'/kenndaten/schlagworte')
from kenndaten_as_column_500 x
WHERE CONTAINS(kenndaten,'$("taken") INPATH (/kenndaten/schlagworte)') > 0;
++++++++++++++++++++++++++++++++++++++++++++++++++++
gets the desired result:
EXTRACT(X.KENNDATEN,'/KENNDATEN/SCHLAGWORTE')
<schlagworte>group an corporate the taken </schlagworte>
++++++++++++++++++++++++++++++++++++++++++++++++++++
Here is the Problem:
If I do not look for "taken" but for "was":
select extract(x.kenndaten,'/kenndaten/schlagworte')
from kenndaten_as_column_500 x
WHERE CONTAINS(kenndaten,'$("was") INPATH (/kenndaten/schlagworte)') > 0;
++++++++++++++++++++++++++++++++++++++++++++++++++++
I get:
select extract(x.kenndaten,'/kenndaten/schlagworte')
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
+++++++++++++++++++++++++++++++++++++++++++++++++++++
Using {was} instead of "was", typing \w\a\s or simply using ...CONTAINS(kenndaten,'$(was) INPATH...
gets the same result
I have no problem looking for words like "and","or","inpath" and the like
Any ideas?
Gregor Heuer
HI,
I don't know very well Oracle Text, but perhaps the next doc could you help on this one :
http://www.oracle.com/technology/products/text/index.html
http://www.oracle.com/technology/oramag/oracle/04-sep/o54text.html
Nicolas.
Similar Messages
-
CONTAINS clause and the ORA-29902 error.
Hello folks,
I am encountering the following error in APEX.
report error:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-10825: stored query does not exist: employee
DRG-10825: stored query does not exist: employee
Here is the rest of the information :
1. I have created the index on the column in question as specified here.
bq. {color:#0000ff} CREATE INDEX{color} \\ {color:#0000ff} \\ emp_idx ON meta_eul (display_name){color} \\ {color:#0000ff} \\ indextype is ctxsys.context; \\ {color}
2. I have created the sqe for the word as suggested [here |http://download-west.oracle.com/docs/cd/B19306_01/text.102/b14218/cqrypkg.htm#i997218]: employee
bq. {color:#0000ff} begin{color} \\ {color:#0000ff} \\ ctx_query.store_sqe('employee', 'empl or emp');{color} \\ {color:#0000ff} \\ end;{color}
3. When I execute the following sql in sql developer, I get results
bq. {color:#0000ff} SELECT SCORE(1), A.DISPLAY_NAME \\ FROM meta_eul a \\ WHERE 1 =1 \\ AND CONTAINS(A.DISPLAY_NAME , 'sqe(employee)', 1)> 0 \\ ORDER BY SCORE(1) \\ {color}
4. I have the same query in #3 above as a region in my Page.
When I execute it, I get the error that I have mentioned above.
Any thoughts ? Is this a limitation ?
I am on Apex version 3.0
Regards,
AtulThanks, Roel.
A similar option that worked out as an alternative is that I have changed the region code to :
bq. {color:#0000ff}SELECT SCORE(1), A.DISPLAY_NAME \\ FROM meta_eul a \\ WHERE 1 =1 \\ AND CONTAINS(A.DISPLAY_NAME , 'emp or empl or employee', 1)> 0 \\ ORDER BY SCORE(1) \\ {color}
and have avoided the sqe part. This doesn't seem to have an issue in Apex. -
ORA-29902: error in executing ODCIIndexStart() routine
Hi,
I have a problem with my text mining application.
when I start the classification procedure I get the following errors
Error executing statement: ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drcs_query
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "CTXSYS.DRVODM", line 676
ORA-01426: numeric overflow
ORA-06512: at line 1
After closing and restarting the SQL Navigator, most times it works again, but not every time.
Here is the procedure I use:
PROCEDURE sp_classify
IS
vc2_sqlcommand VARCHAR2(1000);
guete DBMS_SQL.number_table;
branche DBMS_SQL.varchar2_table;
BEGIN
vc2_sqlcommand := 'ALTER TABLE ergebnisse MOVE TABLESPACE xxx;
execute IMMEDIATE vc2_sqlcommand;
n_matchscore := 20;
INSERT INTO ergebnisse
SELECT rt.cat_id, pt.produktions_id, match_score(1) AS MatchScore
FROM produktionsdaten pt, trainingsregeln rt
WHERE matches ( rt.rule, pt.geschaeftsgegenstand, 1) > n_matchscore;
COMMIT;
vc2_sqlcommand :=
'CREATE INDEX I_ERG_PRODID ON ERGEBNISSE ' ||
'( PRODUKTIONS_ID ASC ) ' ||
'TABLESPACE XXX' ||
'STORAGE ( INITIAL 64K ' ||
'NEXT 64K ' ||
'PCTINCREASE 0 ' ||
execute IMMEDIATE vc2_sqlcommand;
Please help me
Greetz Steffi Schweppe
Message was edited by:
user634781I agree with Omar, However if you want to search using special character, you may want to look into the following example. I am not saying this may be a solution for you, however this may give you a start on how to deal with special character in you search.
In our enviroment we have "N" number of Science & Pharmacy & Chemical clients. They need the ability to search using special character for that we have done the following..
begin
select user into v_username from dual;
ctx_ddl.create_preference('orc_CTX_WLPREF', 'BASIC_WORDLIST');
ctx_ddl.set_attribute('orc_CTX_WLPREF','SUBSTRING_INDEX','TRUE');
ctx_ddl.set_attribute('orc_CTX_WLPREF','WILDCARD_MAXTERMS','2559');
ctx_ddl.Create_Preference('orc_LEXER','BASIC_LEXER');
ctx_ddl.Set_Attribute('orc_LEXER', 'index_themes', 'FALSE');
ctx_ddl.set_attribute('orc_LEXER','printjoins','0123456789%,./?;:<>[]{}\|+=-_()*&^$#@!''"%');
end;
And then siply create the index as follow..
create index index_name on activitylog(columnname)
indextype is ctxsys.context
parameters ('Wordlist CYBERLAB_CTX_WLPREF lexer CYBERLAB_LEXER memory 48M');
then I am able to do something like the following..
select count(*) from ACTIVITYLOG where contains (DESCRIPTION, '<%.htm@') > 0;
hope this helps.. -
ORA-20001: ORA-29902: error in executing ODCIIndexStart() routine
Hi, everyone!
I have an error as follow:
ORA-20001: ORA-29902: error in executing ODCIIndexStart() routine
ORA-06553: PLS-123: program too large
I can get the sql where the procedure through the error, and execute the sql in sqlplus, no error. Does anyone have experience with the error? or have some direction to solve problem? thank you!
My oracle version is 9.2.0.8.0 and sdo version is 9.2.0.8.0, too.I agree with Omar, However if you want to search using special character, you may want to look into the following example. I am not saying this may be a solution for you, however this may give you a start on how to deal with special character in you search.
In our enviroment we have "N" number of Science & Pharmacy & Chemical clients. They need the ability to search using special character for that we have done the following..
begin
select user into v_username from dual;
ctx_ddl.create_preference('orc_CTX_WLPREF', 'BASIC_WORDLIST');
ctx_ddl.set_attribute('orc_CTX_WLPREF','SUBSTRING_INDEX','TRUE');
ctx_ddl.set_attribute('orc_CTX_WLPREF','WILDCARD_MAXTERMS','2559');
ctx_ddl.Create_Preference('orc_LEXER','BASIC_LEXER');
ctx_ddl.Set_Attribute('orc_LEXER', 'index_themes', 'FALSE');
ctx_ddl.set_attribute('orc_LEXER','printjoins','0123456789%,./?;:<>[]{}\|+=-_()*&^$#@!''"%');
end;
And then siply create the index as follow..
create index index_name on activitylog(columnname)
indextype is ctxsys.context
parameters ('Wordlist CYBERLAB_CTX_WLPREF lexer CYBERLAB_LEXER memory 48M');
then I am able to do something like the following..
select count(*) from ACTIVITYLOG where contains (DESCRIPTION, '<%.htm@') > 0;
hope this helps.. -
We get this error with the following querry:
SELECT
DISTANCE FROM DIST_PTS
WHERE (CLLI = 'CHCGILCL') AND (MDSYS.SDO_NN (GEOLOC,
MDSYS.SDO_GEOMETRY (2001, NULL,
MDSYS.SDO_POINT_TYPE (-87.63804626464844, 41.879520416259766, NULL),
NULL, NULL), 'SDO_NUM_RES=1') = 'TRUE');
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13236: internal error in R-tree processing: [failed to allocate memory]
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84
ORA-06512: at line 1
Our table has 25 million records and we are using Oracle 8.1.7
We were getting this error with 8.1.6 and were advised to upgrade. We did but we get the same error. Has anyone seen this ?I am getting a similar error code trying to run the "Nearest
Neighbor" sample code:
error message:
ORA-29902: error in executing ODCIindexStart()routine
ORA-13207: incorrect use of the [NO UNITS SUPPORTED] operator
ORA-06512: at "MYSYS.SDO_INDEX_METHOD" line 83
partial code:
v_latlong := v_latlong.findlocation();
if v_latlong.numTotalCand > 0 then
v_lat := v_latlong.getLatitude(1);
v_long := v_latlong.getLongitude(1);
found3 := FALSE;
dist := .25;
while found3 = false loop
dist := dist + .25;
select a, b, c INTO r_a, r_b, r_c from atable where
SDO_WITHIN_DISTANCE(atable.GEOLOC,MDSYS.SDO_GEOMETRY
(2001,NULL,MDSYS.SDO_POINT_TYPE(v_long,v_lat,NULL),NULL,NULL),
'distance = dist, Unit=MILE, layer_gtype = POINT')
= 'TRUE';
cnt := cnt + 1;
end loop;
if cnt >= 2 then
found3:= TRUE;
end if;
The only references I am finding to the ODCI Index is in the
Oracle Data Cartridge Developers manual. SInce I am not
developing a Data Cartridge, I am assuming the error is coming
from either the Oracle Geocoder or the MapInfo implementation of
that. In either case I do not see how I can correct the
problem.
Is the suggestion that there might be a problem with the
geometry (in my case both are x,y points)?
Thank you for any help -
ORA-29902 Error when executing context query
We sometimes get the following error when executing a search based on keywords entered by a user:
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Error generating context stmt ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: interMedia Text error: DRG-50901: text query <HR></BLOCKQUOTE>
A demonstration of the error can be seen by going to the main
http://technet.oracle.com technet page and then performing a site search. Type in any of the following search phrases:
Oracle and not Microsoft
not Microsoft
and database
In my brief experimentation, the presence of any of
not, and, or
at the beginning of the keywords, or next to each other 'and not' within the keywords set causes the above oracle error.
OK, I could train the users not to do this, but with the potential for every net user on the planet using my site, it might take me some time to speak to all of them.
So how do I stop Intermedia from throwing up the error? I have written a quick parser to try to strip out offending entries, but that is not, imho, a good solution, as I do not know all the rules that will break it.
tiaYou need to write a text query parser. Check the Query Translator code samples from http://technet.oracle.com/sample_code/products/text/content.html
-
SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
I am running a SDO_RELATE operation on 2 geometries from 2 different tables. Spatial indexes are already created and the tables are also versioned.
Below is the spatial meta data for both the geometries in user_sdo_geom_metadata table:
DIMINFO is :
MDSYS.SDO_DIM_ELEMENT(MDSYS.SDO_DIM_ELEMENT(Easting,0,700000,0.001),MDSYS.SDO_DIM_ELEMENT(Northing,0,1300000,0.001),MDSYS.SDO_DIM_ELEMENT(Height,-100,2000,0.001))
SRID is 27700
When I use SDO_RELATE or ADO_ANYINTERACT on both the geometires, i am getting the below error.
Error report:
SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
ORA-13243: specified operator is not supported for 3- or higher-dimensional R-tree
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 333
29902. 00000 - "error in executing ODCIIndexStart() routine"
*Cause: The execution of ODCIIndexStart routine caused an error.
*Action: Examine the error messages produced by the indextype code and
take appropriate action.
Could you please let me know what should be the root cause for this issue?Hi
Have you checked this posting?
Re: ORA-13243
Luc -
Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?
Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?
-
Problem with APEX 4.0 - "ORA-20001: Error with: GRANT CREATE CLUSTER "
I have a workspace which I've succesfully created with schema A.
However when i try to assign an additional schema to it, schema B, I get the following error message :-
"ORA-20001: Error with: GRANT CREATE CLUSTER TO "BI_SOURCES" ORA-01031: insufficient privileges"
i've tried granting "create cluster with admin option' to users A,B,anonymous AND APEX_040000. FLOWS_030000 already has these privileges.
Anybody any ideas ?
regs
johnnie
Edited by: johnnie d on 31-Aug-2011 10:58I have experience the similiar problem. The error message: Invalid exist/not exist condition: ORA 2001 Query must begin with Select or With.
I have home page and concept review report page below home page. And Concept review form under the report page. The error is display in all of the three pages. I checked carefully and still not able to find where the error come from. Can you please help? All the report region and form region have the select statement, is it from the LOVs? Home
Concept review report
Concept reveiw Form(for detail info)
Thank you! -
ORA-24816 error with oracle 10 driver
Friends,
I am getting the following error with Oracle 10 driver while trying to insert data > 4k into a LONG column. The table also contains another column of type varchar2(4000). The code works perfectly fine with Oracle 9i driver.
ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
Kindly let me know if this is a programming error or a driver problem.
Thanks,
Vinaythis driver you mentioned, is it the jdbc driver?
ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
Cause: A Bind value of length potentially > 4000 bytes follows binding for LOB or LONG.
Action: Re-order the binds so that the LONG bind or LOB binds are all at the end of the bind list.
using this forum may be more efficient -> http://forums.oracle.com/forums/forum.jspa?forumID=99&start=0 -
Getting ORA-12518 error with DG4ODBC for link with SQL Server
Hi all,
We have recently upgraded a test box to 11g2 on a 64bit windows platform and now when setting up our database links with our sql servers we are recieving an 'ORA-12518' error.
listener.ora
LISTENERPCIS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = WILTS-ORCL4)(PORT = 1522))
SID_LIST_LISTENERPCIS =
(SID_LIST =
(SID_DESC =
(PROGRAM = dg4odbc)
(SID_NAME = PCIS)
(ORACLE_HOME = c:\oracle\product\11.2.0\db_1)
tnsnames.ora
PCIS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = WILTS-ORCL4)(PORT = 1522))
(CONNECT_DATA =
(SID = PCIS)
(HS = OK)
Any help appericated
Cheers
DavidC:\Users\administrator.ADMIN>tnsping pcis
TNS Ping Utility for 64-bit Windows: Version 11.2.0.1.0 - Production on 24-JUN-2
010 20:55:29
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\ORACLE\PRODUCT\11.2.0\DBhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
t)(PORT = 1522)) (CONNECT_DATA = (SID = PCIS)) (HS = OK))
OK (0 msec)
C:\Users\administrator.ADMIN>lsnrctl status LISTENERPCIS
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 24-JUN-2010 20:55
:47
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1522)))
STATUS of the LISTENER
Alias listenerpcis
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 24-JUN-2010 20:55:17
Uptime 0 days 0 hr. 0 min. 30 sec
Trace Level admin
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\ORACLE\PRODUCT\11.2.0\DBhome_1\network\admin\listen
er.ora
Listener Log File c:\oracle\product\11.2.0\diag\tnslsnr\WILTS-ORCL4\listenerpcis\alert\log.xml
Listener Trace File c:\oracle\product\11.2.0\diag\tnslsnr\WILTS-ORCL4\listenerpcis\trace\ora_12216_2424.trc
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1522)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc)))
Services Summary...
Service "PCIS" has 1 instance(s).
Instance "PCIS", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Users\administrator.ADMIN>dg4odbc
Oracle Corporation --- THURSDAY JUN 24 2010 20:55:54.257
Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production Built with
Oracle Database Gateway for ODBC
C:\Users\administrator.ADMIN> -
Ora-12560 error with 8.1.7 under win2k
I have installed 8.1.7. on windows 2ooo. The install went
successfully and immediately after the install i could connect
with scott/tiger.
After a short period of time I can no longer connect and receive
the ora-12560 error. The system has not been rebooted or even
touched during this time period. I have removed the database
with dbassist and recreated. Again it works for 5 mins and
stops.
When I look at tsnrctl status all looks great. Under services
the tnslistener is working properly. I can do a tnsping as well.
I just cannot connect to the database.
Please help!
Dan HooverI have installed 8.1.7. on windows 2ooo. The install went
successfully and immediately after the install i could connect
with scott/tiger.
After a short period of time I can no longer connect and receive
the ora-12560 error. The system has not been rebooted or even
touched during this time period. I have removed the database
with dbassist and recreated. Again it works for 5 mins and
stops.
When I look at tsnrctl status all looks great. Under services
the tnslistener is working properly. I can do a tnsping as well.
>
I just cannot connect to the database.
Please help!
Dan Hoover An ORA-12560 WinNT is usually an indication that
the OS system/environment is not set up correctly.
You don't need a listener when you connect locallay without alias
name (sqlplus scott/tiger@alias).
Please try the following:
- start cmd box
- set ORACLE_HOME = <your home>
- set ORACLE_SID = <your SID>
- sqlplus scott/tiger
Thomas -
ORA-12154 & ORA-12514 errors with Net8
Can anyone help me with getting Net8 to run?
On 8.0.5 I was able to get my Windows front-ends to run using the "0-Configuration" option for Net8 - using Host Names.
I have been roundly unsuccessful in trying to get this to work with 8i, and now I am deeply embroiled in TNSNAMES configuration with total lack of success and ever increasing frustration.
Has anyone successfully overcome this type of error with 8i to successfully access the database from a Windows client?John,
Apologies for the cyber-silence. I only get to work on this stuff evenings and weekends, and this weekend was work instead :-(
As this whole area of network and database configuration is one of ritual and superstition for me, rather than clinical science I decided to go back in time and re-install 8.0.5 - which works fine for the Host Naming approach. I grabbed the listener.ora and tnsnames.ora (yes, I know it doesn't apply - but, as I said, I'm superstitious) and brought them back to the present (changing a couple of things where necessary - e.g. 8.0.5 => 8.1.5).
Unfortunately that didn't work either. Then I recreated my 8i database and made the global db name and instance name exactly the same as the hostname. This time it worked! Not a very general solution (and I have no idea which part of the solution cracked it or me) but I am sticking with it for now!
Just for the record here are the new (old?) configuration files:
sqlnet.ora:
SQLNET.EXPIRE_TIME = 0
NAMES.DIRECTORY_PATH= (HOSTNAME)
SQLNET.CRYPTO_SEED = 4fhfguweotcadsfdsafjkdsfqp5f201p45mxskdlfdasf
listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = baloo))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = baloo.housden.net)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = baloo.housden.net.)
(ORACLE_HOME = /u2/app/oracle/product/8.1.5)
(SID_NAME = baloo)
(SID_DESC =
(SID_NAME = extproc)
(ORACLE_HOME = /u2/app/oracle/product/8.1.5)
(PROGRAM = extproc)
tnsnames.ora:
ORCL_BEQ =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = BEQ)(PROGRAM = /u2/app/oracle/product/8.1.5)
(argv0 = oraclebaloo)
(args = '(DESCRIPTION = (LOCAL=YES)(ADDRESS=(PROTOCOL=BEQ)))')
(envs = 'ORACLE_HOME=/u2/app/oracle/product/8.1.5,ORACLE_SID=baloo'))
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = baloo.housden.net)(Port = 1521))
(CONNECT_DATA =
(SID = baloo)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = baloo))
(CONNECT_DATA =
(SID = extproc)
BTW - in other posts on this forum you keep whingeing about your job. Are things still that bad Down Under that there are no suitable alternatives there? I was hoping to return to the Lucky Country some time soon, but I want to be sure that the economy and job market is viable first. Anyway, thanks for your help and Good Luck! -
ORAOLEDB:Ora-2005 error with ADO command object
Hello,
I am using adodb.command object
to make few insert queries in database.
Provider is oledbora.oracle.
Something like,
vb sample code:
dim varr(52)
varr(1) = ----
varr(2) = -----
adodb.commandtext = xxxxxx
call adodb.execute(,varr)
I am receiving ora-2005 error.
(implicit (-1) length not allowed)
###**** Interesting fact is, same piece
of code is working with msdaora provider.Sameer, please direct OLEDB-related issues to the forum for OLEDB.
-
Ora-03113 error with XMLTABLE inside subquery or view
I'm getting ORA-03113 error if I use a result of XMLTABLE inside a subquery of another query (whether XMLTABLE is inline, or from a view). Code below to reproduce this - vastly simplified and now rather meaningless - but produces same error. Has anyone saw this error re. XMLTABLE or know of metalink bugs on this ? I couldn't find anything. I'm having to use deprecated table(xmlsequence) instead, which doesn't get this error.
--DROP TABLE TEST
CREATE TABLE TEST(ID number(10), CUST_REF varchar2(50 char), XMLDATA XMLTYPE);
INSERT INTO TEST(ID, CUST_REF, XMLDATA) VALUES (1, 'XYZ',
XMLTYPE('<?xml version="1.0" encoding="utf-16"?>
<TESTXML
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:ABC-123:TESTXML">
<collections>
<TRANSACTION_COLLECTION>
<TRANSACTION>
<RECORD_ID>1</RECORD_ID>
<TRANSACTION_ID>7791786</TRANSACTION_ID>
<AMOUNT>335</AMOUNT>
<TYPE>I</TYPE>
<DC>DR</DC>
</TRANSACTION>
</TRANSACTION_COLLECTION>
</collections>
</TESTXML>'));
COMMIT;
CREATE VIEW TEST_XMLVIEW
AS
SELECT
ID,
CUST_REF,
xmltbl.RECORD_ID,
xmltbl.TRANSACTION_ID,
xmltbl.AMOUNT,
xmltbl.TYPE,
xmltbl.DC
FROM TEST,
XMLTable(XMLNamespaces(DEFAULT 'urn:ABC-123:TESTXML'),
'/TESTXML/collections/TRANSACTION_COLLECTION/TRANSACTION' PASSING TEST.XMLDATA
COLUMNS
"RECORD_ID" number(10) PATH 'RECORD_ID',
"TRANSACTION_ID" VARCHAR(200 CHAR) PATH 'TRANSACTION_ID',
"DC" VARCHAR(200 CHAR) PATH 'DC',
"TYPE" VARCHAR(200 CHAR) PATH 'TYPE',
"AMOUNT" NUMBER(38,8) PATH 'AMOUNT')
AS xmltbl;
WITH SUM_AMOUNTS (ID, CUST_REF, SUM_1, SUM_2, SUM_3)
AS
(SELECT ID, CUST_REF, SUM(AMOUNT) AS SUM_1, SUM(AMOUNT) AS SUM_2, SUM(AMOUNT) + SUM(AMOUNT) AS SUM_3
FROM TEST_XMLVIEW
GROUP BY ID, CUST_REF)
select
ID,
CUST_REF,
SUM_1,
SUM_2,
SUM_3
from SUM_AMOUNTS;
Version Details:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionHas anyone saw this error re. XMLTABLE or know of metalink bugs on this ? I couldn't find anything.Really?
Go to the trace directory and find the relevant trace/incident file.
On my system, I can see something like this :
ORA-07445: exception encountered: core dump [evaopn3()+656] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x234A5B6] [UNABLE_TO_READ] []Copy/paste that line into the ORA-00600/ORA-07445 look-up tool on My Oracle Support and run the search for your version.
You will find this article :
*ORA-7445 (evaopn3) [ID 860969.1]*
and at the bottom of the page, among the known related bugs, this one :
*Bug 12724375 : ORA-7445 [evaopn3] from XQuery with GROUP BY*
Maybe you are looking for
-
Send mail to external mail address
Hello Guys,, I have required to send a mail through abap code. This program is need to schedule. Can some one send me some sample code to send mail.. I have search with existing forum , but have'nt got any proper answer. Thanks Swati....
-
Im basically trying to view my contact list without the phone attached to the pc. I have backed up the data on the phone including the contact list to one of your lovely .nbu files. How exactly do i do anything useful with these files? There doesnt s
-
Using Gmail as Exchange account:
Hi. This may be a dumb question but I'm new to iPhone. I have the new iPhone 4S and have several email accounts that I had set up to forward through my Gmail account. That was working fine except I didn't have my Calendar. So I figured out how to
-
Error installing windows 7 on partition with Bootcamp.
I'm having issues when I try and istall Windows 7 using bootcamp on my Macbook Pro 15' Retina Late-2013. I am able to create the USB Key with Windows 64-bit and Support files from apple with no issues. For this, I'm using a ScanDisk Extreme 32Gb USB
-
How to get Flex to communicate with a Java applet?
We are building a Flex 2.0 app which needs to talk to a Java applet. The applet lives in the same HTML page as the Flex app. My guess is that we can use the Flex-Ajax bridge combined with some Javascript-java bridge. Any suggestions on specific libra