Ora-01830 error when loading xml doc
Hi,
I keep getting this error whenever I try to load an xml document.
ora-01830: date format picture ends before converting entire input string.
The date element in the xml document is in this format:
2003-06-26T11:17:40.130
The datatype in the XML Schema is DATE and the "table" created by Oracle gives the column datatype as DATE.
The settings in oracle are as follows:
PARAMETER VALUE
------------------------------ ---------------------------NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
17 rows selected.
Can anybody tell me how Oracle is expecting the date to appear ?
Thanks,
Ned
I think you need .000000 at the end of the Time
Similar Messages
-
ORA-00054 error when loading Oracle table using Data Services
Hello,
we are facing ORA-00054 error when loading Oracle table using BO Data services
(Oracle 10g database, BODS Xi 3.2 SP3)
Test Job performs
1- truncate table
2- load table (tested in standard and bulk load modes)
Scenario when issue happens is:
1- Run loading Job
2- Job end in error for any Oracle data base error
3- When re-running the same Job, Job fails with following error
ORA-00054: resource busy and acquire with NOWAIT specified
It seems after first failure, Oracle session for loading the table stays active and locks the table.
To be able to rerun the Job, we are forced need to kill Oracle session manually to be able to run the Job again.
Expected behaviour would be : on error rollback modifications made on table and BODS stops Oracle session in a clean way.
Can somebody tell me / or point me to any BODS best practice about Oracle error handling to prevent such case?
Thanks in advance
Paul-Mariethe ora-0054 can occure depending how the job failed before. If this occures you will need the DBA to release the lock on the table in question
Or
AL_Engine.exe on The server it creates the Lock. Need to Kill Them. Or stop it..
This Problem Occurs when we select The Bulkloading Option in orclae We also faced the same issue,Our admin has Killed the session. Then everything alright. -
Error While Loading XMl Doc into Oracle Database 10g
Hi all,
I have a task that , I have to make a utillity by which we can load XML Doc into a Table. While searching on Internet i found following Procedure on ASK Tom
CREATE OR REPLACE
procedure insert_xml_emps(
p_directory in varchar2, p_filename in varchar2, vtableName in varchar2 )
as
v_filelocator bfile;
v_cloblocator clob;
l_ctx dbms_xmlsave.ctxType;
l_rows number;
begin
dbms_lob.createtemporary(v_cloblocator,true);
v_filelocator := bfilename(p_directory, p_filename);
dbms_lob.open(v_filelocator, dbms_lob.file_readonly);
DBMS_LOB.LOADFROMFILE(v_cloblocator, v_filelocator,
dbms_lob.getlength(v_filelocator));
l_ctx := dbms_xmlsave.newContext(vTableName);
l_rows := dbms_xmlsave.insertxml(l_ctx,v_cloblocator);
dbms_xmlsave.closeContext(l_ctx);
dbms_output.put_line(l_rows || ' rows inserted...');
dbms_lob.close(v_filelocator);
DBMS_LOB.FREETEMPORARY(v_cloblocator);
end ;
when i try to run this procedure
BEGIN
insert_xml_emps('XML_LOAD','load.xml','IBSCOLYTD');
END;
it gaves me following Error
ORA-29532: java call terminated by uncaught java exception : Oracle.xml.sql.OracleXMLSQLException:No
rows to modify-- the row enclosing tag missing. Specify the correct row enclosing tag.
ORA-06512: at "SYS.DBMS_XMLSAVE", line 115
ORA-06512: at "EXT_TEST.INSERT_XML_EMPS", line 18
ORA-06512: at line 2
Can anyone describe me this error
Thanks.
Best Regards.SQL> /* Creating Your table */
SQL> CREATE TABLE IBSCOLYTD
2 (
3 ACTNOI VARCHAR2 (8),
4 MEMONOI NUMBER (7,0),
5 MEMODTEI DATE,
6 AMOUNTI NUMBER (8,0),
7 BRCDSI NUMBER (4,0),
8 TYPEI NUMBER (4,0),
9 TRANSMONI NUMBER (6,0)
10 );
Table created.
SQL> CREATE OR REPLACE PROCEDURE insert_xml_emps(p_directory in varchar2,
2 p_filename in varchar2,
3 vtableName in varchar2) as
4 v_filelocator BFILE;
5 v_cloblocator CLOB;
6 l_ctx DBMS_XMLSTORE.CTXTYPE;
7 l_rows NUMBER;
8 v_amount_to_load NUMBER;
9 dest_offset NUMBER := 1;
10 src_offset NUMBER := 1;
11 lang_context NUMBER := DBMS_LOB.DEFAULT_LANG_CTX;
12 warning NUMBER;
13 BEGIN
14 dbms_lob.createtemporary(v_cloblocator, true);
15 v_filelocator := bfilename(p_directory, p_filename);
16 dbms_lob.open(v_filelocator, dbms_lob.file_readonly);
17 v_amount_to_load := DBMS_LOB.getlength(v_filelocator);
18 --- ***This line is changed*** ---
19 DBMS_LOB.LOADCLOBFROMFILE(v_cloblocator,
20 v_filelocator,
21 v_amount_to_load,
22 dest_offset,
23 src_offset,
24 0,
25 lang_context,
26 warning);
27
28 l_ctx := DBMS_XMLSTORE.newContext(vTableName);
29 DBMS_XMLSTORE.setRowTag(l_ctx, 'ROWSET');
30 DBMS_XMLSTORE.setRowTag(l_ctx, 'IBSCOLYTD');
31 -- clear the update settings
32 DBMS_XMLStore.clearUpdateColumnList(l_ctx);
33 -- set the columns to be updated as a list of values
34 DBMS_XMLStore.setUpdateColumn(l_ctx, 'ACTNOI');
35 DBMS_XMLStore.setUpdateColumn(l_ctx, 'MEMONOI');
36 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'MEMODTEI');
37 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'AMOUNTI');
38 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'BRCDSI');
39 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TYPEI');
40 DBMS_XMLStore.setUpdatecolumn(l_ctx, 'TRANSMONI');
41 -- Now insert the doc.
42 l_rows := DBMS_XMLSTORE.insertxml(l_ctx, v_cloblocator);
43 DBMS_XMLSTORE.closeContext(l_ctx);
44 dbms_output.put_line(l_rows || ' rows inserted...');
45 dbms_lob.close(v_filelocator);
46 DBMS_LOB.FREETEMPORARY(v_cloblocator);
47 END;
48 /
Procedure created.
SQL> BEGIN
2 insert_xml_emps('TEST_DIR','load.xml','IBSCOLYTD');
3 END;
4 /
PL/SQL procedure successfully completed.
SQL> SELECT * FROM ibscolytd;
ACTNOI MEMONOI MEMODTEI AMOUNTI BRCDSI TYPEI TRANSMONI
28004125 251942 05-SEP-92 400 513 1 0
28004125 251943 04-OCT-92 400 513 1 0
SQL> -
When using Load XML Data utility I am getting an error:
ORA-00942: table or view does not exist
Error loading XML.
Loading as CSV text works except some records with new line characters.
Also, when xml file is really small – “Load XML” works too. The actual file is ~ 12 MB.
How to resolve this issue?
Application Express 3.2.0.00.27
Oracle 10.2.0.1.0
Your help will be appreciated,
AnatolyHi Anatoly,
I suspect this is a problem with the underlying package DBMS_XMLGEN and not directly in APEX.
Can you reproduce this issue on apex.oracle.com?
Joel -
ORA-00600 error when registering XML Schema
Dear Mark!
1. Database version: 9.2.0.3.0
2. Operating system: Windows XP Prof
3. XML Schema: (it's too big to be posted_
4. Instance document: no
5. SQL statement used to register the schema
DBMS_XMLSCHEMA.registerSchema(schemaURL => aSchemaURL, schemaDoc => fBFile_Loc);
6. SQL statement that exposes the problem: above
Attempt to register XML Schema caused the following error:
ORA-00600: internal error code, arguments: [qmtsGetAttrElemName1], [], [], [], [], [], [], []
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 131
ORA-06512: at "DVLP.PRIME_BRIDGE", line 91
ORA-06512: at line 6
What does it mean?
Thank you in advance
Artem RodinIf you cannot post the schema please open a itar with oralce support so that the schema can be uploaded.
-
SetClob error, when putting XML doc to CLOB col via XSQL
Hi,
When I am trying to put an XML to a VARCHAR2 column, it works fine.
However,
when I am trying to put it to a CLOB column,
the Apache Server generates an Internal Server Error.
And the error_log of the Apache contains following error message:
java.lang.NoSuchMethodError: oracle.jdbc.driver.OraclePreparedStatement: method setClob(ILjava/sql/Clob;)V not found
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
I am running Oracle8i (8.1.7) on Linux 2.2.16-3.
Please give me a help.
Thanks,
Joseph
The Table:
SQL> desc XML_TEST;
Name Null? Type
CLOBTEST CLOB
SQL>
The XSQL File, test.xsql:
<?xml version="1.0"?>
<test connection="xxxx" xmlns:xsql="urn:oracle-xsql">
<xsql:insert-request table="XML_TEST"
transform="test.xsl"/>
</test>
The XSL File, test.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" cdata-section-elements="CLOBTEST"/>
<xsl:template match="/">
<ROWSET>
<xsl:for-each select="request/parameters">
<ROW>
<CLOBTEST><xsl:value-of disable-output-escaping="yes" select="txtTest"/></CLOBTEST>
</ROW>
</xsl:for-each>
</ROWSET>
</xsl:template>
</xsl:stylesheet>
The HTML File, test.html:
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM name="frmTest" action="test.xsql" method="POST">
<B>Type in an XML Document:</B><BR>
<TEXTAREA rows="10" style="width:100%" cols="70" name="txtTest"></TEXTAREA>
<INPUT type="submit" value="Post XML Document">
</FORM>
</BODY>
</HTML>
nullSteve,
Your guess was right!!! Thank You.
In my jserv.properties file,
there were "classess111.zip" and "xsu12.jar" for the "wrapper.classpath".
So, I modified the file to include only:
"classess12.zip" and "xsu12.jar".
After that, Internal Server Error was disappeared,
but I got new errors for the response, as following:
Oracle XSQL Servlet Page Processor 1.0.4.1 (Production)
XSQL-017: Unexpected Error Occurred
java.lang.NoClassDefFoundError: java/sql/Clob
at oracle.jdbc.driver.OracleStatement.get_clob_value(OracleStatement.java:4447)
at oracle.jdbc.driver.OracleStatement.getCLOBValue(OracleStatement.java:3025)
at oracle.jdbc.driver.OracleCallableStatement.getCLOB(OracleCallableStatement.java:439)
at oracle.xml.sql.dml.OracleXMLSave.createTempCLOBFromString(OracleXMLSave.java:2283)
at oracle.xml.sql.dml.OracleXMLSave.setBindValue(OracleXMLSave.java:1218)
at oracle.xml.sql.dml.OracleXMLSave.saveNodeVal(OracleXMLSave.java:2259)
at oracle.xml.sql.dml.OracleXMLSave.saveNode(OracleXMLSave.java:2146)
at oracle.xml.sql.dml.OracleXMLSave.saveNodes(OracleXMLSave.java:2061)
at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:1954)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:1060)
at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:126)
at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:132)
at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:131)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
I am wondering if there are other mismatches.
Thanks again,
Joseph -
Errors when loading XML SQL Utility
I'm working on a Unix machine, attempting
to load the Oracle XML SQL Utility classes
into my database so that I can use them in
stored procedures.
My problem is occuring when I try to use
loadjava to install the classes. I haved
altered both env.csh and oraclrxmlsqlload.csh to match my shell and desired settings, but I get a core dump when loadjava executes in the script:
SIGSEGV received. Processing terminated
full version ""
Full thread dump:
"Async Garbage Collector" (TID:0x3002bd00, sys_thread_t:0x2006b7d8)
Native Thread State: ThreadID: 00000203 Reuse: 1 DAEMON MONITOR WAIT
Native Stack Data : base: 201133a0 pointer 20113018 used(904) free(257144)
----- Monitors held -----
----- Native stack -----
------ Java stack ------ () prio=1
"Finalizer thread" (TID:0x3002bd38, sys_thread_t:0x2006b588)
Native Thread State: ThreadID: 00000102 Reuse: 1 DAEMON MONITOR WAIT
Native Stack Data : base: 200ca230 pointer 200c9f68 used(712) free(257336)
----- Monitors held -----
----- Native stack -----
------ Java stack ------ () prio=1
"main" (TID:0x3002bd70, sys_thread_t:0x20007278)
Native Thread State: ThreadID: 00000001 Reuse: 1 USER PRIMORDIAL RUNNING
Native Stack Data : base: 2ff22004 pointer 2ff1f658 used(10668) free(247380)
----- Monitors held -----
java.lang.Class java/sql/DriverManager@30025318
oracle.jdbc.oci8.OCIDBAccess@300304e8
----- Native stack -----
eoj_memcpy(d15779b8)
eoj_memcpy(d1574d08)
eoj_memcpy(d1574484)
inflate_copyright(2c203a6e)
inflate_copyright(2c203a6e)
[sigsegv]...
------ Java stack ------ () prio=5 current thread
Anyone have any ideas what might be the problem?Sorry...missed your first question there.
I'm running AIX 4.3.2 on an IBM RS/6000 Server. I've got Java 1.1.6 installed. -
Error when loading xml in Indesign CS4
Hello,
A couple of years ago, we wrote a little javascript file to import an xml file in Indesign CS2. Which worked fine.
But now in CS4, we get the following error message:
Javascript Error!
Error Number: 55
Error String: Object does not support the property or method '[object InsertionPoint]'
I narrowed it down to this little method:
function verwijderlege(elm) => elm = app.activedocument which is an XML file.
var i, offset;
for (i = elm.xmlElements.length - 1 ; i > -1 ; i--)
if (elm.xmlElements[i].contents == "")
offset = elm.xmlElements[i].storyOffset;
parentst = elm.xmlElements[i].parentStory;
elm.xmlElements[i].remove();
parentst.characters[offset].remove(); (Error message sais it's this line)
else
verwijderlege(elm.xmlElements[i]);
I hope someone can help me with this.
Thanks in advance,
Gunther ChristiaensHi Anatoly,
I suspect this is a problem with the underlying package DBMS_XMLGEN and not directly in APEX.
Can you reproduce this issue on apex.oracle.com?
Joel -
I am getting the following error when loading xml datafile to my Oracle XE database table. This data I exported from htmldb.oracle.com.
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
please help
GeorgeGeorge,
I expect that this is simply an incompatibility with the date format that was used for XML Import/Export as part of XE Beta. This is a bug that has been fixed for XE production and you will be able to freely export from HTML DB 2.0 and import into XE and vice versa.
Your NLS settings do not control this. The date format used for XML Export is fixed - a canonical date format is always used.
If you want to be able to import into XE Beta, your date fields probably look like:
<HIREDATE>2005-12-03T00:00:00.000</HIREDATE>Just remove the trailing .000 from your date entries.
<HIREDATE>2005-12-03T00:00:00</HIREDATE>
Note: This will only be necessary for XE Beta. You should not have to do this for XE Production.
Joel -
Error when loading data from xml file
Hi,
I'm trying to load data into a table from XML file using ApEx DATA UNLOAD/LOAD interfaces .
ApEx version is 3.0.1 .
I'm getting this error:
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
How to find cause of the error ?
JanusTkank you for the simple but good advice :)
unfortunately even google didn't find many answers :
LPX-00222 + APEX ... NOTHING
LPX-00222 + ORA- ... 2 pages of something like
"Examine the additional error messages and take corrective action" -
Error while loading XML file to XML_type column
I am trying to load a huge xml file in table having xml_type column. I am getting an error
The following error has occurred:
ORA-20010: Error: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00216: invalid character 140 (0x8C)
Error at line 2 at location: 10
Any suggestions why I might be getting this errors?
Is there any size restriction on the file that we can load with loadfromfile?
THis is the procedure I have written to load the file--
CREATE OR REPLACE procedure vsave_xml_file_to_table(
p_directory in varchar2,
p_filename in varchar2 )
AUTHID DEFINER
as
v_filelocator bfile;
v_cloblocator clob;
v_filelength number;
v_loc number :=10;
begin
dbms_lob.createtemporary(v_cloblocator,true);
v_filelocator := bfilename(p_directory, p_filename);
dbms_lob.fileopen(v_filelocator, dbms_lob.file_readonly);
dbms_lob.loadfromfile(v_cloblocator, v_filelocator,dbms_lob.getlength(v_filelocator));
v_filelength := dbms_lob.getlength(v_filelocator);
DBMS_OUTPUT.PUT_LINE('File is loaded and its size is :'|| v_filelength);
dbms_lob.fileclose(v_filelocator);
--insert into vxml values(1, XMLType.createXML(v_cloblocator));
insert into vxml values(1, XMLType(v_cloblocator,null,0,0));
DBMS_LOB.FREETEMPORARY(v_cloblocator);
exception
when others then
-- close the cursor and file, and reraise.
if dbms_lob.fileisopen(v_filelocator) = 1 then
dbms_lob.fileclose(v_filelocator);
end if;
rollback;
raise_application_error (-20010,'Error: '||sqlerrm|| ' at location: '||v_loc);
end vsave_xml_file_to_table;
The input file is of size 5K.
The procedure loads a file of size around 100 bytes with no problem.
I am on Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
Please help
Thanks!As you said, i have changed the Code, But still the same error,
CREATE OR REPLACE FUNCTION fn_Ins_CLOBDOCUMENT(FILENAME IN VARCHAR2,
CHARSET IN VARCHAR2 DEFAULT NULL)
RETURN CLOB DETERMINISTIC IS
FILE BFILE := BFILENAME('FXLMBAH', FILENAME);
CHARCONTENT CLOB := ' ';
TARGETFILE BFILE;
LANG_CTX NUMBER := DBMS_LOB.DEFAULT_LANG_CTX;
CHARSET_ID NUMBER := 0;
SRC_OFFSET NUMBER := 1;
DST_OFFSET NUMBER := 1;
WARNING NUMBER;
BEGIN
IF CHARSET IS NOT NULL THEN
CHARSET_ID := NLS_CHARSET_ID(CHARSET);
END IF;
TARGETFILE := FILE;
DBMS_LOB.FILEOPEN(TARGETFILE, DBMS_LOB.FILE_READONLY);
DBMS_LOB.LOADCLOBFROMFILE(CHARCONTENT,
TARGETFILE,
DBMS_LOB.GETLENGTH(TARGETFILE),
SRC_OFFSET,
DST_OFFSET,
CHARSET_ID,
LANG_CTX,
WARNING);
DBMS_LOB.FILECLOSE(TARGETFILE);
RETURN CHARCONTENT;
END;
INSERT INTO XMLTABLE
VALUES(XMLTYPE(fn_Ins_CLOBDOCUMENT('purchaseorder.xml')))
ORA-22288: file or LOB operation FILEOPEN failed
No such file or directory
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "LCC.FN_INS_CLOBDOCUMENT", line 17
ORA-06512: at line 1raja
Edited by: KrChowdary on Feb 18, 2009 3:36 PM -
ORA-12709: error while loading create database character set after upgrade
Dear All
i m getting ORA-12709: error while loading create database character set, After upgraded the database from 10.2.0.3 to 11.2.0.3 in ebusiness suit env.
current application version 12.0.6
please help me to resolve it.
SQL> startup;
ORACLE instance started.
Total System Global Area 1.2831E+10 bytes
Fixed Size 2171296 bytes
Variable Size 2650807904 bytes
Database Buffers 1.0133E+10 bytes
Redo Buffers 44785664 bytes
ORA-12709: error while loading create database character set
-bash-3.00$ echo $ORA_NLS10
/u01/oracle/PROD/db/teche_st/11.2.0/nls/data/9idata
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=/u01/oracle/PROD/db/tech_st/11.2.0
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/site_perl/5.10.0
export ORA_NLS10=/u01/oracle/PROD/db/teche_st/11.2.0/nls/data/9idata
export ORACLE_SID=PROD
-bash-3.00$ pwd
/u01/oracle/PROD/db/tech_st/11.2.0/nls/data/9idata
-bash-3.00$ ls -lh |more
total 56912
-rw-r--r-- 1 oracle oinstall 951 Jan 15 16:05 lx00001.nlb
-rw-r--r-- 1 oracle oinstall 957 Jan 15 16:05 lx00002.nlb
-rw-r--r-- 1 oracle oinstall 959 Jan 15 16:05 lx00003.nlb
-rw-r--r-- 1 oracle oinstall 984 Jan 15 16:05 lx00004.nlb
-rw-r--r-- 1 oracle oinstall 968 Jan 15 16:05 lx00005.nlb
-rw-r--r-- 1 oracle oinstall 962 Jan 15 16:05 lx00006.nlb
-rw-r--r-- 1 oracle oinstall 960 Jan 15 16:05 lx00007.nlb
-rw-r--r-- 1 oracle oinstall 950 Jan 15 16:05 lx00008.nlb
-rw-r--r-- 1 oracle oinstall 940 Jan 15 16:05 lx00009.nlb
-rw-r--r-- 1 oracle oinstall 939 Jan 15 16:05 lx0000a.nlb
-rw-r--r-- 1 oracle oinstall 1006 Jan 15 16:05 lx0000b.nlb
-rw-r--r-- 1 oracle oinstall 1008 Jan 15 16:05 lx0000c.nlb
-rw-r--r-- 1 oracle oinstall 998 Jan 15 16:05 lx0000d.nlb
-rw-r--r-- 1 oracle oinstall 1005 Jan 15 16:05 lx0000e.nlb
-rw-r--r-- 1 oracle oinstall 926 Jan 15 16:05 lx0000f.nlb
-rw-r--r-- 1 oracle oinstall 1.0K Jan 15 16:05 lx00010.nlb
-rw-r--r-- 1 oracle oinstall 958 Jan 15 16:05 lx00011.nlb
-rw-r--r-- 1 oracle oinstall 956 Jan 15 16:05 lx00012.nlb
-rw-r--r-- 1 oracle oinstall 1005 Jan 15 16:05 lx00013.nlb
-rw-r--r-- 1 oracle oinstall 970 Jan 15 16:05 lx00014.nlb
-rw-r--r-- 1 oracle oinstall 950 Jan 15 16:05 lx00015.nlb
-rw-r--r-- 1 oracle oinstall 1.0K Jan 15 16:05 lx00016.nlb
-rw-r--r-- 1 oracle oinstall 957 Jan 15 16:05 lx00017.nlb
-rw-r--r-- 1 oracle oinstall 932 Jan 15 16:05 lx00018.nlb
-rw-r--r-- 1 oracle oinstall 932 Jan 15 16:05 lx00019.nlb
-rw-r--r-- 1 oracle oinstall 951 Jan 15 16:05 lx0001a.nlb
-rw-r--r-- 1 oracle oinstall 944 Jan 15 16:05 lx0001b.nlb
-rw-r--r-- 1 oracle oinstall 953 Jan 15 16:05 lx0001c.nlb
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
ORACLE_HOME = /u01/oracle/PROD/db/tech_st/11.2.0
System name: SunOS
Node name: proddb3.zakathouse.org
Release: 5.10
Version: Generic_147440-19
Machine: sun4u
Using parameter settings in server-side spfile /u01/oracle/PROD/db/tech_st/11.2.0/dbs/spfilePROD.ora
System parameters with non-default values:
processes = 200
sessions = 400
timed_statistics = TRUE
event = ""
shared_pool_size = 416M
shared_pool_reserved_size= 40M
nls_language = "american"
nls_territory = "america"
nls_sort = "binary"
nls_date_format = "DD-MON-RR"
nls_numeric_characters = ".,"
nls_comp = "binary"
nls_length_semantics = "BYTE"
memory_target = 11G
memory_max_target = 12G
control_files = "/u01/oracle/PROD/db/apps_st/data/cntrl01.dbf"
control_files = "/u01/oracle/PROD/db/tech_st/10.2.0/dbs/cntrl02.dbf"
control_files = "/u01/oracle/PROD/db/apps_st/data/cntrl03.dbf"
db_block_checksum = "TRUE"
db_block_size = 8192
compatible = "11.2.0.0.0"
log_archive_dest_1 = "LOCATION=/u01/oracle/PROD/db/apps_st/data/archive"
log_archive_format = "%t_%s_%r.dbf"
log_buffer = 14278656
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
db_files = 512
db_file_multiblock_read_count= 8
db_recovery_file_dest = "/u01/oracle/fast_recovery_area"
db_recovery_file_dest_size= 14726M
log_checkpoints_to_alert = TRUE
dml_locks = 10000
undo_management = "AUTO"
undo_tablespace = "APPS_UNDOTS1"
db_block_checking = "FALSE"
session_cached_cursors = 500
utl_file_dir = "/usr/tmp"
utl_file_dir = "/usr/tmp"
utl_file_dir = "/u01/oracle/PROD/db/tech_st/10.2.0/appsutil/outbound"
utl_file_dir = "/u01/oracle/PROD/db/tech_st/10.2.0/appsutil/outbound/PROD_proddb3"
utl_file_dir = "/usr/tmp"
plsql_code_type = "INTERPRETED"
plsql_optimize_level = 2
job_queue_processes = 2
cursor_sharing = "EXACT"
parallel_min_servers = 0
parallel_max_servers = 8
core_dump_dest = "/u01/oracle/PROD/db/tech_st/10.2.0/admin/PROD_proddb3/cdump"
audit_file_dest = "/u01/oracle/admin/PROD/adump"
db_name = "PROD"
open_cursors = 600
pga_aggregate_target = 1G
workarea_size_policy = "AUTO"
optimizer_secure_view_merging= FALSE
aq_tm_processes = 1
olap_page_pool_size = 4M
diagnostic_dest = "/u01/oracle"
max_dump_file_size = "20480"
Tue Jan 15 16:16:02 2013
PMON started with pid=2, OS id=18608
Tue Jan 15 16:16:02 2013
PSP0 started with pid=3, OS id=18610
Tue Jan 15 16:16:03 2013
VKTM started with pid=4, OS id=18612 at elevated priority
VKTM running at (10)millisec precision with DBRM quantum (100)ms
Tue Jan 15 16:16:03 2013
GEN0 started with pid=5, OS id=18616
Tue Jan 15 16:16:03 2013
DIAG started with pid=6, OS id=18618
Tue Jan 15 16:16:03 2013
DBRM started with pid=7, OS id=18620
Tue Jan 15 16:16:03 2013
DIA0 started with pid=8, OS id=18622
Tue Jan 15 16:16:03 2013
MMAN started with pid=9, OS id=18624
Tue Jan 15 16:16:03 2013
DBW0 started with pid=10, OS id=18626
Tue Jan 15 16:16:03 2013
LGWR started with pid=11, OS id=18628
Tue Jan 15 16:16:03 2013
CKPT started with pid=12, OS id=18630
Tue Jan 15 16:16:03 2013
SMON started with pid=13, OS id=18632
Tue Jan 15 16:16:04 2013
RECO started with pid=14, OS id=18634
Tue Jan 15 16:16:04 2013
MMON started with pid=15, OS id=18636
Tue Jan 15 16:16:04 2013
MMNL started with pid=16, OS id=18638
DISM started, OS id=18640
ORACLE_BASE from environment = /u01/oracle
Tue Jan 15 16:16:08 2013
ALTER DATABASE MOUNT
ORA-12709 signalled during: ALTER DATABASE MOUNT...ORA-12709 signalled during: ALTER DATABASE MOUNT...Do you have any trace files generated at the time you get this error?
Please see these docs.
ORA-12709: WHILE STARTING THE DATABASE [ID 1076156.6]
Upgrading from 9i to 10gR2 Fails With ORA-12709 : Error While Loading Create Database Character Set [ID 732861.1]
Ora-12709 While Trying To Start The Database [ID 311035.1]
ORA-12709 when Mounting the Database [ID 160478.1]
How to Move From One Database Character Set to Another at the Database Level [ID 1059300.6]
Thanks,
Hussein -
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 -
Hi, I am trying to generate an XML file using the code below and receive the following error;
failed ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00231: invalid character 60 ('<') found in a Name or Nmtoken
Error at line 47102066
The code inside the procedure is:
xml_result xmltype;
doc dbms_xmldom.DOMDocument;
ctx DBMS_XMLGEN.ctxHandle;
vv_exit_code varchar2(5);
vv_ctx_open varchar2(1) := 'N';
BEGIN
vv_exit_code := 'XML1';
ctx := dbms_xmlgen.newcontext(p_sql);
vv_ctx_open := 'Y';
DBMS_OUTPUT.put_line(vv_exit_code);
vv_exit_code := 'XML2';
DBMS_XMLGEN.SETCONVERTSPECIALCHARS (ctx,TRUE);
DBMS_OUTPUT.put_line(vv_exit_code);
vv_exit_code := 'XML3';
xml_result := dbms_xmlgen.getXMLType(ctx);
DBMS_OUTPUT.put_line(vv_exit_code);
IF xml_result is not null THEN
vv_exit_code := 'XML4';
doc := dbms_xmldom.newDOMDocument(xml_result);
DBMS_OUTPUT.put_line(vv_exit_code);
vv_exit_code := 'XML5';
dbms_xmldom.writeToFile(doc,p_dir||'/'||p_fileName, 'ISO-8859-1');
DBMS_OUTPUT.put_line(vv_exit_code);
vv_exit_code := 'XML6';
dbms_xmldom.freeDocument(doc);
p_xml_created := 'TRUE';
DBMS_OUTPUT.put_line(vv_exit_code);
ELSE
p_xml_created := 'FALSE';
END IF;
DBMS_XMLGEN.CLOSECONTEXT (ctx);
vv_ctx_open := 'N';
EXCEPTION
WHEN out_of_process_memory THEN
IF vv_ctx_open = 'Y' THEN
DBMS_XMLGEN.CLOSECONTEXT (ctx);
END IF;
gv_err_msg := substr(sqlerrm,1,2000);
DBMS_OUTPUT.put_line(gv_process_name||' failed '||gv_err_msg);
RAISE_APPLICATION_ERROR(-20906,gv_process_name||' failed'||gv_err_msg);
dbms_output.put_line('XML_EXPORT failed (out_of_process_memory exception) executing '||p_sql);
raise_application_error(-20906,'XML_EXPORT (out_of_process_memory exception) failed executing '||p_sql);
WHEN OTHERS THEN
IF vv_ctx_open = 'Y' THEN
DBMS_XMLGEN.CLOSECONTEXT (ctx);
END IF;
if xml_result is NULL then
gv_err_msg := substr(sqlerrm,1,2000);
DBMS_OUTPUT.put_line(gv_process_name||' failed '||gv_err_msg);
RAISE_APPLICATION_ERROR(-20906,gv_process_name||' failed'||gv_err_msg);
dbms_output.put_line('XML_EXPORT failed (xml results are NULL) executing '||p_sql);
raise_application_error(-20906,'XML_EXPORT (xml results are NULL) failed executing '||p_sql);
else
gv_err_msg := substr(sqlerrm,1,2000);
DBMS_OUTPUT.put_line(gv_process_name||' failed '||gv_err_msg);
dbms_output.put_line('XML_EXPORT failed (others exception) executing '||p_sql);
DBMS_OUTPUT.put_line('Export Directory is: '||p_dir||'/'||p_fileName);
raise_application_error(-20906,'XML_EXPORT (others exception) failed executing '||p_sql);
end if;
I have run the p_sql separately and have no issue. The p_sql is select * from <viewname> where date_id > '20100901' and date_id < '20100930'; (For security reasons I am choosing to leave off specific table/view/column names). I have run this procedure with other date ranges and it works for all the views we are using. I have examined all freeform data (data entered by the user without restriction) and none has a '>' in it during this time period.All the column names are valid XML names as this returned for other date ranges (as stated). The oracle version is 11G. This code is encapsulated in a function with the following signature:
PROCEDURE sql_to_xml(p_sql IN VARCHAR2, p_fileName IN VARCHAR2, p_dir IN VARCHAR2, p_xml_created OUT VARCHAR2)
To test, I have been calling the package with the sql as I indicated originally, a filename, the unix directory to write to, and a global out variable. Again, as I originally stated, this has been run successfully for other date ranges for the same table, but only fails in a specific range.
As for the issue with the line number it isn't a copy paste error at all. My total code for this package has 84 lines (including comments etc) (i removed function signature when quoting the code above). The line error message confused me as well, which was part of what I hoped someone else who had done XML exporting would know of. My assumption was that the line number was the line of the XML file, not the code. However because it fails it won't create the XML server onto the directory so I cannot view it and see easily where it breaks.
You are correct that line 52 makes 54 and 55 useless. I think that was a relic of a previous version and I forgot to remove 52. I did so and will see if the below error is raised.
I forgot to state that the DBMS_OUTPUT does show XML3 indicating that either XML_RESULT is null or that it breaks at line 19 (because DBMS_OUTPUT never prints XML4). Because you caught the issue with line 52-55, that may be why the null error never was being raised. I am rerunning to verify that xml_result is not null (ie: the null exception raised from the if on line 49 does not trigger). -
Error when inserting xml with xsi:noNamespaceSchemaLocation
Hello,
Hopefully this isn't a stupid question....
I am currently using Oracle 9.2.0.6.0 to try out XML.
I haven't been able to get our DBAs to set up XML DB in its entirety so I just have the basics, i.e. I have access to the xmltype object but none of the packages like DBMS_SCHEMA and DBMS_XDB. Therefore, I haven't been able to register any schemas in the database.
So what I'd like to know is why do I get an ORA-21700 error when I try to load an xml document which has the 'xsi:noNamespaceSchemaLocation' attribute'. If I take this out of the XML document, it loads.
From my initial reading, I got the impression that registering a schema in order to validate documents was an optional, although probably an ideal, step to take.
So another way of phrasing this subject might be: can one insert xml documents without the use of a schema?
The example code is shown below.
dbase> INSERT INTO MY_TABLE( id , message_type , status , rcvd_time, filename , xmlcol)
2 VALUES ( 1, 0 , 'RECEIVED', sysdate , 'tempfilename' ,
3 xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
4 xsi:noNamespaceSchemaLocation = "ExampleXML.xsd">
5 <tag1>
6 <tag2 attr1="something">Some data
7 </tag2>
8 </tag1>
9 </ExampleXML>')
10 );
xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
ERROR at line 3:
ORA-21700: object does not exist or is marked for delete
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
dbase> ed
Wrote file afiedt.buf
1 INSERT INTO MY_TABLE ( id , message_type , status , rcvd_time, filename , xmlcol)
2 VALUES ( 1, 0 , 'RECEIVED', sysdate , 'tempfilename' ,
3 xmltype('<ExampleXML xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
4 >
5 <tag1>
6 <tag2 attr1="something">Some data
7 </tag2>
8 </tag1>
9 </ExampleXML>')
10* )
dbase> /
1 row created.
The xmlcol column was created simply as an xmltype column.Basically using XMLType without XML DB is almost impossible in 9.2.x. Please have the DBA's install XML DB by running the script $ORACLE_HOME/rdbms/admin/catqm.sql. They can follow the installing XDB instuctions in the XML DB Developer's guide.
What is actually happening here is that the PARSER is hard wired to always check is a document that contains an noNamespaceSchemaLocation or schemaLocation tag is associated with an XML Schema that has been registered with Oracle XML DB. If is is, special action is takem, if it isn't then no special action is taken. Unfortunately for various arcane technical reasons if the the XDB repository is not present the check fails totally. Even if we fixed this bug, which has been marked not feasible to fix in the past, there are many other issues with the inbuilt XML technology having dependancies on the presence of the XML DB repository and XDB database user.
So the net/net is don't use XMLType or any XML related features in 9.2.x or later unless XML DB is installed. It is extremenly likely at this point in time that XML DB will become a mandatory component of the next release of the database. At that point you will no longer have an option. It will be automatically installed when a database is created or updated and there will be no way of un-installing it.
Maybe you are looking for
-
PO Ammendment and version number
Dear Experts, We have version management active at out client. When we save the PO after changes version number is generated and changes are saved against that version number. We want the report where we can see the Ammendment details in the PO , tha
-
The ABAP call stack was: SYSTEM-EXIT of program BBPGLOBAL
Hi We are using SRM 5.0. We are facing a strange problem. We are able to see the initial screen of SRM EBP in the browser. But once the user name and password are provided the system goes for a dump with the following error: The following error text
-
All invisibles are rectangles, and can't change color in prefs. Que pasa?
Can anyone help me figure out what's wrong? All invisibles are superscript rectangles and I can't change the invisibles color in Pages General Preferences. I bought, then installed, the serial number over the '09 trial today. This is the first time I
-
Developer Mode password lock screen bug
My dad and I just stumbled upon this bug that we wanted to let the community know about, should anyone run into a similar issue. Feel free to submit it as a ticket to the BB10/QNX development team as well. I put my dad's Z10 into Developer Mode to do
-
Incoterms at Forwarding Order Item Level in TM 8.0 ?
Hi Frens, Is there a provision to enter Incoterm at Forwarding Order Item Level in TM 8.0? I could not trace that keeping that in mind that TM 8.0 is for Shippers only. Thanks and Regards, Vikas Chhabra