ORA-03113 "reading" XML of CLOB
Hello
I use XMLTable for reading XML to insert data into the DB table. I have:
PROCEDURE IMPORT_XML)
p_plik VARCHAR2,
p_tp_id NUMBER,
number of p_commit_po: = 500) IS
l_blob_id TERYT_PLIKI.tp_blob_id%type;
l_blob BLOB;
XMLTYpe l_teryt_xml;
L_Name varchar2 (100);
l_type varchar2 (100);
l_date varchar2 (100);
-l_part varchar2 (100);
XMLType l_rows;
l_commit number (6);
l_cnt_rows NUMBER: = 0;
procedure do_commit is
Start
l_commit: = l_commit + 1;
l_cnt_rows: = l_cnt_rows + 1;
If l_commit > = p_commit_po then
commit;
l_commit: = 0;
end if;
end do_commit;
BEGIN
-# variable l_BLOB contains BLOB from a column of table #.
Err.d ("convert BLOB CLOB type...', 'IMPORT_XML', 70 ');
declare
dest_lob CLOB.
src_lob BLOB;
the sum integer: = DBMS_LOB. LOBMAXSIZE;
dest_offset integer: = 1;
offset integer: = 1;
number of blob_csid: = nls_charset_id ('AL32UTF8');
lang_context integer: = 0;
the warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;
Start
dest_lob: = empty_Clob();
DBMS_LOB. CREATETEMPORARY (dest_lob, false);
DBMS_LOB. OPEN (dest_lob, DBMS_LOB. LOB_READWRITE);
DBMS_LOB. OPEN (l_blob, DBMS_LOB. LOB_READONLY);
DBMS_LOB. () CONVERTTOCLOB
dest_lob,
l_blob,
amount,
dest_offset,
offset,
blob_csid,
lang_context,
(caveat);
DBMS_LOB. Close (l_blob);
l_teryt_xml: = XMLType (dest_lob);
commit;
DBMS_LOB. FREETEMPORARY (dest_lob);
end;
l_rows: = l_teryt_xml.extract('/teryt/catalog/row');
l_commit: = 0;
If l_name = "TERC" then
Err.d ("name =" |) L_Name, cm, 80);
for r in (SELECT x.*
FROM XMLTable ('/ rank ' ADOPTION l_rows)
["COLUMNS"WOJ"PATH of the VARCHAR2 (20) ' col[@name="WOJ "]',
["VARCHAR2 (20)"POW"PATH" col[@name="POW"]',
["Path"GMI"VARCHAR2 (20) ' col[@name="GMI "]',
PATH of VARCHAR2 (2) "RODZ" "col[@name="RODZ"]',"
PATH of VARCHAR2 (50) "NAME" "col[@name="NAZWA"]',"
PATH of VARCHAR2 (50) "NAZDOD" "col[@name="NAZDOD"]',"
"[" "STAN_NA PATH" VARCHAR2 (10) ' col[@name="STAN_NA"] "
) x
) loop
INSERT INTO TERYT_TERC (WOJ, POW, GMI, RODZ, NAME, NAZDOD, STAN_NA, TP_ID)
VALUES (r.WOJ, r.POW, r.GMI, r.RODZ, r.NAZWA, r.NAZDOD, r.STAN_NA, P_TP_ID);
do_commit;
end loop;
elsif l_name = "SIMC" then
Err.d ("name =" |) L_Name, cm, 80);
for r in (SELECT x.*
FROM XMLTable ('/ rank ' ADOPTION l_rows)
"WOJ" VARCHAR2 COLUMNS (3) path "col[@name="WOJ"]',"
["" POW"VARCHAR2 (3) path" col[@name="POW"]',
"GMI" VARCHAR2 (3) PATH "col[@name="GMI"]',"
PATH of VARCHAR2 (2) "RODZ_GMI" "col[@name="RODZ_GMI"]',"
["" RM"VARCHAR2 (3) path" col[@name="RM"]',
"MZ' VARCHAR2 (3) PATH" col[@name="MZ"]', "
PATH of VARCHAR2 (60) "NAME" "col[@name="NAZWA"]',"
"SYM' VARCHAR2 (7) PATH" col[@name="SYM"]', "
PATH of VARCHAR2 (7) "SYMPOD" "col[@name="SYMPOD"]',"
PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"
) x
) loop
INSERT INTO TERYT_SIMC (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAME, SYMBOL, SYMPOD, STAN_NA, TP_ID)
VALUES (r.WOJ, r.POW, r.GMI, r.RODZ_GMI, r.RM, r.MZ, r.NAZWA, r.SYM, r.SYMPOD, r.STAN_NA, P_TP_ID);
do_commit;
end loop;
elsif l_name = "ULIC" then
Err.d ("name =" |) L_Name, cm, 80);
for r in (SELECT x.*
FROM XMLTable ('/ rank ' ADOPTION l_rows)
"WOJ" VARCHAR2 COLUMNS (3) path "col[@name="WOJ"]',"
["" POW"VARCHAR2 (3) path" col[@name="POW"]',
"GMI" VARCHAR2 (3) PATH "col[@name="GMI"]',"
PATH of VARCHAR2 (2) "RODZ_GMI" "col[@name="RODZ_GMI"]',"
"SYM' VARCHAR2 (7) PATH" col[@name="SYM"]', "
PATH of VARCHAR2 (7) "SYM_UL" "col[@name="SYM_UL"]',"
PATH of VARCHAR2 (5) "CECHA" "col[@name="CECHA"]',"
PATH of VARCHAR2 (50) "NAZWA_1" "col[@name="NAZWA_1"]',"
PATH of VARCHAR2 (50) "NAZWA_2" "col[@name="NAZWA_2"]',"
PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"
) x
) loop
INSERT INTO TERYT_ULIC (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, TP_ID)
VALUES (r.WOJ, r.POW, r.GMI, r.RODZ_GMI, r.SYM, r.SYM_UL, r.CECHA, r.NAZWA_1, r.NAZWA_2, r.STAN_NA, P_TP_ID);
do_commit;
end loop;
elsif l_name = "WMRODZ" then
Err.d ("name =" |) L_Name, cm, 80);
for r in (SELECT x.*
FROM XMLTable ('/ rank ' ADOPTION l_rows)
"RM" VARCHAR2 COLUMNS (5) path "col[@name="RM"]',"
PATH of VARCHAR2 (50) "NAZWA_RM" "col[@name="NAZWA_RM"]',"
PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"
) x
) loop
INSERT INTO TERYT_WMRODZ (RM, NAZWA_RM, STAN_NA, TP_ID)
VALUES (r.RM, r.NAZWA_RM, r.STAN_NA, P_TP_ID);
do_commit;
end loop;
end if;
validation work;
When I'm loading file of type "SIMC" (the file size is approximately 32 MB), all right.
When I am trying to load the "NEW" type (size file is about 80 MB), there's an ORA-03113.
The problem is with the LOOP SELECTION, because
Err.d ("name =" |) L_Name, cm, 80);
connects name = ULIC
What can I do to fix this?
My DB is: Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production
As Jason said, there are a bunch of useless stuff in there:
-The VALIDATION inside the loop: do not do, commit only once, after that the job is done.
-FOR lines: do not do this, use only one (possibly multi-table) INSERT SELECT.
-BLOB CLOB conversion: not necessary, use the XMLTYPE constructor.
-Extract from the XML document, that the work of the intermediate parties do in the whole structure directly.
Basically, your procedure can be simplified to this couple of statements:
-- insert XML into a temporary binary XMLType table, for performance : insert into tmp_xml values ( xmltype(l_blob, nls_charset_id('AL32UTF8')) ); -- multitable insert into the target tables : INSERT FIRST WHEN l_name = 'TERC' THEN INTO TERYT_TERC (WOJ, POW, GMI, RODZ, NAZWA, NAZDOD, STAN_NA, TP_ID) VALUES (WOJ, POW, GMI, RODZ, NAZWA, NAZDOD, STAN_NA, P_TP_ID) WHEN l_name = 'SIMC' THEN INTO TERYT_SIMC (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAZWA, SYM, SYMPOD, STAN_NA, TP_ID) VALUES (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAZWA, SYM, SYMPOD, STAN_NA, P_TP_ID) WHEN l_name = 'ULIC' THEN INTO TERYT_ULIC (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, TP_ID) VALUES (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, P_TP_ID) WHEN l_name = 'WMRODZ' THEN INTO TERYT_WMRODZ (RM, NAZWA_RM, STAN_NA, TP_ID) VALUES (RM, NAZWA_RM, STAN_NA, P_TP_ID) SELECT x.* FROM tmp_xml t , XMLTable('/teryt/catalog/row' PASSING t.object_value COLUMNS "WOJ" VARCHAR2(20) PATH 'col[@name="WOJ"]', "POW" VARCHAR2(20) PATH 'col[@name="POW"]', "GMI" VARCHAR2(20) PATH 'col[@name="GMI"]', "RODZ" VARCHAR2(2) PATH 'col[@name="RODZ"]', "NAZWA" VARCHAR2(50) PATH 'col[@name="NAZWA"]', "NAZDOD" VARCHAR2(50) PATH 'col[@name="NAZDOD"]', "STAN_NA" VARCHAR2(10) PATH 'col[@name="STAN_NA"]', "RODZ_GMI" VARCHAR2(2) PATH 'col[@name="RODZ_GMI"]', "RM" VARCHAR2(3) PATH 'col[@name="RM"]', "MZ" VARCHAR2(3) PATH 'col[@name="MZ"]', "SYM" VARCHAR2(7) PATH 'col[@name="SYM"]', "SYMPOD" VARCHAR2(7) PATH 'col[@name="SYMPOD"]', "SYM" VARCHAR2(7) PATH 'col[@name="SYM"]', "SYM_UL" VARCHAR2(7) PATH 'col[@name="SYM_UL"]', "CECHA" VARCHAR2(5) PATH 'col[@name="CECHA"]', "NAZWA_1" VARCHAR2(50) PATH 'col[@name="NAZWA_1"]', "NAZWA_2" VARCHAR2(50) PATH 'col[@name="NAZWA_2"]', "NAZWA_RM" VARCHAR2(50) PATH 'col[@name="NAZWA_RM"]' ) x ;
where TMP_XML is defined as follows:
create global temporary table tmp_xml of xmltype xmltype store as securefile binary xml;
Tags: Database
Similar Questions
-
ORA-03113 when inserting a CLOB value cast as an XMLType of a SELECT query in a table
I have a table that contains a CLOB column with pseudo-XML in it. I want to keep these data in an XMLType column so that I can take advantage of some of the built-in XML features of Oracle to analyze more easily.
The source table is defined as:
CREATE TABLE "TSS_SRM_CBEBRE_LOGS_V"
( ) NUMBER of 'INCIDENT_ID',
ACTIVATE THE "EVENT_TYPE" VARCHAR2 (100 BYTE) NOT NULL,
VARCHAR2 (100 BYTE) "EVENT_KEY."
ACTIVATE THE 'CREATION_DATE' STAMP (6) NOT NULL,
ACTIVATE THE 'CREATED_BY' VARCHAR2 (100 BYTE) NOT NULL,
'LOG_MSG' CLOB) ;
The target table (to test this problem) is defined as:
CREATE TABLE 'TESTME '.
("LOG_MSG" "XMLTYPE"
)
My query is:
Insert / * + APPEND * / into testme ("LOG_MSG")
Select XMLTYPE.createXML ("LOG_MSG") as "TSS_SRM_CBEBRE_LOGS_V" b LOG_MSG;
In SQL * Developer, my error is: error report:
SQL error: No more data to read from socket
In SQL * MORE and Toad, my error is:
ORA-03113: end of file on communication channel
Process ID: 13903
Session ID: serial number 414: 32739
Thank you!
I made an ALTER SESSION SET EVENTs = 10046 trace name forever, context level 12'; and ran the query. At the bottom of the trace file, I found the two following exceptions of ORA-07445:
* 13:43:32.760 2013-08-15
Exception [type: SIGSEGV, SI_KERNEL (general_protection)] [ADDR:0 x 0] [PC:0 x 2652500, LpxMemFree () + 200] [flags: 0x0, count: 1]
Incident 493726 created the dump file: /u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/incident/incdir_493726/gtcdwd1_ora_8577_i493726.trc
[ORA-07445: exception encountered: core dump [LpxMemFree () + 200] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 2652500] [SI_KERNEL (general_protection)]]
Incident 493727 created the dump file: /u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/incident/incdir_493727/gtcdwd1_ora_8577_i493727.trc
[ORA-07445: exception encountered: core dump [dbgtrReserveSpace () + 77] [SIGSEGV] [ADDR:0 x 0] [PC:0x938E91F] [SI_KERNEL (general_protection)]]
ORA-07445: exception encountered: core dump [LpxMemFree () + 200] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 2652500] [SI_KERNEL (genres
ksdbgcra: base of writing to the directory file ' / u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/cdump ".
If I replace the XMLTYPE molded with the xmlparse function, I get the error ORA-19010 you mentioned. Read more in the Oracle documentation, I see that it says that I can not insert XML fragments into an XMLType column. I can use sys_XMLGen to create a well-formed document.
http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb13gen.htm#i1026349
We'll see!
-
Hi guys
I want to read XML file that is stored as a clob in the database table (test_clob) in column (xml_file).
I use the following query just to read data from the file.<?xml version="1.0" encoding="UTF-8"?> <!--Sample XML file generated by xmlspy.com)--> <mslv-sa:orEvent xmlns:mslv-sa="http://www.metav.com/oss/Sctivation/2003" xmlns:tls="http://www.meolv.com/oss/Sctivation/2003" xmlns:co="http://java.sun.com/products/oss/xml/Common" xmlns:sa="http://java.sun.com/products/oss/xml/Sivation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <co:applicationDN/> <co:eventTime>2006-07-17T03:21:13</co:eventTime> <sa:currentState>closed.completed</sa:currentState> <sa:orderKey> <co:applicationDN/> <co:type/> <sa:primaryKey>SUAUG20_1ADSLCON-268554296-JOB-ISPSERVICE23</sa:primaryKey> </sa:orderKey> <sa:reason/> <mslv-sa:externalSystemId/> <mslv-sa:eventId>36</mslv-sa:eventId> <mslv-sa:eventStatus>1</mslv-sa:eventStatus> <mslv-sa:except>N</mslv-sa:except> <mslv-sa:rollbackExcept>N</mslv-sa:rollbackExcept> <mslv-sa:services> <mslv-sa:item> <mslv-sa:serviceKey> <co:applicationContext> <co:factoryClass/> <co:url/> <co:systemProperties/> </co:applicationContext> <co:applicationDN/> <co:type>ACT_POSTPAID</co:type> <sa:primaryKey>aitorc01_5100719489001</sa:primaryKey> <mslv-sa:serviceSequenceNumber>1</mslv-sa:serviceSequenceNumber> </mslv-sa:serviceKey> <mslv-sa:serviceState>active.completed</mslv-sa:serviceState> </mslv-sa:item> </mslv-sa:services> </mslv-sa:orderCompleteEvent>
But its giving following errorselect x.time FROM test_clob ,XMLTABLE('/mslv-sa:orderCompleteEvent/co:applicationDN/' PASSING XMLTYPE(test_clob.xml_file) COLUMNS time VARCHAR2(100)PATH '/mslv-sa:orderCompleteEvent/mslv-sa:orderCompleteEvent/co:eventTime')x
Please provide details21:22:53 LPX-00801: XQuery syntax error at 'EOF' 21:22:53 1 /mslv-sa:orderCompleteEvent/co:applicationDN/
See you soon
SexyHi Vanessa,
I see several issues here.
-L' example of XML document you gave is not well-formed.
-Some XPath expressions are false, i.e. they address anything in the document.
-You must also declare the namespaces that you use in XMLTable.Assuming that the root element is actually "mslv - its: orderCompleteEvent", it should be better:
SELECT x.eventtime FROM test_clob t , XMLTable( XMLNamespaces( 'http://www.metav.com/oss/Sctivation/2003' as "mslv-sa" , 'http://java.sun.com/products/oss/xml/Common' as "co" ) , '/mslv-sa:orderCompleteEvent' PASSING XMLTYPE(t.xml_file) COLUMNS eventtime timestamp PATH 'co:eventTime' ) x ;
-
Xml file for reading in the clob in the staging table column
Hello
I am trying to query the intermediate table with the database adapter that has the column type CLOB containing the XML file. How to extract the XML of CLOB and map the fields to the another final scheme variable.
Thank you
Published by: chaitu123 on Sep 20, 2009 08:16(1) when you create DBAdapter on a table that has the clob column watch closely the xsd created for the DBAdapter cloumn clob element must be a String data type
(2) create xsd for Xml files and create the variable of the xsd element
(3) use ora:parseEscapedXML("yourDBAdapterclobElement") for XmlFileVarilable
Krishna
-
error ORA-03113 with XMLTABLE inside the subquery or view
I get ORA-03113 error if I use a XMLTABLE result within one subquery of another query (if XMLTABLE inline or view). Code below to reproduce that - simplified and now rather meaningless - but produces the same error. Someone at - he seen this error re. XMLTABLE or know bugs in metalink on that? I couldn't find anything. I'll have to use deprecated table (xmlsequence) instead, which does not receive this error.
-TABLE DROP 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" >
< collection >
< TRANSACTION_COLLECTION >
< TRANSACTION >
< RECORD_ID > 1 < / RECORD_ID >
< TRANSACTION_ID > 7791786 < / TRANSACTION_ID >
< AMOUNT > 335 < / AMOUNT >
< TYPE > I < / TYPE >
DR < DC > < /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
OF THE TEST,
XMLTable (XMLNamespaces (DEFAULT "urn: ABC - 123:TESTXML'"),)
"/ TESTXML/collections/TRANSACTION_COLLECTION/TRANSACTION" TEST PASSING. 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 'QUANTITY')
AS xmltbl;
WITH SUM_AMOUNTS (ID, CUST_REF, SUM_1, SUM_2, SUM_3)
AS
(SELECT ID, CUST_REF, FLAT AS FLAT AS SUM_2, FLAT + FLAT AS SUM_3, SUM_1)
OF TEST_XMLVIEW
GROUP BY ID, CUST_REF)
Select
ID,
CUST_REF,
SUM_1,
SUM_2,
SUM_3
of SUM_AMOUNTS;
Version information:
Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE Production 11.2.0.2.0
AMT for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionSomeone at - he seen this error re. XMLTABLE or know bugs in metalink on that? I couldn't find anything.
Really?
Go to the directory path and look for the relevant trace or 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 this line into the ORA-00600/ORA-07445 on My Oracle Support search tool and search for your version.
Read this article:* ORA-7445 (evaopn3) [860969.1 ID] *.
and at the bottom of the page, among the associated bugs known, this one:
Bug 12724375 : ORA-7445 [evaopn3] XQuery with GROUP BY *.
-
Load and read XML file size more than 4 GB
Hi all
My environment is Oracle 10.2.0.4 on Solaris and I process to work with the XML file as below the detail of PL/SQL
1. I read the XML file on the HTTP port in the XMLTYPE column to table.
2. I read value n ° 1 of the table and extract of y to insert another table
On test db, everything is working but I got below error when I use the XML production
ORA-31186: Document contains too many nodes
Current XML size about 100 MB, but the procedure must take over the size of XML file over 4 GB in the future.
Below are some of my code for your info.
1. reading XML by line in variable and inserting into table
LOOP Utl_http.READ_TEXT (http_resp, v_resptext, 32767); DBMS_LOB. WriteAppend (v_clob, LENGTH (v_resptext), v_resptext); END LOOP;
INSERT INTO XMLTAB VALUES (XMLTYPE (v_clob));
2. read the value of the cell in the XML column and extract to insert into another table
DECLARE CURSOR c_xml IS (SELECT trim (y.cvalue) FROM XMLTAB xt. XMLTable ('/ Table, rows, cells, cell ' PASSAGE xt.) XMLDoc COLUMNS cvalue VARCHAR (50) PATH ' / '); :
:
BEGIN
:
:
OPEN c_xml; SEEK c_xml INTO v_TempValue; < generate the insert statement in another table > OUTPUT WHEN c_xml % NOTFOUND; NARROW C_xml; :
END
And another problem is performance problem when the XML file is great, first step to XML content loading to XMLTYPE column slowly.
Could you please suggest any solution to read large XML file and improve performance?
Thank you in advance.
Hiko
Finally, change us source file to XML, CSV format and instead load the XML using SQL Loader.
-
Can we read data present clob in the database oracle by BPEL
Hi all
Please let me know or help me understand if we read clob data (excel file) present in the database of BPEL?
TIATry this one,
Re: Reading Xml file of the clob in the staging table column
It will be useful,
-
Nested reading XML using XQUERY in the PL/SQL procedure
I'm using Oracle 11 G.
I have a PL/SQL procedure, which is reading XML using xquery XMLTYPE column in a table. The XML contains data of the DEPARTMENT and its SECTIONS. DEPARTMENT has a to-many with SECTIONS or a DEPARTMENT can have one or more SECTIONS, and there may be cases where the DEPARTMENT will have all SECTIONS.
The XML structure is such that
label to identify a DEPARTMENT and all its corresponding SECTIONS.<DATA>
XML
XQUERY<ROWSET> <DATA> <DEPARTMENT> <DEPARTMENT_ID>DEP1</DEPARTMENT_ID> <DEPARTMENT_NAME>myDEPARTMENT1</DEPARTMENT_NAME> </DEPARTMENT> <SECTIONS> <SECTIONS_ID>6390135666643567</SECTIONS_ID> <SECTIONS_NAME>mySection1</SECTIONS_NAME> </SECTIONS> <SECTIONS> <SECTIONS_ID>6390135666643567</SECTIONS_ID> <SECTIONS_NAME>mySection2</SECTIONS_NAME> </SECTIONS> </DATA> <DATA> <DEPARTMENT> <DEPARTMENT_ID>DEP2</DEPARTMENT_ID> <DEPARTMENT_NAME>myDEPARTMENT2</DEPARTMENT_NAME> </DEPARTMENT> <SECTIONS> <SECTIONS_ID>63902</SECTIONS_ID> <SECTIONS_NAME>mySection1</SECTIONS_NAME> </SECTIONS> </DATA> </ROWSET>
The performance of the query, you receive an errorselect department_id, department_name, sections_id, sections_name from OFFLINE_XML xml_list, xmltable( ' for $department in $param/ROWSET/DATA return $department ' passing xml_list.xml_file as "param" columns "DEPARTMENT_ID" varchar2(100) path '//DEPARTMENT/DEPARTMENT_ID', "DEPARTMENT_NAME" varchar2(4000) path '//DEPARTMENT/DEPARTMENT_NAME', "SECTIONS_ID" varchar2(100) path '//SECTIONS/SECTIONS_ID', "SECTIONS_NAME" varchar2(4000) path '//SECTIONS/SECTIONS_NAME' ) section_list where xml_list.Status = 5
It is natural because I have several sections, now how I'll handle this situation.ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
It's the usual approach to manage several nested collections:
SQL> select d.department_id 2 , d.department_name 3 , s.sections_id 4 , s.sections_name 5 from offline_xml t 6 , xmltable( 7 '/ROWSET/DATA' 8 passing t.xml_file 9 columns 10 DEPARTMENT_ID varchar2(20) path 'DEPARTMENT/DEPARTMENT_ID' 11 , DEPARTMENT_NAME varchar2(30) path 'DEPARTMENT/DEPARTMENT_NAME' 12 , SECTIONS xmltype path 'SECTIONS' 13 ) d 14 , xmltable( 15 '/SECTIONS' 16 passing d.sections 17 columns 18 SECTIONS_ID varchar2(20) path 'SECTIONS_ID' 19 , SECTIONS_NAME varchar2(30) path 'SECTIONS_NAME' 20 ) s 21 ; DEPARTMENT_ID DEPARTMENT_NAME SECTIONS_ID SECTIONS_NAME -------------------- ------------------------------ -------------------- ------------------------------ DEP1 myDEPARTMENT1 6390135666643567 mySection1 DEP1 myDEPARTMENT1 6390135666643567 mySection2 DEP2 myDEPARTMENT2 63902 mySection1
-
Hi all
I'm really looking for your sweet help. I have suffered for two days. I'm working on Blackberry java app. I have the xml file is located in "file:///store/home/user/myNotes.xml".
I want to be able to parse the XML into XMLDocument to confront the NodeList and ChildNode.
I always get Eception Exception RunTimeError
NOTE the following prayer:
1 - my JDK is 1.7.0.5.5 (SE) only
2. I don't have "XMLSerializer" or "Transformer", or "TransformerFactory', 'KXML.
3. all I want is just to be able to read XML above and analyzed to XMLDocument.
Find my Java code below:
=====================================================================================
Private Sub parseXmlFile() raises {RuntimeException
try {}XMLDocument DOM = null;
private static final String fileN = "file:///store/home/user/myNotes.xml";
FileConnection fc = (FileConnection) Connector.open (fileN);
fc.openDataInputStream ();
DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
DocumentBuilder builder = factory.newDocumentBuilder ();
InputStream is = getClass () .getResourceAsStream (fileN);
DOM = builder.parse (is);
} catch (Exception pce) {}
Dialog.Alert (PCE. ToString());
}
}======================================================================
End of my Code
Thank you very much for your time of reading and you answer to help me.
I appreciate really.
Dear all,
Hello and thank you from the bottom of my heart. This works. My problem was absent "normalization."
Thank you once again I ng3epa enjoyed your valuable contribution.
-
I just set up my first RAC system.
It seems to work fine, until I tried this.
To another server, I've connected to the cluster database using sqlplus@DB01 (which is resolved by tnsnames ora)
This workes...
However, if I do an abandonment of the judgment on the node that I am connected I encountered an error ORA-03113 (end of the communication channel).
If I do a connect once again, it works.
However, I thought that my current connection must not be interrupted.
Can someone give me a hand?
THX
Christian
[grid@Node2 ~] $ crsctl stat res t
--------------------------------------------------------------------------------
Details of the name target a report server
--------------------------------------------------------------------------------
Local resources
--------------------------------------------------------------------------------
ORA. DATA.dg
STABLE of node1 online online
Online online STABLE node2
ORA. FLASH.dg
STABLE of node1 online online
Online online STABLE node2
ORA. LISTENER.lsnr
STABLE of node1 online online
Online online STABLE node2
ORA.asm
Node1 Started, STABLE online
Node2 Started, STABLE online
ORA.net1.Network
STABLE of node1 online online
Online online STABLE node2
ORA.ons
STABLE of node1 online online
Online online STABLE node2
--------------------------------------------------------------------------------
Cluster resources
--------------------------------------------------------------------------------
ORA. LISTENER_SCAN1. LSNR
1 STABLE of node1 online online
ORA. LISTENER_SCAN2. LSNR
1 STABLE node2 online
ORA. LISTENER_SCAN3. LSNR
1 STABLE node2 online
ORA. MGMTLSNR
1 ONLINE 169.254.196.27 node2 192.1
68.174.220, STABLE
ORA. CVU
1 STABLE node2 online
ORA. DB01.DB
1. open of node1 ONLINE, STABLE
2 node2 open, STABLE online
ORA.mgmtdb
1 open ONLINE from node2, STABLE
ORA.node1.VIP
1 STABLE of node1 online online
ORA. Node2.VIP
1 STABLE node2 online
ORA. OC4J
1 STABLE node2 online
ORA.scan1.VIP
1 STABLE of node1 online online
ORA.scan2.VIP
1 STABLE node2 online
ORA.scan3.VIP
1 STABLE node2 online
--------------------------------------------------------------------------------
The output, I see no service created. You need to connect via a service that supports the TAF (application transparent failover) for this to work.
Please visit http://docs.oracle.com/cd/E11882_01/rac.112/e41960/hafeats.htm#RACAD841
Edit: see you use 12 c - check this doc instead http://docs.oracle.com/database/121/RACAD/hafeats.htm#RACAD8256
AJ
-
HI during startup of the database of the following errors is. Please help solve the problem.
SQL > alter database open;
change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.
============================================================
Please see the alerts log entries
--------------------------------------------------------------------------------------------------------------------------------
Commissioning:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With the options of partitioning, OLAP, Data Mining and Real Application Testing.
Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA
Parameters of the system with default values:
process = 400
sessions = 624
memory_target = 4G
control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.
control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.
DB_BLOCK_SIZE = 8192
compatible = "11.2.0.0.0."
log_archive_format = "ARC%S_%R.%T."
db_create_file_dest = 'D:\oracle\oradata. '
db_create_online_log_dest_1 = "D:\oracle\oradata".
db_create_online_log_dest_2 = "C:\oracle\oradata".
db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '
db_recovery_file_dest_size = 8G
undo_tablespace = 'UNDOTBS1.
Remote_login_passwordfile = "EXCLUSIVE."
db_domain = «»
dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "
audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".
AUDIT_TRAIL = 'DB '.
db_name = "ATTNDPRD".
open_cursors = 300
diagnostic_dest = "D:\APP\ADMINISTRATOR".
Sun 24 May 13:43:09 2015
PMON started with pid = 2, OS id = 5792
Sun 24 May 13:43:09 2015
VKTM started with pid = 3, OS id = 6500 high priority
VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms
Sun 24 May 13:43:09 2015
GEN0 started with pid = 4, OS id = 13072
Sun 24 May 13:43:09 2015
DIAG started with pid = 5, OS id = 1424
Sun 24 May 13:43:09 2015
DBRM started with pid = 6, OS id = 8240
Sun 24 May 13:43:09 2015
PSP0 started with pid = 7, OS id = 2980
Sun 24 May 13:43:09 2015
DIA0 started with pid = 8, OS id = 12956
Sun 24 May 13:43:09 2015
MA started with pid = 9, OS id = 13356
Sun 24 May 13:43:09 2015
DBW0 started with pid = 10, OS id = 14248
Sun 24 May 13:43:09 2015
DBW1 started with pid = 11, OS id = 17900
Sun 24 May 13:43:09 2015
LGWR started with pid = 12, OS id = 5564
Sun 24 May 13:43:09 2015
CKPT started with pid = 13, OS id = 16736
Sun 24 May 13:43:09 2015
SMON started with pid = 14, OS id = 14068
Sun 24 May 13:43:09 2015
RECCE has started with pid = 15, OS id = 16288
Sun 24 May 13:43:09 2015
MMON started with pid = 16, OS id = 10884
commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...
commissioning or shared server 1...
Environment ORACLE_BASE = D:\app\Administrator
Sun 24 May 13:43:09 2015
ALTER DATABASE MOUNT
Sun 24 May 13:43:09 2015
MMNL started with pid = 17, OS id = 16128
Mount of redo thread 1, with mount id 3325657453
Database mounted in exclusive Mode
Disabled lost write protect
Completed: ALTER DATABASE MOUNT
Sun 24 May 13:43:23 2015
change the database open
Sun 24 May 13:43:23 2015
LGWR: FROM PROCESS ARCH
Sun 24 May 13:43:23 2015
Arc0 started with pid = 21, OS id = 10084
Arc0: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
ARC0: FROM PROCESS ARCH
Sun 24 May 13:43:24 2015
Arc1 started with pid = 22, OS id = 18400
Sun 24 May 13:43:24 2015
ARC2 started with pid = 23, OS id = 17280
Arc1: Started archiving
ARC2: Started archiving
Arc1: become the "no FAL' ARCH
Arc1: become the "no SRL" ARCH
ARC2: Become the heartbeat ARCH
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19809: limit exceeded for file recovery
ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space
ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-16038: log 2 # 10343 sequence can be archived
ORA-19809: limit exceeded for file recovery
ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"
ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"
USER (ospid: 10400): put an end to litigation because of the error 16038
Sun 24 May 13:43:24 2015
ARC3 started with pid = 24, OS id = 2188
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Instance of stopped by USER, pid = 10400
--------------------------------------------------------------------------------------------------------------------------
Regarding
Ngoyi
Hello
Now it works very well... with following
--------------------------------------------------
using sqlplus
- Startup mount
- ALTER database noarchivelog;
- ALTER database open;
-------------------------------------------------------------------------------
Concerning
Ngoyi
-------------------------------------------------
-
Can Hi everyone, please how I fix this, ORA-03113:?
SQL > startup
ORA-10997: another start/stop operation this instance InProgress
ORA-09968: cannot lock file
Linux error: 11: Resource temporarily unavailable
Additional information: 3720
SQL > the judgment
ORACLE instance stops.
SQL > startup
ORACLE instance started.
Total System Global Area 309673984 bytes
Bytes of size 1336204 fixed
201329780 variable size bytes
Buffers data 100663296 bytes
Redo buffers 6344704 bytes
Mounted database.
ORA-03113: end of file on communication channel
Process ID: 3940
ID of the session: 21 serial number: 3
> Ksfdcre:4 ORA-17502: cannot create the file + FRA
> ORA-15041: diskgroup space exhausted ' FRA'
Above, should be resolved
-
ORA-03113 end of file on communication channel error
Hello
I am trying to create a table that looks like the following:
create table test as with a as ( .. ), b as ( ..), ab_percentage as ( .. ), c as ( .. ), d as ( ..), cd_percentage as ( .. ), e as ( select * from ab_percentage UNION cd_percentage ) select * from e;
When I run the script, I get the following error:
Oracle error: ORA-03113
end of file on communication channel
Cause: The connection between the Client and the process server was broken.
Action: There was a communication error that requires further investigation. First, check for network problems and review the SQL * Net configuration. In addition, review the file alert.log for possible errors. Finally, a test to see if the server process is dead and if a trace file has been generated at the time of the failure.
I use:
TOAD for Oracle Base 11.5.1.2
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Please help me understand this!
Thank you!
Hello
2632048 wrote:
Hello
I am trying to create a table that looks like the following:
- create the test table
- with one also
- (
- ..
- ),
- b as
- (
- ..),
- ab_percentage as
- (
- ..
- ),
- c as
- (
- ..
- ),
- d as
- (
- ..),
- cd_percentage as
- (
- ..
- ),
- e as
- (
- Select * from ab_percentage UNION cd_percentage
- )
- Select * e;
That has nothing to do with the problem of the ORA-03113, but what value is Sub question e add?
Why can't let you the lines 23, 24, 25, 27 and 28 above, so that the request ends
cd_percentage as
(
...
)
Select * from ab_percentage UNION select * from cd_percentage;
?
-
ORA-24248: DB XML extensible security not installed
Oracle: 11.2.0.3
OS: Linux
Issue when I open it as sys
SQL > SELECT global_name, utl_inaddr.get_host_address FROM global_name;
GLOBAL_NAME
--------------------------------------------------------------------------------
GET_HOST_ADDRESS
--------------------------------------------------------------------------------
VDLEO002.COMPSEC.com
125.102.136.220
While when I run as a user
SQL > SELECT global_name, utl_inaddr.get_host_address FROM global_name;
SELECT global_name, utl_inaddr.get_host_address FROM global_name
*
ERROR on line 1:
ORA-24248: DB XML extensible security not installed
ORA-06512: at "SYS." UTL_INADDR', line 19
ORA-06512: at "SYS." UTL_INADDR', line 40
ORA-06512: at line 1
SQL > show user
The USER is 'OSDBA '.
What could be the reason?
subsidies of public privilege or missing synonym to create?
SQL > select computername in dba_registry;
COMPUTERNAME
--------------------------------------------------------------------------------
Oracle database catalog views
Types and Packages of oracle database
Fix. This role is created as part of the installation XMLDB.
SY.
-
ORA-03113: end of file on communication channel
Help! I can't open the database, I get the error ora-03113
Here is my trace file
Fri Oct 08 22:37:15 2013
ARC3 started with pid = 34, OS id = 3016
ARC2: Started archiving
Arc1: become the "no FAL' ARCH
Arc1: become the "no SRL" ARCH
ARC2: Become the heartbeat ARCH
Errors in the e:\app\ABIGAIL\diag\rdbms\orcl\orcl\trace\orcl_lgwr_1952.trc file:
ORA-00313: open failed for the members of the group log 1 of thread 1
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 2) the system cannot find the file specified.
ORA-00312: thread 1 1 online journal: ' E:\APP\ABIGAIL\ORADATA\ORCL\REDO1A. JOURNAL"
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 2) the system cannot find the file specified.
Errors in the e:\app\ABIGAIL\diag\rdbms\orcl\orcl\trace\orcl_lgwr_1952.trc file:
ORA-00313: open failed for the members of the group log 1 of thread 1
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 2) the system cannot find the file specified.
ORA-00312: thread 1 1 online journal: ' E:\APP\ABIGAIL\ORADATA\ORCL\REDO1A. JOURNAL"
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 2) the system cannot find the file specified.
Errors in the e:\app\ABIGAIL\diag\rdbms\orcl\orcl\trace\orcl_ora_2908.trc file:
ORA-00313: open failed for the members of the newspaper group 1 of thread
ORA-00312: thread 1 1 online journal: ' E:\APP\ABIGAIL\ORADATA\ORCL\REDO1A. JOURNAL"
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
USER (ospid: 2908): put an end to litigation because of the 313 error
Instance of stopped by USER, pid = 2908
Trace file E:\app\ABIGAIL\diag\rdbms\orcl\orcl\trace\orcl_ora_2908.TRC
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
Windows XP Version V5.1 SP3
CPU: 2 - type 586, 2 physical cores
Process affinity: 0 x 0 x 00000000
Memory (success/Total): Ph: 276 M / 1791 M, Ph + FCP: 1116 M / 3685 M, GOES: 1166M / 2047 M
Name of the instance: orcl
Redo thread mounted by this instance: 1
Oracle process number: 31
Windows thread ID: 2908, image: ORACLE. EXE (SHAD)
2013-10-08 22:37:15.453
SESSION ID: (125.5) 2013-10-08 22:37:15.453
CUSTOMER ID :() 2013-10-08 22:37:15.453
:() 2013-10-08 22:37:15.453 SERVICE NAME
MODULE NAME: (sqlplus.exe) 2013-10-08 22:37:15.453
ACTION NAME :() 2013-10-08 22:37:15.453
DDE: Key problem "ORA 312' was the controlled flood (0 x 1) (incident)
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
DDE: Key problem "ORA 312' was the controlled flood (0 x 1) (incident)
ORA-00312: thread 1 1 online journal: ' E:\APP\ABIGAIL\ORADATA\ORCL\REDO1A. JOURNAL"
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
DDE: Key problem "ORA 313' was the controlled flood (0 x 1) (incident)
ORA-00313: open failed for the members of the newspaper group 1 of thread
ORA-00312: thread 1 1 online journal: ' E:\APP\ABIGAIL\ORADATA\ORCL\REDO1A. JOURNAL"
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
ORA-00313: open failed for the members of the newspaper group 1 of thread
ORA-00312: thread 1 1 online journal: ' E:\APP\ABIGAIL\ORADATA\ORCL\REDO1A. JOURNAL"
ORA-00312: thread 1 1 online journal: "E:\APP\ABIGAIL\ORADATA\ORCL\REDO1B."
2013-10-08 22:37:15.484
USER (ospid: 2908): put an end to litigation because of the 313 error
I realize that I don't have redo1a.log and redo1b... can - I simply recreate these files at the level of the BONE?
I use winxp pro, oracle 11 g 2
Thank you guys!
Has been your last stop clean or incompatible? (immediate or cancel)?
What happened that your loss of redo log files? Where are they? Were they use when they disappeared?
You can try to make changes to your collage of the database, and then disable the redo log (rebuild them) files with:
change the Group of clear database logfile X; (for each redo log group missing)
and then alter database open;
That will be if your controlfile sees it takes on these data in case of failure redo log files for example recovery (in the case where crashed database). In this case, your option is either incomplete recovery until the last before SNA do it disconnects disappeared (last SNA on the newspapers archived, excluding the Oder) flashback GOLD database to the same SCN (if you have configured blowback).
Concerning
Maybe you are looking for
-
ICH kann die iCloud foto library use um meine Fotos von different devices auf einem zu co-chair dazu? Can I use the foto iCloud library to consolidate my fotos from different devices on a single device? At ist mein Ziel: My goal: Matrix von allen mei
-
I have an ab053nr. I installed a Lenovo 256 ssd in it, instead of the hard drive. 8.1 Windows that has been installed on the disk, but not yet executed, did not have the wifi driver. I downloaded the recommended driver here at the beginning of this t
-
HI -. Still very new to CVI here. I'm designing a small application that accepts data from various sources (files, socket) and plot the data on a chart. I read in the online help how the variable void *callbackdata can be used to avoid global variabl
-
I bought the closure zipper Sansa clip not but a month ago and everything works fine... Until yesterday, when I went to use it, I realized that the volume would not turn upward. Inspect that closely, it appears that the volume control is broken and w
-
My hand cannot click to use the mouse
I'm years old hands that have a lot of difficulty to clicking a mouse with a delicacy or speed. What is my alternative to the mouse? I tried different mice, but they all involve some clicking. Thanks for your help :-)