Loading Large XML files using plsql
I have a process where there is a need to load large xml files (i.e. easily over 500k or more) into Oracle via an interface. Preference would be to use plsql or some plsql based utility if possible. I am looking for any suggestions on the best method to accomplish this. Currently running on 9.2.0.6. Thanks in advance.
I have a process where there is a need to load large xml files (i.e. easily over 500k or more) into Oracle via an interface. Preference would be to use plsql or some plsql based utility if possible. I am looking for any suggestions on the best method to accomplish this. Currently running on 9.2.0.6. Thanks in advance.
Similar Messages
-
Reading large XML file using a file event generator and a JPD process
I am using a FileEventGenerator and a JPD Subscription process to read a large XML file. The large XML file basically contains repeated XML elements. My understanding is that the file subscription method reads the whole file in memory which causes lots of problem for huge file size like 1MB. Is there a way to read the file size-wise or is there a way to read chunks of data from a large size file..or any other alternative. I would like to process the file in a loop iteration by iteration.
Hitejain,
Here are a couple of pointers you could try. One is that the file event generator has a pass by reference (filename) functionality which you could use so that you could do the following inside of your process.
1) Read file name from the reference
2) Move the file to a processed directory (so it doesn't get picked up again. Note: I don't know how the embedded archive methods of the file event generator plays with pass by reference.
3) Open a stream to the file.
4) Use a SAX or SAX - DOM combined approach to parse your XML while managing the memory usage inside of your process
There is another possibility which might fit your needs and it is related to the RawData object that BEA provides. If I understand it correctly provides wrapping functionality around a stream object, but depending on your parsing methods might just postpone the problem.
Hope this helps
Chris Falling
Stormforge Software -
Help in loading the xml file using AS 2.0
Hi
I try to load the Xml file in As file but i need do all the
fetching details from the __LoadXmlFile file function
but it's working fine can any one help me for this issue
~~SkYou can't! Well, at least Flex cannot do this. All Flex can
do is send this data -- any data -- to the server and it's up to
you how you want to append this data to a file on the server.
You see, flex can't write to local files. If you looking for
client side file manipulation, take a look at Flex's desktop
brother call AIR!
ATTA -
ORA-04030: out of process memory Loading Large XML File
Experts: I am trying to load a 2.1G XML file into an Object Relational table . The xml schema document xsd is already registered successfully. It fails with the following error :
ORA-04030: out of process memory when trying to allocate 4032 bytes
(qmxtgCreateBuf,kghsseg: kolaslCreateCtx)
ORA-06512: at "SYS.XMLTYPE", line 296
ORA-06512: at line 1I am able to load the document successfully in SECUREFILE BINARY XML table but that would not work as I need to create relational view on top of this table which does not work with SECUREFILE BINARY XML storage.
Please suggest what may be the workaround here?
Thanks
KevinMDrake: I am trying to load like this:
insert into TEST_HUGE_XML
values(
xmltype(
bfilename('XMLDIR', 'huge_xmldoc.xml')
, nls_charset_id('AL32UTF8')
, 'huge_xmldoc.xsd'
db version: 11.2.0.3I saw an example of loading using createresource API here:
http://www.oracle-developer.net/display.php?id=416
SQL> DECLARE
2 v_return BOOLEAN;
3 BEGIN
4 v_return := DBMS_XDB.CREATERESOURCE(
5 abspath => '/public/demo/xml/db_objects.xml',
6 data => BFILENAME('XML_DIR', 'db_objects.xml')
7 );
8 COMMIT;
9 END;
10 /
PL/SQL procedure successfully completed.How do i load the huge xml document in my custom object relational table which was created like this:
CREATE TABLE HUGE_XML OF XMLTYPE
XMLTYPE STORE AS OBJECT RELATIONAL
XMLSCHEMA "huge_xmldoc.xsd"
ELEMENT "root_element"
Thanks
Edited by: Kevin_K on Feb 8, 2013 9:35 AM -
Handling large xml files using tree
hi,
I have an issue with a tree having xml data as the
dataprovider. The front end makes a http service call to a servlet
at a server to get the string representation of an xml file . The
string format is changed to xml in the flex front end and made to
display as a tree. Everything works fine when the xml data is small
but as xml data grows in size the handling of data into the tree is
very slow and the application does not respond sometimes..Can
anyone tell me how i could get this issues solved or is there a
better way to solve it. Or is there a way that the tree gets
displayed only when all the nodes or loaded properly and there are
no lags while user tries to navigate through it..
Thanks in advance...Hi,
Did you get a reply for this? If so,can you pl share it with me too?
i need to send a XML +also need to set 2 parameters over Http Post to a servlet...
Thanks,
-uday.
[email protected] -
Loading big XML files using JDBC gives errors
Hi,
I've created a XMLType table using binary storage, with the restriction that any document stored has a (any) schema:
CREATE TABLE XMLBIN OF XMLTYPE
XMLTYPE STORE AS BINARY XML
ALLOW ANYSCHEMA;Then I use JDBC to store a relatively large document using the following code:
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String connectionString = "jdbc:oracle:thin:@host:1521:sid";
File f = new File("c:\\temp\\big.xml");
Connection conn = DriverManager.getConnection(connectionString, "username", "password");
XMLType xml = XMLType.createXML(conn,new FileInputStream(f));
String statementText = "INSERT INTO xmlbin VALUES (?)";
OracleResultSet resultSet = null;
OracleCallableStatement statement = (OracleCallableStatement)conn.prepareCall(statementText);
statement.setObject(1,xml);
statement.execute();
statement.close();
conn.commit();
conn.close();Loading a file of 61Mb (real Mb, in non-IT Mb (where 1Mb seems to be 10^6) it is 63.9Mb) or less doesn't give any errors, loading a file bigger then that gives the following error:
java.sql.SQLRecoverableException: Io exception: Software caused connection abort: socket write error
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:458)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:960)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3856)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1373)
at jdbctest.Tester.main(Tester.java:60)A succesful insert of a 63Mb file takes about 23 seconds to execute. The 70Mb file fails already after a few seconds, so I'm ruling out any time outs.
I'm guessing there are some buffers that need to be enlarged, but don't have a clue which ones.
Anyone any idea what might cause the problem and how to resolve?
My server runs Oracle 11g Win32. The client is Windows running Sun Java 1.6, using ojdbc6.jar and Oracle 11g Client installed.
Cheers,
HaraldHi Mark,
The trace log in the OEM shows me:
Errors in file d:\oracle11g\app\helium\diag\rdbms\helium\helium\trace\helium_ora_6948.trc (incident=7510): ORA-07445: exception encountered: core dump [__intel_new_memcpy()+613] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x6104B045] [UNABLE_TO_WRITE] [] If needed I can post the full contents (if I find out how, am still a novice :-))
Cheers,
Harald -
Error while loading loading a xml file using a batchxmlloader.java file
Hi All,
I am trying to to load the data of an xml to the order management and configurations tables of 11i. While doing this i am using a java program batchxmlloader.java while executing it its giving me the errors as shown below. can anyone help me to remove these errors?
java.lang.NoClassDefFoundError: javax/jms/JMSException
at oracle.apps.fnd.wf.bes.ConnectionManager$1.run(ConnectionManager.jav)
at oracle.apps.fnd.wf.bes.Utilities$1.run(Utilities.java:558)
at java.lang.Thread.nextThreadNum(Unknown Source)
Failed to establish Java Business Event System control connection: databaseId =n
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnv)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:68)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.Toolkit$2.run(Toolkit.java:512)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1176)
at java.awt.EventQueue.invokeLater(EventQueue.java:511)
at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091)
at javax.swing.Timer.post(Timer.java:342)
at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java, Compiled C)
at javax.swing.TimerQueue.run(TimerQueue.java, Compiled Code)
at java.lang.Thread.nextThreadNum(Unknown Source)
Exception in thread "main" java.lang.UnsatisfiedLinkError: XstartUnsatisfiedRels
at oracle.apps.cz.logic.Engine.modifyBOM(Engine.java, Compiled Code)
at oracle.apps.cz.logic.LogicConfig.assertDefaults(LogicConfig.java, Co)
at oracle.apps.cz.cio.Configuration$UnsatisfiedRulesIterator.<init>(Con)
at oracle.apps.cz.cio.Configuration.addCompInstancesInOrder(Configurati)
at oracle.apps.cz.cio.InstanceBase.hasUnsatisfiedRules(InstanceBase.jav)
at oracle.apps.cz.cio.BomInstance.getSelectableChildren(BomInstance.jav)
at oracle.apps.cz.cio.Configuration.saveInternal(Configuration.java, Co)
at oracle.apps.cz.cio.Configuration.createRuntimeTree(Configuration.jav)
at oracle.apps.cz.cio.xml.CzXmlConfiguration.<init>(CzXmlConfiguration.)
at oracle.apps.cz.cio.xml.CzXmlLoaderEventListener.processDocumentEleme)
at oracle.apps.util.dataload.xml.BatchXmlLoaderHandler.endElement(Batch)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingP)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidat)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidating)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java, Compiled Code)
at oracle.apps.util.dataload.xml.BatchXmlLoader.log(BatchXmlLoader.java)
at oracle.apps.util.dataload.xml.BatchXmlLoader.<init>(BatchXmlLoader.j)
at oracle.apps.util.dataload.xml.BatchXmlLoader.initialise(BatchXmlLoad)
Thanks in well advance.
Regards,
Sarang.A.MehtaI feel th entry in the property file is wrong....
it should be name=abc.xml dont enclise in quotes... -
Hi Gurus,
I am new to owb and as per requirement we need to load xml files into oracle table using owb.
below is the xml file:
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>
please help me in loading above xml file using owb.You can leverage the XML SQL functions to extract from XML using the database, see the blog post below;
https://blogs.oracle.com/warehousebuilder/entry/leveraging_xdb
For example to extract information from your XML document the following SQL can be generated from OWB;
select extractValue(value(s), '/book/author'),
extractValue(value(s), '/book/year'),
extractValue(value(s), '/book/price') from
( select XMLType('<bookstore>
+<book category="COOKING">+
+<title lang="en">Everyday Italian</title>+
+<author>Giada De Laurentiis</author>+
+<year>2005</year>+
+<price>30.00</price>+
+</book>+
+<book category="CHILDREN">+
+<title lang="en">Harry Potter</title>+
+<author>J K. Rowling</author>+
+<year>2005</year>+
+<price>29.99</price>+
+</book>+
+<book category="WEB">+
+<title lang="en">Learning XML</title>+
+<author>Erik T. Ray</author>+
+<year>2003</year>+
+<price>39.95</price>+
+</book>+
+</bookstore>') adoc from dual+) r,
table(XMLSequence(extract(r.adoc, '/bookstore/book'))) s;
Cheers
David -
Problem loading XML-file using SQL*Loader
Hello,
I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
Loader control-file:
LOAD DATA
INFILE *
INTO TABLE BATCH_TABLE TRUNCATE
FIELDS TERMINATED BY ','
FILENAME char(255),
XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
BEGINDATA
data.xml
The BATCH_TABLE is created as:
CREATE TABLE BATCH_TABLE (
FILENAME VARCHAR2 (50),
XML_DATA SYS.XMLTYPE ) ;
And the data.xml contains the following lines:
<?xml version="2.0" encoding="UTF-8"?>
<!DOCTYPE databatch SYSTEM "databatch.dtd">
<batch>
<record>
<data>
<type>10</type>
</data>
</record>
<record>
<data>
<type>20</type>
</data>
</record>
</batch>
However, the sqlldr gives me an error:
Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
ORA-21700: object does not exist or is marked for delete
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
If I remove the first two lines
"<?xml version="2.0" encoding="UTF-8"?>"
and
"<!DOCTYPE databatch SYSTEM "databatch.dtd">"
from data.xml everything works, and the contentents of data.xml are loaded into the table.
Any idea what I'm missing here? Likely the problem is with special characters.
Thanks in advance,I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?
-
How to load a XML file into the database
Hi,
I've always only loaded data into the database by using SQL-Loader and the data format was Excel or ASCII
Now I have to load a XML.
How can I do?
The company where I work has Oracle vers. 8i (don't laugh, please)
Thanks in advance!Hi,
Tough job especially if the XML data is complex. The have been some similar question in the forum:
Using SQL Loader to load an XML File -- use 1 field's data for many records
SQL Loader to upload XML file
Hope they help.
Regards,
Sujoy -
Getting error while running the XML file using XML Publisher Desktop
Hi all,
We have successfully loaded the XML file using XML Publisher Desktop. But when we preview the same using PDF format we are getting the following error.
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\smanmadh\Desktop\ProductCompensationDT.xml
FOProcessor setLocale: en-us
java.lang.NullPointerException
at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)
at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)
at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)
at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)
at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)
at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)
at RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Thanks in Advance.
Sudeep.This is BI related. You will get a quicker answer from the BI Publisher forum
BI Publisher -
Error while running the XML file using XML Publisher Desktop
Hi All,
We have successfully loaded the XML file using XML Publisher Desktop.But when we try to preview it using the PDF format we are getting the following error.
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\smanmadh\Desktop\ProductCompensationDT.xml
FOProcessor setLocale: en-us
java.lang.NullPointerException
at oracle.apps.xdo.template.fo.area.PageNumber.formatString(PageNumber.java:104)
at oracle.apps.xdo.template.fo.IDManager.registerId(IDManager.java:44)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageJoinSeq(AreaTree.java:1106)
at oracle.apps.xdo.template.fo.area.AreaTree.incrementJoinSequenceIndex(AreaTree.java:219)
at oracle.apps.xdo.template.fo.area.AreaTree.registerLastPageDocument(AreaTree.java:1089)
at oracle.apps.xdo.template.fo.area.AreaTree.forceOutput(AreaTree.java:471)
at oracle.apps.xdo.template.fo.elements.FORoot.end(FORoot.java:58)
at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:386)
at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:279)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1022)
at RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Any pointers will be of great help.
Thanks in Advance
Sudeep.2¢
I had a similar error which when I searched, came up with this thread.
My issue was resolved after I discovered that my RTF template was not really RTF. It was sill in MS Word DOC format. This was discovered by reviewing two templates in NOTEPAD. The MS-DOC files have a lot of "special" characters in them. My RTF was not really RTF.
After doing a SAVE AS - RTF format, then the preview worked as expected.
Just Sharing...
--Tim -
Changing /updating an xml file using JAXP(DOM)
Hello,
i am fairly new to xml and am using it in my degree project.I am able to retrieve and read data from a fairly large xml file using JAXP(DOM) and/or XMLBeans.I am having difficulties in updating the xml document. Any updation i believe is ito be saved into a new xml document,but dont know how to proceed with it. Any help would be appreciated.
Following is a snippet of my code using JAXP. Here i am able to retrieve data from the source file.
File document=new File("C:\\tester.xml");
try {
DocumentBuilderFactory factory
= DocumentBuilderFactory.newInstance();
DocumentBuilder parserr = factory.newDocumentBuilder();
Document doc=parserr.parse(document);
System.out.println(document + " is well-formed.");
NodeList n2=doc.getElementsByTagName("Top");
NodeList n3=doc.getElementsByTagName("Base");
int x=n2.getLength();
System.out.println("There are " x "players");
for(int g=0;g<=x;g++)
System.out.println("Top is" + n2.item(g).getFirstChild().getNodeValue()+" Base is" +n3.item(g).getFirstChild().getNodeValue());
--------------------------------------------------------------------------------Following is my updation code to the dom tree:
NodeList list=doc.getElementsByTagName("Information");
for(int i=0; i<list.getLength();i++){
Node thissampnode=list.item(i);
Node thisNameNode=thissampnode.getFirstChild();
if(thisNameNode==null) continue;
if(thisNameNode.getFirstChild()==null)continue;
// if(thisNameNode.getFirstChild() !(instanceof org.w3c.dom.Text) continue;
String data=thisNameNode.getFirstChild().getNodeValue();
if (! data.equals("0.59")) continue;
Node newsampNode = doc.createElement("Samp");
Node newsampTopNode = doc.createElement("Top");
Text tnNode = doc.createTextNode("0.50");
newsampTopNode.appendChild(tnNode);
Element newsampRef = doc.createElement("Ref");
Text tsr = doc.createTextNode("0");
newsampRef.appendChild(tsr);
Element newsampType = doc.createElement("Type");
Text tt = doc.createTextNode("z");
newsampType.appendChild(tt);
Element newsampbase = doc.createElement("Base");
Text sb = doc.createTextNode("0.55");
newsampbase.appendChild(sb);
newsampNode.appendChild(newsampTopNode);
newsampNode.appendChild(newsampRef);
newsampNode.appendChild(newsampType);
newsampNode.appendChild(newsampbase);
rootNode.insertBefore(newsampNode, thissampnode);
Here i dont see any changes to the original xml source file. -
Actually i am using an off-line form to load very large XML file and using firefox to load that form. But, its taking more time to load and some time the browser crashed. through DOM parsing this XML file to my form. Is there any option to increase DOM handler size in firefox
Thank you for your suggestion. I have a question,
though. If I use a relational database and try to
access it for EACH and EVERY click the user makes,
wouldn't that take much time to populate the page with
data?
Isn't XML store more efficient here? Please reply me.You have the choice of reading a small number of records (10 children per element?) from a database, or parsing multiple megabytes. Reading 10 records from a database should take maybe 100 milliseconds (1/10 of a second). I have written a web application that reads several hundred records and returns them with acceptable response time, and I am no expert. To parse an XML file of many megabytes... you have already tried this, so you know how long it takes, right? If you haven't tried it then you should. It's possible to waste a lot of time considering alternatives -- the term is "analysis paralysis". Speculating on how fast something might be doesn't get you very far. -
Loading XML file using sql*loader (10g)
Hi Everyone....
I have a major problem. I have a 10g database and I need to use sql loader to load a large XML file into the database. This file contains records for many, many customers. This will be done several times and the number of records will vary. I want to use sql loader and load to a staging table, BUT SPLIT THE RECORDS OUT and add a sequence. I am having 2 problems.
In the 10g documentation, when you want to split the records you use the BEGINDATA clause and indicate something (like a 0) for each instance of a record. Well my first file has 3,722 records in it. How do I know the number of records in each XML file?
The second problem is that because this is XML, I thought that I could use ENCLOSED BY. But the start tag has an attribute /counter in it, sql*loader doesnt recognize the starting tag. (i.e.: start tag is: </CustomerRec number=1>
end tag is: </CustomerRec> )
So, I used TERMINATED BY '</CustomerRec>'. This will split out the records, but it will NOT include the ending tag of </CustomerRec> and when I use extract, I receive an XML parsing error.
I have tried to get the ending tag using CONTINUEIF and SKIP. But those options are for "records" and not lines.
Does anyone have any ideas for the 2 problems above. I am at my wits end and I need to finish this ASAP. Any help would be appreciated.
Thank you!Sorry.... here is an example of what my control file looks like. At the end, I have 92 "0", but remember, I have 3722 records in this first file.
LOAD DATA (SKIP 1)
INFILE *
INTO TABLE RETURN_DATA_STG
TRUNCATE
XMLType(xmldata)
FIELDS
(fill FILLER CHAR(1),
loadseq SEQUENCE(MAX,1),
xmldata LOBFILE (CONSTANT F001AB.XML)
TERMINATED BY '</ExtractObject>'
------ ":xmldata||'</ExtractObject>'"
BEGINDATA
0
0
0
0
0
0
Maybe you are looking for
-
Calling a report from a report in reports 10g !
Which one is the most easist way of calling a report from a report in Reports 10 g ? Capri !
-
Hi, I recently changed my username for my iTunes/iCloud account. Can anyone tell me how i change the username on my iCloud iPad? When I go onto setting to change it it keeps the username grey so I can't even select it?
-
I do I make a mirror image from my Hallmark program for an iron on transfer?
I am trying to make iron on labels to put in articles I make. I have created what I want to print fr om my Hallmark program. How can I get the mirror image needed to accomplish this?
-
Hi All, is there a way to change language in UI (web browser level) of WEB Crm? (even thorugh an SDK)? Best Regards, Vangelis Kanellopoulos Edited by: Vangelis Kanellopoulos on Oct 5, 2009 12:55 PM
-
Need Help With An Application Which Produces Live Images Within Tilelists
At the moment I have an application which is meant to produce live thumbnail images of websites. Currently how it does this is a html component (myhtml) loads websites via it's location property changing from website to website and upon fully loading