ORA-19202: Error occurred in XML processingLSX-00023: unknown namespace URI
Hi there
I am trying to register an XSD document as an XML schema on the database. I am using Oracle 9i release 9.2.0.5.0 and using the dbms_xmlschema.registerSchema method in PL/SQL.
I am getting the following error when trying to register:
ORA-19202: Error occurred in XML processing LSX-00023: unknown namespace URI
The problem seems to be caused by a local simpleType declared outside of the root element. If I remove the simpleType from the xsd, I can register it successfully as a schema on the database. However, we need the simpleType there as it defines valid values for one of the elements in the xsd.
The xsd follows the structure:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.oracle.com/VFLOC.xsd"
xmlns:vfloc="http://www.oracle.com/VFLOC.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb">
<xsd:element name="VisionDataExchange">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Credentials">
...... etc. etc.
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- Data Types Must complete data type values from database -->
<xsd:simpleType name="TrueFalseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="1"/>
<xsd:enumeration value="0"/>
<xsd:enumeration value="True"/>
<xsd:enumeration value="False"/>
</xsd:restriction>
<!-- 1 and 0 are preferred -->
</xsd:simpleType>
</xsd:schema>
Does anyone know how I can register a schema with a targetNamespace and the local simpleType below?
Any help would be much appreciated.
Thanks!
Sonya
Hi
I wanted to know
1)Hw to register a schema
2) Associate xml files with the schema
3) hw to do read the xml files
If you could provide a small exampl, shall appreciate
Thanks for your help in advance
Sushil
Similar Messages
-
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing
Hi,
I am trying to update an already existing Sales Order through PO Change Inbound 860. When i am performing changes in the line quantity and scheduled ship date with operation code as "Update" then it is successfully updating the Order and also we are able to generate the POAck for the updated sales order lines. But when i am rejecting one of the PO change lines by checking rejected flag, then order is getting imported successfully(I mean sales order is getting updated successfully) but during the POAck Generation i.e. 865 its raising "*ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00103: Warning: document structure does not match DTD Error at line 1*" at XML Gateway. we are using XML Gateway to process the orders, can somebody help me to get rid of this issue. Thanks in advance.
Thanks,
Sunil ChauhanHi Kishan
Thanks for the reply.
Because this is an outbound transaction so i can not provide you the XML file as we are facing issue to generate the same. Also we are using oracle seeded PO outbound Ack map.
In addition i can provide you the DTD file.
<!-- ==================================================== -->
<!ENTITY % RESOURCES SYSTEM "oagis_resources.dtd">
%RESOURCES;
<!-- ==================================================== -->
<!ELEMENT ACKNOWLEDGE_PO_008 (CNTROLAREA, DATAAREA+)>
<!ATTLIST VERB
value CDATA #FIXED "ACKNOWLEDGE"
>
<!ATTLIST NOUN
value CDATA #FIXED "PO"
>
<!ATTLIST REVISION
value CDATA #FIXED "008"
>
<!ELEMENT DATAAREA (ACKNOWLEDGE_PO)
>
<!ELEMENT ACKNOWLEDGE_PO (POORDERHDR, POORDERLIN*)
>
<!ELEMENT POORDERHDR ((%DATETIME.DOCUMENT;)?, (%OPERAMT.EXTENDED.T;)?, POID, POTYPE, ACKREQUEST?, CONTRACTB?, CONTRACTS?, DESCRIPTN?, NOTES*, OPRAMTAUTH?, PORELEASE?, TAXWHEXMPT?, USERAREA?, ACKHEADER, ATTCHREF*, CHARGE*, PARTNER*, POTERM*)
>
<!ELEMENT ACKHEADER (SENDER, (%DATETIME.PROMDELV;)?, (%DATETIME.PROMSHIP;)?, ACKCODE, DESCRIPTN?, NOTES*, SALESORDID?, USERAREA?)
>
<!ELEMENT POTERM (DESCRIPTN?, TERMID?, ((DAYOFMONTH, PROXMONTH) | DAYSNUM), ((%OPERAMT.EXTENDED.T;) | (%QUANTITY.PERCENT;)), USERAREA?)
>
<!ELEMENT POORDERLIN ((%QUANTITY.ORDERED;), (%DATETIME.NEEDDELV;)?, (%OPERAMT.UNIT.T;)?, POLINENUM, DRAWING?, HAZRDMATL?, ITEMRV?, ITEMRVX?, NOTES*, PACKING?, POLNSTATUS?, TAXWHEXMPT?, ((DESCRIPTN, ITEM?, ITEMX?, UPC?) | (ITEM, ITEMX?, UPC?) | (ITEMX, UPC?) | (UPC)), USERAREA?, ACKLINE*, ATTCHREF*, CHARGE*, DISTRIBUTN*, PARTNER*, POTERM*, POSUBLINE*, POLINESCHD*)
>
<!ELEMENT ACKLINE ((%DATETIME.PROMDELV;)?, (%DATETIME.PROMSHIP;)?, (%QUANTITY.ORDERED;)?, ACKCODE, NOTES*, SALESORDID?, USERAREA?)
>
<!ELEMENT POSUBLINE ((%QUANTITY.ITEM;), DRAWING?, ITEMRV?, ITEMRVX?, PSBLINENUM?, ((DESCRIPTN, ITEM?, ITEMX?, UPC?) | (ITEM, ITEMX?, UPC?) | (ITEMX, UPC?) | (UPC)), USERAREA?)>
<!ELEMENT POLINESCHD ((%DATETIME.NEEDDELV;), (%QUANTITY.ORDERED;), DESCRIPTN?, PSCLINENUM?, USERAREA?)
>
Thanks,S
--Sunil -
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing L
Hi There,
I am trying to load XML data [Given Below] into a table using "Load XML Data" option.
<?xml version="1.0"?>
<ROWSET>
<ROW>
<ID>13</ID>
<TYPE_SEQ>8</TYPE_SEQ>
<TYPE>B749</TYPE>
<TYPE_DESC>B758</_TYPE_DESC>
<EFFECTIVE_FROM>2099-01-01</EFFECTIVE_FROM>
<EFFECTIVE_TO>2099-01-01</EFFECTIVE_TO>
<CREATED_BY>958344</CREATED_BY>
<CREATED_ON>2099-01-01</CREATED_ON>
<UPDATED_BY>172283</UPDATED_BY>
<UPDATED_ON>2099-01-01</UPDATED_ON>
</ROW>
</ROWSET>
It throws the following error.
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
Can any one advice the solution please.
-Sudheer.Hi Sudheer,
This is caused by the date format you are using. Probably it is not matching with your NLS settings. Check your NLS settings, what the date format is, and use that in the XML.
Check it with this code:
SELECT XMLELEMENT("date", sysdate) FROM dual;Make sure, you have your NLS_DATE settings in the same format.
Check it with:
SELECT * FROM v$nls_parameters WHERE parameter = 'NLS_DATE_FORMAT'And then make sure it is the same by setting for example:
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD';Greetings,
Rutger -
ORA-19202: Error occurred in XML processing
HI,
I was preparing a support schema which is in synch with the production schema. For one of the UI i am getting the following error when the XML is too large.
The same code is working in the production schema.
I did a reconcilation and found the code sources are exactly the same.Pasting the debug lines below.Please help resolving the issue.
gwpks_service_router.Getting the msg status for
gwpks_service_router.Inside fn_get_msgstat
gwpks_service_router.In wot of msg stat extraction: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "REC" does not match start-element tag "FCUBS_BODY"
Error at line 15697
gwpks_service_router.l_msgstat:
gwpks_service_router.Returning
gwpks_service_router.l_msg_stat:
gwpks_service_router.p_Process_Stat: S
gwpks_service_router. fn_service_router return true
gwpks_service_router.After fn_service_router, msgId:
gwpks_service_router.Logging begins
gwpks_service_router.Inside fn_populate_logs
gwpks_service_router.Inside fn_get_msgstat
gwpks_service_router.In wot of msg stat extraction: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "REC" does not match start-element tag "FCUBS_BODY"
Error at line 15697
gwpks_service_router.l_msgstat:
gwpks_service_router.Returning
gwpks_service_router.Msg Status:
gwpks_service_router.About to start the logging with MsgId:
gwpks_service_router.fn_populate_logs returning true
gwpks_service_router.MsgId:
gwpks_service_router.SysMsgId:
gwpks_service_router.MultitripId:
gwpks_service_router.l_process_stat in pr_process_req_msg : S
gwpks_service_router.GRAND SUCCESS CLOSING DEBUG
gwpks_service_router.GRAND SUCCESS CLOSING DEBUG 1Hi,
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
The code is very big.I prepared another schema on another database and the code is working.
Then v$ version of the working schema is as below:
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 Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Still wonder why this works in the second schema but not the first one. -
ORA-19202: Error occurred in XML processing ORA-24333: zero iteration coun
Hi,
I have a procedure which craetes a sql v_sql dynamically
IF v_cnt > 0 THEN
For c1 in v_curr
LOOP
v_sql := ''''||'SELECT * from '|| c1.msg_rcrd_src_tbl_nm||' where rowid = '||''''||''''||c1.msg_rcrd_src_tbl_id||''''||''''||'''';
select DBMS_XMLGEN.getXMLtype(v_sql) into v_xml from dual ;
gives me a error
ORA-19202: Error occurred in XML processing
ORA-24333: zero iteration count
ORA-06512: at "SYS.DBMS_XMLGEN", line 288
ORA-06512: at line 1
Any help greatly appreciated.
Thanks,
RajAnswered
Re: Zero iteration error - when processing dynamic sql in dbms_xmlgen -
Error while processing XML ; ORA-19202: Error occurred in XML processing
We have an application, which sends an XML to DB for processing.
While it works in general, it is failing, when special characters are present in the text node
see example below
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Group>
<Value> %</Value>
</Group>
</Query>
Db throws following error while parsing this xml
XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00217: invalid character 15573180 (U+EDA0BC)
How to fix it?The following works for me on 11.2.0.2, db charset AL32UTF8 :
test_sample.xml, encoding UTF-8 :
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Group>
<Value>?%</Value>
</Group>
</Query>NB : the characters behind the "?" got lost after posting, they're actually 0xF09F 8C82
Loading...
SQL> truncate table tmp_xml;
Table truncated
SQL>
SQL> insert into tmp_xml values (
2 xmltype(
3 bfilename('TEST_DIR','test_special.xml')
4 , nls_charset_id('AL32UTF8')
5 )
6 );
1 row inserted
SQL> set long 500
SQL> select * from tmp_xml;
SYS_NC_ROWINFO$
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Group>
<Value>í ¼í¼‚%</Value>
</Group>
</Query>
Edited by: odie_63 on 25 sept. 2012 23:00 -
ORA-20100: Error occurred while parsing (from xml in custom schema)
Hi,
I am using xmlParser and xmlDom to extract information from xml document. My whole process works perfectly in the APPS schema on the Oracle e-Business Suite. The minute I move it to a custom schema (ie new User) I get this error.
ORA-20100: Error occurred while parsing: Element '' used but not declared.
This only occures at runtime. I am pretty sure I grant the correct SELECT and EXECUTE privileges to this Schema. If I hadn't then it would not compile. It compiles without errors on the Database.
Any help will be appreciated.
Thanks in advance.
Regards
DaveI just tried this again. I have Oracle9i 9.0.1.1 on my Windows
2000 laptop.
I went to OTN and downloaded the XDK 9.0.2D for PL/SQL
I used loadjava to load the \oracle\ora90\rdbms\jlib\xdb_g.jar
file into the database (shouldn't have had to do this) into the
XMLBOOK account. Filed a bug for needing to do this by hand.
I ran "xdkload.bat" with xmlbook/xmlbook as the username/password
I made sure the proxy server name was set correctly in the
example (if you don't need a proxy server, comment out that line
in the parse_xml_news.sql example, or that could cause your
error!!)
I ran the parse_xml_news.sql script, and I get:
Top Stories on XML from Moreover.com on December 21st, 2001
( 1) CEO highlights Mercator Softwares single biggest opportunity
( 2) WWRE Chooses webMethods
( 3) WebMethods, retail exchange ink deal
( 4) Worldwide Retail Exchange Chooses webMethods
( 5) Worldwide Retail Exchange Chooses webMethods
( 6) WorldWide Retail Exchange choses webMethods for integration
( 7) XML: Wherever You Go, There You Are
( 8) Chap. 13: Metadata
( 9) Enterprise Adoption of XML Made Simple
(10) XML Databases
(11) Using CSS2 to display XML documents
(12) How XML could bring an end to all of your troubles
(13) Effort Launched To Bring Classic Macs Rich Metadata To Mac
(14) Sneak attack on Pearl Harbor roused publics anger, resolve
(15) Drug dogs whiff worth $230,000
(16) PORTLAND Police target
(17) 11-year-old cant seem to get out of jury duty
(18) Another casualty of war: Proposed waterfront museum
(19) webMethods Establishes Sales Operations in Brussels
(20) Using Emacs for XML documents
(21) Gates: XML could be everything we dreamed...
(22) XML: The end of all your troubles?
(23) Java XML
(24) Tool To Compare XML Files
(25) Fairfax County Sends webMethods to School
(26) webMethods Embraces Web Services
(27) WebMethods Supports Web Services
(28) Accessing metadata through Reflection
(29) When format is foremost
(30) Views from Abroad: XML Pipelines and Delta XML -
ORA-20100: Error occurred while parsing: Start of root element expected.
I've been searching everywhere for a reason to the following error message: ORA-20100: Error occurred while parsing: Start of root element expected.
I get this when attempting to parse an XML file stored as a CLOB using the xmlparser.parseClob procedure
Any help would be much appreciated.I initially used US ASCII but then tried several unicode formats as created by XML Spy (UTF16, Unicode16, Unicode32). All had the exact same result.
Exactly what would be the most helpful output? The XML documents are varied, mostly very simple, but do you want the CLOB printed some other way?
--Joan Armstrong
null -
ORA-20100: Error occurred while parsing:Error opening external DTD ( Asap)
Hi I'm using domsample example. And I have written the program. The xml file at the starting has this string"<!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">", from which I'm getting error -"ORA-20100: Error occurred while parsing: Error opening external DTD".
I'm new to xml could you please help me to solve this problem. I assume this is related to DTD for which I need to set base path. But I'm not sure how to do it? I'm getting this xml file through CLOB which I'm able to parse until an extent. where in between got this error.
Here is my partial code:
l_doc_id := rec_xml_data.id;
l_xml_parser := xmlparser.newParser;
xmlparser.setValidationMode(l_xml_parser, FALSE);
xmlparser.parseCLOB(l_xml_parser,rec_xml_data.l_xml_data);--PARSING THE CLOB WHICH CONTAINS XML FILE
l_xml_doc := xmlparser.getDocument(l_xml_parser);
xmlparser.freeParser(l_xml_parser);
l_nodelist := xmldom.getElementsByTagName(l_xml_doc, '*');
l_length := xmldom.getLength(l_nodelist);
-- loop through elements
FOR l_rec_xml in 0..l_length-1
LOOP
l_node := xmldom.item(l_nodelist, l_rec_xml);
-- dbms_output.put(xmldom.getNodeName(n) || ' ');
-- get the text node associated with the element node
l_nodename:=xmldom.getNodeName(l_node);
l_node := xmldom.getFirstChild(l_node);
IF (xmldom.isNull(l_node) = false) THEN
IF xmldom.getNodeType(l_node) = xmldom.TEXT_NODE THEN
IF l_nodename = 'purchase-order-number' THEN
l_po_num:=NULL;
l_po_num:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Purchaser Order Num : '||l_po_num);
END IF;
from here onwards I get the string values
Now I don't know where to set the DTD basepath or baseurl. I need it asap.
Regards,
Naveen.The version which I'm working on is 10.2.0.4.
XML File---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
<MobileInventoryResponse>
<message>
<message-header>
<message-id>16244182</message-id>
<transaction-name>ship-advice</transaction-name>
<partner-name>cbeyond</partner-name>
<source-url>http://www.brightpoint.com</source-url>
<create-timestamp>20080826150709</create-timestamp>
<response-request>1</response-request>
</message-header>
<ship-advice>
<header>
<customer-id>297859</customer-id>
<shipment-information>
<ship-first-name>RA_13Aug_1</ship-first-name>
<ship-last-name>MIND</ship-last-name>
<ship-address1>test</ship-address1>
<ship-city>test</ship-city>
<ship-state>VA</ship-state>
<ship-post-code>22102-4931</ship-post-code>
<ship-country-code>US</ship-country-code>
<ship-phone1>0040726335068</ship-phone1>
<ship-email>[email protected]</ship-email>
<ship-via>FX01</ship-via>
<ship-request-date>20080826</ship-request-date>
<ship-request-warehouse>CBY1</ship-request-warehouse>
</shipment-information>
<purchase-order-information>
<purchase-order-number>380928</purchase-order-number>
<account-description />
<purchase-order-amount>0.0</purchase-order-amount>
<currency-code>USD</currency-code>
</purchase-order-information>
<order-header>
<customer-order-number>0002759</customer-order-number>
<customer-order-date>20080826</customer-order-date>
<order-sub-total>19.0</order-sub-total>
<order-discount>0.0</order-discount>
<order-tax1>0.0</order-tax1>
<order-tax2>0.0</order-tax2>
<order-tax3>0.0</order-tax3>
<order-shipment-charge>18.0</order-shipment-charge>
<order-total-net>0.0</order-total-net>
<order-status>Completed</order-status>
<order-type />
<brightpoint-order-number>35028788</brightpoint-order-number>
<warehouse-id>CBY1</warehouse-id>
<ship-date>20080826</ship-date>
</order-header>
</header>
<detail>
<line-item>
<line-no>1</line-no>
<item-code>SKU1</item-code>
<universal-product-code>0</universal-product-code>
<ship-quantity>1.0</ship-quantity>
<unit-of-measure>EA</unit-of-measure>
<serial-list>
<serial-numbers>
<esn>TIMI000013</esn>
</serial-numbers>
</serial-list>
<line-status />
<base-price>0.0</base-price>
<line-discount>0.0</line-discount>
<line-tax1>0.0</line-tax1>
<line-tax2>0.0</line-tax2>
<line-tax3>0.0</line-tax3>
<bill-of-lading>929406733828</bill-of-lading>
<scac>FX01</scac>
</line-item>
</detail>
</ship-advice>
<transactionInfo>
<eventID>16244182</eventID>
</transactionInfo>
</message>
</MobileInventoryResponse>
XML FILE END--------------------
MY PROGRAM IS AS BELOW---
get_eai_data_prc( x_ret_code OUT NUMBER
,p_debug_flag IN VARCHAR2
IS
--Local Variables
l_xml_parser xmlparser.Parser;
l_xml_doc xmldom.DOMDocument;
l_xml_data CLOB;
l_nodelist xmldom.DOMNodeList;
l_length NUMBER := 0;
l_num_cnt NUMBER := 0;
l_node xmldom.DOMNode;
l_docelem DBMS_XMLDOM.DOMElement; -- XML DOM element.
l_nodeValue VARCHAR2(30); -- Text value of the node.
l_nodename VARCHAR2(100);
l_po_num VARCHAR2(150);
l_account_desc VARCHAR2(150);
l_cust_ord VARCHAR2(150);
l_ship_date VARCHAR2(150);
l_item_code VARCHAR2(150);
l_ship_qty VARCHAR2(150);
l_esn VARCHAR2(150);
l_cust_channel_type VARCHAR2(150);
l_cust_grp_acct VARCHAR2(150);
l_max_doc_id NUMBER;
l_doc_id NUMBER;
l_market_id VARCHAR2(150);
l_record_id VARCHAR2(30);
TYPE l_esn_table IS TABLE OF VARCHAR2(30)
INDEX BY BINARY_INTEGER;
l_data l_esn_table;
--CURSOR TO GET XML DATA FROM EAI
CURSOR cur_xml_data(p_doc_id VARCHAR2)
IS
SELECT id
,document l_xml_data
FROM tds_xml_store_temp
WHERE id >= id ;
BEGIN
FOR rec_xml_data IN cur_xml_data(l_max_doc_id)
LOOP
l_doc_id := rec_xml_data.id;
l_xml_parser := xmlparser.newParser;
xmlparser.setValidationMode(l_xml_parser, FALSE);
xmlparser.parseCLOB(l_xml_parser,rec_xml_data.l_xml_data);
l_xml_doc := xmlparser.getDocument(l_xml_parser);
xmlparser.freeParser(l_xml_parser);
l_nodelist := xmldom.getElementsByTagName(l_xml_doc, '*');
l_length := xmldom.getLength(l_nodelist);
-- loop through elements
FOR l_rec_xml in 0..l_length-1
LOOP
l_node := xmldom.item(l_nodelist, l_rec_xml);
-- dbms_output.put(xmldom.getNodeName(n));
-- get the text node associated with the element node
l_nodename:=xmldom.getNodeName(l_node);
l_node := xmldom.getFirstChild(l_node);
IF (xmldom.isNull(l_node) = false) THEN
IF xmldom.getNodeType(l_node) = xmldom.TEXT_NODE THEN
IF l_nodename = 'purchase-order-number' THEN
l_po_num:=NULL;
l_po_num:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Purchaser Order Num : '||l_po_num);
END IF;--purchase-order-number
IF l_nodename = 'account-description' THEN
l_account_desc :=NULL;
l_account_desc := xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'customer-channel-type' THEN
l_cust_channel_type:=NULL;
l_cust_channel_type:= xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'customer-group-account' THEN
l_cust_grp_acct := NULL;
l_cust_grp_acct := xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'customer-order-number' THEN
l_cust_ord:=NULL;
l_cust_ord:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Customer Order NUm : '||l_cust_ord);
END IF;--customer-order-number
IF l_nodename = 'ship-date' THEN
l_ship_date:=NULL;
l_ship_date:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Ship Date : '||to_date(l_ship_date,'YYYY-mm-dd'));
END IF;--ship-date
IF l_nodename = 'item-code' THEN
l_item_code:=NULL;
l_item_code:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Item Code : '||l_item_code);
END IF;--item-code
IF l_nodename = 'esn' THEN
l_esn:=NULL;
l_num_cnt := l_num_cnt + 1;
l_esn:=xmldom.getNodeValue(l_node);
l_data(l_num_cnt) := l_esn;
-- dbms_output.put_line('Serial Num : '||l_esn);
END IF;--esn
IF l_nodename = 'market-id' THEN
l_market_id := NULL;
l_market_id := xmldom.getNodeValue(l_node);
END IF;
IF l_nodename = 'ship-quantity' THEN
l_ship_qty:=NULL;
l_ship_qty:= xmldom.getNodeValue(l_node);
-- dbms_output.put_line('Ship Quantity : '||l_ship_qty);
END IF;--ship-quantity
END IF;--xmldom.TEXT_NODE
END IF;
END LOOP;--l_rec_xml
FOR j in l_data.first..l_data.last
LOOP
INSERT INTO cbey_shipment_int_stg( purchase_order_number
,account_description
,customer_order_number
,ship_date
,item_code
,ship_quantity
,esn
,customer_channel_type
,customer_group_account
,market_id
,eai_xml_doc_id
,record_status
,record_id
VALUES
( l_po_num
,l_account_desc
,l_cust_ord
,to_date(l_ship_date,'YYYY-mm-dd')
,l_item_code
,l_ship_qty
,l_data(j)
,l_cust_channel_type
,l_cust_grp_acct
,l_market_id
,l_max_doc_id
,'NEW'
,CBEY_RECORD_ID_SEQ_S.nextval
END LOOP;--j
UPDATE cbey_interface_run_log
SET request_id = l_conc_req_id
,lastrun_date = SYSDATE
,doc_id = rec_xml_data.id
WHERE program_id = 'SHIPMENT_INT'
AND doc_id =l_max_doc_id;
l_data.delete;
l_num_cnt :=0;
END LOOP; --rec_xml_data
COMMIT;
END of the Procedure--------------------------
Now if I load the xml file without the this :- <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
it works well. But it gives error when this particular thing is there.
Regards,
Naveen
Edited by: MAN on Oct 17, 2008 7:28 AM -
Drop Table, User, Drop * ORA-00604: error occurred at recursive SQL level 1
Greetingss,
Installed 11.2.0.1 several months ago and upgraded to 11.2.0.2 a month ago without issues. However prior to upgrade I was able to drop schema objects. Since upgrade I do not recall specifically dropping any objects. However, now trying to drop a few objects and discovered all drops attempted are failing, i.e. tables, packages, users, function, views, directories, etc. Create or Replace and Alter all appear to still work.
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
5 rows selected.
SQL> connect sys as sysdba
Connected.
SQL> create user drop_test identified by drop_test account unlock;
User created.
SQL> alter user drop_test default tablespace users;
User altered.
SQL> grant connect, resource, dba to drop_test;
Grant succeeded.
SQL> connect drop_test/drop_test
Connected.
SQL> create table a (a number);
Table created.
SQL> create view av as select * from a;
View created.
SQL> create function ac return number as
2 result number;
3 begin
4 select count (*) into result from a;
5 return result;
6 end;
7 /
Function created.
SQL> insert into a values (1);
1 row created.
SQL> commit;
Commit complete.
SQL> select ac from dual;
AC
1
1 row selected.
SQL> select * from av;
Enter
A
1
1 row selected.
SQL> drop function ac;
drop function ac
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> drop view av;
drop view av
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> drop table a;
drop table a
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> connect sys as sysdba
Connected.
SQL> drop function drop_test.ac;
drop function drop_test.ac
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> drop view drop_test.av;
drop view drop_test.av
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> drop table drop_test.a;
drop table drop_test.a
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> drop user drop_test;
drop user drop_test
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> drop user drop_test cascade;
drop user drop_test cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-06550: line 3, column 83:
PLS-00302: component 'DBMS_XDBZ' must be declared
ORA-06550: line 3, column 5:
PL/SQL: Statement ignored
SQL> get /x92
1 select owner, object_name, object_type, status
2 from dba_objects
3* where object_name = 'DBMS_XDBZ'
SQL> /
OWNER OBJECT_NAME OBJECT_TYPE STATUS
PUBLIC DBMS_XDBZ SYNONYM VALID
XDB DBMS_XDBZ PACKAGE VALID
XDB DBMS_XDBZ PACKAGE BODY VALID
3 rows selected.
SQL> @invalid
no rows selected
SQL> l
1 select
2 owner c1,
3 object_type c3,
4 object_name c2
5 from
6 dba_objects
7 where
8 status != 'VALID'
9 order by
10 owner,
11 object_type
12*
Advanced appreciation for any assistence provided.
best RegardsGreetings,
Yes I do use XDB and Application Express. I can also create and delete resources in XDB repository without issue.
SQL> select schema_url from dba_xml_schemas;
Enter
SCHEMA_URL
http://xmlns.oracle.com/xdb/acl.xsd
http://xmlns.oracle.com/xdb/dav.xsd
http://xmlns.oracle.com/xdb/XDBResConfig.xsd
http://xmlns.oracle.com/xdb/XDBStandard.xsd
http://xmlns.oracle.com/xdb/log/xdblog.xsd
http://xmlns.oracle.com/xdb/log/ftplog.xsd
http://xmlns.oracle.com/xdb/log/httplog.xsd
http://www.w3.org/2001/xml.xsd
http://xmlns.oracle.com/xdb/xmltr.xsd
http://xmlns.oracle.com/xdb/XDBFolderListing.xsd
http://www.w3.org/1999/xlink.xsd
http://www.w3.org/1999/csx.xlink.xsd
http://www.w3.org/2001/XInclude.xsd
http://www.w3.org/2001/csx.XInclude.xsd
http://xmlns.oracle.com/xdb/stats.xsd
http://xmlns.oracle.com/xs/roleset.xsd
http://xmlns.oracle.com/xs/securityclass.xsd
http://xmlns.oracle.com/rlmgr/rclsprop.xsd
http://xmlns.oracle.com/rlmgr/rulecond.xsd
http://xmlns.oracle.com/ord/meta/dicomImage
http://xmlns.oracle.com/xdb/xdbconfig.xsd
http://xmlns.oracle.com/streams/schemas/lcr/streamslcr.xsd
http://xmlns.oracle.com/xs/dataSecurity.xsd
http://xmlns.oracle.com/xs/aclids.xsd
http://xmlns.oracle.com/xs/principal.xsd
http://xmlns.oracle.com/xdb/XDBSchema.xsd
http://xmlns.oracle.com/xdb/XDBResource.xsd
http://www.w3.org/2001/csx.xml.xsd
http://xmlns.oracle.com/xdb/csx.xmltr.xsd
http://xmlns.oracle.com/ord/dicom/datatype_1_0
http://xmlns.oracle.com/ord/dicom/orddicom_1_0
http://xmlns.oracle.com/ord/dicom/mddatatype_1_0
http://xmlns.oracle.com/ord/meta/iptc
http://xmlns.oracle.com/ord/dicom/standardDictionary_1_0
http://xmlns.oracle.com/ord/meta/xmp
http://xmlns.oracle.com/ord/dicom/anonymity_1_0
http://xmlns.oracle.com/ord/dicom/constraint_1_0
http://xmlns.oracle.com/ord/dicom/metadata_1_0
http://xmlns.oracle.com/ord/dicom/mapping_1_0
http://xmlns.oracle.com/ord/dicom/preference_1_0
http://xmlns.oracle.com/ord/dicom/privateDictionary_1_0
http://xmlns.oracle.com/ord/meta/exif
http://xmlns.oracle.com/ord/dicom/rpdatatype_1_0
http://xmlns.oracle.com/ord/meta/ordimage
http://www.opengis.net/gml/geometry.xsd
http://www.opengis.net/gml/feature.xsd
demo_customer_t.xsd
http://xmlns.oracle.com/spatial/georaster/georaster.xsd
http://localhost:8080/source/schemas/poSource/xsd/purchaseOrder.xsd
http://xmlns.oracle.com/ord/dicom/UIDdefinition_1_0
http://xmlns.oracle.com/ord/dicom/attributeTag_1_0
http://xmlns.oracle.com/ord/dicom/manifest_1_0
http://www.w3.org/1999/xlink/xlinks.xsd
53 rows selected.
SQL>
I will have to review the notes provided via the links. I hope that there is a solution available that is in alternative to re-installing XDB.
Best Regards
Edited by: RealDitto on Aug 24, 2011 10:40 AM -
PL/SQL: ORA-04052: error occurred when looking up remote object.
Hi All,
I'm getting the following error message while executing a PL/SQL Block.
PL/SQL: ORA-04052: error occurred when looking up remote object UPLDUSER.filestatushistory@FTS
ORA-00604: error occurred at recursive SQL level 1
ORA-03106: fatal two-task communication protocol error
ORA-02063: preceding line from FTSStatement
declare
v_coun number;
begin
select count(*) into v_coun
from updluser.filestatushistory@fts;
end;Back ground of the situation as follows,
My DataBase version 10.2.0.3 DB Name :DB1
Table Owner : UPLDUSER
Table Name : FILESTATUSHISTORY
I have a report user on the same database and I have grant all on the above table to report user
Report User : RPT_FTS
SQL> GRANT ALL ON FILESTATUSHISTORY_V TO RPT_FTS;Now Please find the below database details where I'm getting subjected error.
Database version : 9.2.0.8
DB Name : DB2
User Name : RPT_REPORTS
I Have create a dblink from RPT_REPORTS to RPT_FTS on DB1 and the dblink works fine. But getting the above error while running it.
but When I do the same other 10.2.0.3 db , the above PL/SQL block works fine without any problem.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now the strange about this is that I have Created a new table on DB1 db like below;
SQL> CREATE TABLE UPLDUSER.ABC AS SELECT * FROM FILESTATUSHISTORY;and retry my code on DB2 (9.2.0.8) after changing the table to ABC and it worked. Now I don't know whats wrong with a original table(FILESTATUSHISTORY).
To over come the problem and a work-a-round method I create a view on the DB1 (RPT_FTS) like the below
SQL> CREATE VIEW FILESTATUSHISTORY AS SELECT * FROM UPLDUSER.FILESTATUSHISTORY;and was able to run the PL/SQL block Remotely.
Just wants To know what whould have been the cause for this .
Cheers
KanchanaHi Kanchana,
Perhaps following link of google search has answer to your query
ORA-04052. The search result contains some useful articles whose URLs I shan't post in the forums.
HTH!
*009* -
ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone
Hi
I'm trying to config my base_domain for SOA11g but i'm getting the following error when connecting to my Oracle XE DB to configure SOA,
please help thanks
Software installed
OS: Windows 7 64bit
DB: Oracle XE 10g
Oracle SOA 11.1.1.4.0
Oracle RCU 11.1.1.4.0
Oracle wls1034_generic
Error Detials
Component Schema=SOA Infrastructure
Driver=oracle.jdbc.xa.client.OracleXADataSource
URL=jdbc:oracle:thin:@127.0.0.1:1521/XE
User=DEV_SOAINFRA
Password=********
SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='SOAINFRA' and version='11.1.1.4.0'
ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
CFGFWK-60850: Test Failed!
Component Schema=User Messaging Service
Driver=oracle.jdbc.OracleDriver
URL=jdbc:oracle:thin:@127.0.0.1:1521/XE
User=DEV_ORASDPM
Password=********
SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='ORASDPM' and version='11.1.1.2.0'
ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
CFGFWK-60850: Test Failed!
Component Schema=OWSM MDS Schema
Driver=oracle.jdbc.OracleDriver
URL=jdbc:oracle:thin:@127.0.0.1:1521/XE
User=DEV_MDS
Password=********
SQL Test=select 1 from schema_version_registry where
owner=(select user from dual) and mr_type='MDS' and
version='11.1.1.4.0'
ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
CFGFWK-60850: Test Failed!
Component Schema=SOA MDS Schema
Driver=oracle.jdbc.OracleDriver
URL=jdbc:oracle:thin:@127.0.0.1:1521/XE
User=DEV_MDS
Password=********
SQL Test=select 1 from schema_version_registry where owner=(select user from dual) and mr_type='MDS' and version='11.1.1.4.0'
ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
CFGFWK-60850: Test Failed!
Component Schema=OSB JMS Reporting Provider
Driver=org.apache.derby.jdbc.ClientDriver
URL=jdbc:derby://127.0.0.1:1521/XE;create=true;ServerName=127.0.0.1;databaseName=XE
User=DEV_SOAINFRA
Password=********
SQL Test=SELECT 1 FROM SYS.SYSTABLES
Insufficient data while reading from the network - expected a minimum of 6 bytes and received only 0 bytes. The connection has been terminated.
CFGFWK-60850: Test Failed!Hi,
Please check the timezone set in your server where Weblogic is installed. Also ensure the timezone on which your weblogic is running, the same is present in in database by querying V$TIMEZONE_NAMES table. If it is not present then please change the timezone of the server. then try to execute the steps what you are doing, it will not throw any error.
if this helps please mark.
Thanks,
Kishore -
ORA-00604: error occurred at recursive SQL level 1
Hi,
i have a view as source (DB2)
Target table in Oracle with the same structure
when i view data from the view all the records are listed.
after mapping the source and target source gets fail while debuging (test data)
and also while deploying the mapping i get the following error.
Anyone knows about the following errors
ACBLODS_MAP
Create
Warning
ORA-06550: line 0, column 0:
ORA-04052: error occurred when looking up remote object [email protected]@DB2_KAPIL_LOCATION
ORA-00604: error occurred at recursive SQL level 1
ORA-28500: connection from ORACLE to a non-Oracle system returned this
please someone help me to solve this
thanks in advance
regards
rajaI had a simular problem with progress. If the progress table had to many columns
OWB was failing. The problem was the ODBC driver used to make a connection to PROGRESS. -
ORA-00604: error occurred at recursive SQL level 1 (Call to a Oracle View)
I have created a view that refers to a package function within the sql select.
Like
E.x
CREATE OR REPLACE VIEW VW_TAX
as select
test_pkg.fn_get_gl_value(acct_id) desired_col1,
test_pkg.fn_get_gl_desc_value(acct_id) desired_col2
From tables a, b
a.col= b.col
The sample function( fn_get_gl_value) is embedded into a package (test_pkg).
Function fn_get_gl_value:
It earlier referred to table A1, B1, C1 and this query took really long, Therefore I used object type tables and stored the values required once within the package when it is invoked. Later I used the Tables A1, B1 and C1(table Cast from the type Table Loaded in Package Memory)
The query was fast and fine, but now when I try to re-use the view
select * from VW_TAX
where acct_id = '02846'
It fails with this message
09:32:35 Error: ORA-00604: error occurred at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
Note: The database is Oracle8i Enterprise Edition Release 8.1.7.4.0.
Maximum cursors database is 500
Please let me know if there is any known solution,
Appreciate all your help
Thanks
RPSeems like your OPEN_CURSORS init.ora parameter is set too low.
See Metalink Note:1012266.6 for details.
ORA-01000: "maximum open cursors exceeded"
Cause: A host language program attempted to open too many cursors.
The initialization parameter OPEN_CURSORS determines the
maximum number of cursors per user.
Action: Modify the program to use fewer cursors. If this error occurs
often, shut down Oracle, increase the value of OPEN_CURSORS,
and then restart Oracle. -
ORA-00604: error occurred at recursive SQL level
I only have 2 users and approx 9 schemas.
Why is this complaining about maximum cursors??
Error message:
ORA-00604: error occurred at recursive SQL level
ORA-01000: maximum open cursors exceeded
ORA-0064 error occurred at recursive SQL level
Cause:
An error occurred at recursive SQl level
(a statement applying to internal dictionary tables)
>>
Created 2 users
1) boundaries (User)
has a couple of schema.
National, provincial, district, village
I have set-up the Primary & Foreign keys.
Only 1 table has 1 row of data
2) Projects (User)
Set up one table - Program
Program has a Primary Key.
Foreign key is linked to (boundaries) national PK
The problem occured when I entered data into boundaries.nationalClive_S wrote:
OS: Windows Server 2008 standard - 64 bit.
Select * from v$version
Oracle Database 11g release 11.1.0.7.0 - 64 bit
PL/SQL release 11.1.0.7.0 - production core 11.1.0.7.0
Production TNS for 64-bit windows: 11.1.0.7.0
Production NLSRTL for 64-bit windows: 11.1.0.7.0
I am trying to replicate in Oracle what I would do in SQL Server. There's your first mistake. There are too many differences. My first programming language was COBOL, but I don't write other languages as if they were COBOL.
I cannot attach an image of the users & tablespace, to illustrate.Another reason to work in sqlplus.
>
I created 2 User = Boundaries and Project
I created several schemas (tables)No, you created 2 schemas. One user = one schema = one user.
A schema is not a table and a table is not a schema. A schema is a collection of objects, which can include multiple tables but only those owned by one username.
>
Boundaries (user)
Tables:
Country
Province
District
Village
Projects (user)
Tables:
Program
Project.Program has a FK = Country that is linked to Boundaries.Country
I need to create several scemas (databases):Another difference. a schema is not a database, though the sql server concept of a database is somewhat analogous to an oracle schema.
Boundaries, Project, Assets.
There are foreign keys linking the various schemas.FKs link tables not schemas.
Edited by: EdStevens on Feb 26, 2010 10:30 AM
Maybe you are looking for
-
Can I use my Apple ID on another Mac?
Here's the deal: I have a Mac Pro that I use at home with my own, personal Apple ID. I want to buy a Mac for my business and want to have two user accounts on there. One for the business which will have its own, separate Apple ID, and one for my pers
-
Hello all! I am having difficulty understanding the signing of Packages, which I use for Distribution outside of the App Store. I have a valid Apple Developer Installer certificate I use with the `productsign --sign` command which I will demonstrate
-
Essbase server is invalid. Not registered with Shared Services
Hi, I am trying to deploy EPMA Essbase application after we upgrade to 11.1.2.2 from 11.1.2.0. I get this error. Application server '<Server>:1423' is invalid. It is not registered with Shared Services. URI: http://<Server>/awb/integration.verifyAppl
-
How to automate filling of a multiple lines pdf document created by Adobe LiveCycle
Hello to all. I have a pdf document which was created by Adobe LiveCycle Designer 11.0. This document inittialy contains a single line but we can add as much lines as we need. I have to fill this document lines with information from MS Excel 2007 wor
-
How to setup background job for QI06
Dear all, We have massive QIR to create and the volumn is extremely big to run in foreground in QI06. Can you show me the steps to setup QI06 to run in background, and how to view if the background job is complete, etc. Appreciate millions. Tuffy