Memory problem when store xml into XMLDB from CLOB source

Hi,
We have performed a stress test and looped the following
stored procedures for 1500 XML documents.
We found the UGA and PGA memory for this oracle process increased tremendously.
PGA memory
==========
6MB -> 2.9GB
UGA memory
==========
5MB -> 2.8GB
We have also experienced ORA-4030 error when more XML documents were inserted.
The PGA & UGA memory would not ever be released. We have checked that
the PGA & UGA memory for this process are still 2.9GB & 2.8GB the day after the stress test.
Stored Procedure
================
create or replace procedure clob_to_xml (indocid IN NUMBER) AS
clobdoc clob := EMPTY_CLOB();
myParser dbms_xmlparser.Parser;
indomdoc dbms_xmldom.domdocument;
xsltdomdoc dbms_xmldom.domdocument;
xsl dbms_xslprocessor.stylesheet;
outdomdocf dbms_xmldom.domdocumentfragment;
outnode dbms_xmldom.domnode;
outclobdoc clob := EMPTY_CLOB();
proc dbms_xslprocessor.processor;
xsltpath doc_types.canonical_doc_trim_xslt_name%type;
xmltabname doc_types.xmldb_table_name%type;
doc_type doc_types.doc_type%type;
doc_type_version doc_types.doc_type_version%type;
category doc_types.category%type;
sqlstring varchar2(500);
outxmldoc xmltype;
begin
-- clobdoc := :new.canonical_doc_content;
begin
select canonical_doc_content into clobdoc
from canonical_doc
where dttn_doc_id = indocid;
exception
when no_data_found then raise_application_error(-20001,'Doc ID ' || indocid || ' cannot be found');
when others then raise;
end;
begin
select dt.canonical_doc_trim_xslt_name, dt.xmldb_table_name, ddi.doc_type,ddi.doc_type_version, dt.category
into xsltpath, xmltabname, doc_type, doc_type_version, category
from
dttn_doc_info ddi,
doc_types dt
where ddi.dttn_doc_id = indocid
and ddi.doc_type = dt.doc_type
and ddi.doc_type_version = dt.doc_type_version;
exception
when no_data_found then raise_application_error(-20001,'Doc Type is not defined');
-- when others then raise;
end;
if (category <> 0 ) then
--only support business document at this moment
return;
end if;
if (xsltpath is null or xsltpath = '') then
raise_application_error (-20001,'XSLT is not defined on doc_type table - ' || doc_type);
end if;
if (xmltabname is null or xmltabname = '') then
raise_application_error (-20001,'XMLTable is not defined on doc_type table - ' || doc_type);
end if;
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseClob(myParser, clobdoc);
indomdoc := dbms_xmlparser.getDocument(myParser);
dbms_xmlparser.parseClob(myParser, xdbURIType(xsltpath).getClob());
xsltdomdoc := dbms_xmlparser.getDocument(myParser);
xsl := dbms_xslprocessor.newstylesheet(xsltdomdoc, '');
proc := dbms_xslprocessor.newProcessor;
--apply stylesheet to DOM document
outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, indomdoc);
outnode := dbms_xmldom.makenode(outdomdocf);
-- PL/SQL DOM API for XMLType can be used here
dbms_lob.createTemporary(outclobdoc, true);
dbms_xmldom.writeToClob(outnode, outclobdoc);
begin
sqlstring := 'INSERT INTO ' || xmltabname || ' values (:1, :2)';
EXECUTE IMMEDIATE sqlstring USING indocid, outxmldoc;
exception
when others then
begin
rollback;
raise_application_error (-20001,'Cannot insert into XMLDB , docid = ' || indocid);
end;
end;
dbms_lob.freeTemporary(outclobdoc);
DBMS_XMLDOM.freeDocument(indomdoc);
DBMS_XMLDOM.freeDocument(xsltdomdoc);
DBMS_XMLDOM.freeDocFrag(outdomdocf);
DBMS_XMLPARSER.freeParser(myParser);
DBMS_XSLPROCESSOR.freeProcessor(proc);
end;
Is there anything wrong with the Stored Procedure ?
My oracle version is 10.1.0.4.
Thanks & Regards,
NM

Mark,
I think you missed it. OP gave you the version.
My oracle version is 10.1.0.4.Rahul.

Similar Messages

  • Issue in Store XML into Schema generated tables and Validation XML against registered schema.

    Hello friends,
    I am facing some problem when store xml into generated tables from registered schema.
    This is my Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.abc.inf.in/test" targetNamespace="http://www.abc.inf.in/test" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:include schemaLocation="abc.xsd"/>
      <xs:element name="project" type="student">
      <xs:annotation>
      <xs:documentation> This is a Documentation</xs:documentation>
      </xs:annotation>
      </xs:element>
    </xs:schema>
    -- This is my xml document
    <project versao="2.00" xmlns="http://www.abc.inf.in/test">
      <test xmlns="http://www.abc.inf.in/test">
      <intest version="2.00" Id="testabc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  >
      <ide>
      <cUF>35</cUF>
      <cNF>59386422</cNF>
      <natOp>this is post</natOp>
      <indPag>1</indPag>
      <mod>55</mod>
      <serie>1</serie>
      </ide>............
    Not giving full because it's too long.
    1. I Successfully registered Schema into database
    2. Then i generate table from registered Schema
    2. In my java code i validated XML document against Schema and it's successfully validate.
    3. But when i stored this XML into this generated table it's give me error
       Like :
    INSERT INTO XMLTABLE
    VALUES
    (XMLTYPE(bfilename('MYDIR','testabc.xml'),NLS_CHARSET_ID('AL32UTF8')))
    Error report:
    SQL Error: ORA-31061: XDB error: XML event error
    ORA-19202: Error occurred in XML processing
    LSX-00333: literal "94032000" is not valid with respect to the pattern
    And i have to store this xml into this tables so what i have to do ?

    Thanks for your reply odie_63.
    I got this my error solution. My XML document is not well structured based on my registered XML Schema.
    Means In My XML Document there are some invalid value and that not match my schema pattern so it's gives this error
    SQL Error: ORA-31061: XDB error: XML event error
    ORA-19202: Error occurred in XML processing
    LSX-00333: literal "94032000" is not valid with respect to the pattern
    For Solution we have two ways
    1. I have changed this literal "94032000" value in my xml file then save it.
    2.
    - We have to delete this schema then
    - we have to change Schema pattern for particular element
    like :--
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="preserve"/>
      <xs:pattern value="[0-9]{3}"/>
    </xs:restriction>
    - then store xml into database it works..
    Thanks.

  • Got error message when store XML documents into XML DB repository, via WebD

    Hi experts,
    I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
    I got error message when store XML documents into XML DB repository, via WebDAV.
    I have successfully registered 5 related schemas and generated 1 table.
    I have inserted 40 .xml files into this auto generated table.
    using these data I created relational view successfully.
    but since I couldn't store XML documents into XML DB repository, via WebDAV
    when I query using below code:
    SELECT rv.res.getClobVal()
    FROM resource_view rv
    WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
    I got nothing.
    My ftp code is listed below:
    ftp> open localhost 2100
    Connected to I0025B368E2F9.
    220- C0025B368E2F9
    Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
    220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
    User (I0025B368E2F9:(none)): fda_xml
    331 pass required for FDA_XML
    Password:
    230 FDA_XML logged in
    ftp> cd /home/DEV/message
    250 CWD Command successful
    ftp> pwd
    257 "/home/DEV/message" is current directory.
    ftp> ls -la
    200 PORT Command successful
    150 ASCII Data Connection
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
    226 ASCII Transfer Complete
    ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
    250 SET_CHARSET Command Successful
    ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
    200 PORT Command successful
    150 ASCII Data Connection
    550- Error Response
    ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
    550 End Error Response
    ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
    I have tried all suggestion from another thread such as:
    alter system set events ='31150 trace name context forever, level 0x4000'
    SQL> alter system set shared_servers = 1;
    but failed.
    is there anyone can help?
    Thanks.
    Edited by: Cow on Mar 29, 2011 12:58 AM

    Hi experts,
    I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
    I got error message when store XML documents into XML DB repository, via WebDAV.
    I have successfully registered 5 related schemas and generated 1 table.
    I have inserted 40 .xml files into this auto generated table.
    using these data I created relational view successfully.
    but since I couldn't store XML documents into XML DB repository, via WebDAV
    when I query using below code:
    SELECT rv.res.getClobVal()
    FROM resource_view rv
    WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
    I got nothing.
    My ftp code is listed below:
    ftp> open localhost 2100
    Connected to I0025B368E2F9.
    220- C0025B368E2F9
    Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
    220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
    User (I0025B368E2F9:(none)): fda_xml
    331 pass required for FDA_XML
    Password:
    230 FDA_XML logged in
    ftp> cd /home/DEV/message
    250 CWD Command successful
    ftp> pwd
    257 "/home/DEV/message" is current directory.
    ftp> ls -la
    200 PORT Command successful
    150 ASCII Data Connection
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
    drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
    226 ASCII Transfer Complete
    ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
    250 SET_CHARSET Command Successful
    ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
    200 PORT Command successful
    150 ASCII Data Connection
    550- Error Response
    ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
    550 End Error Response
    ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
    I have tried all suggestion from another thread such as:
    alter system set events ='31150 trace name context forever, level 0x4000'
    SQL> alter system set shared_servers = 1;
    but failed.
    is there anyone can help?
    Thanks.
    Edited by: Cow on Mar 29, 2011 12:58 AM

  • When loading songs into iTunes, from my external hard drive. It seems to be copying the music onto my MacBook Air.

    When loading songs into iTunes, from my external hard drive. It seems to be copying the music onto my MacBook Air.
    How do i have iTunes only read the songs from my hard drive, rather then copying them?

    You may find these Links of Interest...
    Moving iTunes Media Folder
    http://support.apple.com/kb/HT1449
    http://macmost.com/moving-your-itunes-media-to-an-external-drive.html

  • Problem when we log into the Webclient with IC_AGENT business role

    Hello,
    We are facing a problem when we log into the interaction center ( with IC_AGENT business role) after the login screen ( we fill the correct user and password) then system starts the application, but a error appears.
    We dont knon why but it is happening only with IC_AGENT role, We have check the SICF and it is ok.
    Cannot display view ICCMP_HEADER/HeaderViewSet of UI Component ICCMP_HEADER
    An exception occurred during the internal HTTP communicationException Class CX_BSP_WD_HTTP_RESPONSE_ERROR
    Text:
    Additional Info: Business Server Page (BSP) Error
    Program: CL_BSP_WD_STREAM_LOADER=======CP
    Include: CL_BSP_WD_STREAM_LOADER=======CM002
    Source Text Row: 159
    Cannot display view CRM_UI_FRAME/WorkAreaViewSet of UI Component CRM_UI_FRAME
    An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BPIDENT.MainWindow in component CRM_UI_FRAME could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165
    Initialization of view CRM_UI_FRAME/WorkAreaViewSet of UI Component CRM_UI_FRAME failed
    An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BSPWD_BASICS/WorkAreaHostViewSet in component CRM_UI_FRAME could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165
    Cannot display view CRM_UI_FRAME/MainWindow of UI Component CRM_UI_FRAME
    An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View BSPWD_BASICS/WorkAreaHostViewSet in component CRM_UI_FRAME could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165
    Initialization of view CRM_UI_FRAME/MainWindow of UI Component CRM_UI_FRAME failed
    An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRM_UI_FRAME/WorkAreaViewSet in component CRM_UI_FRAME could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165
    Cannot display view Root.htm of UI Component CRM_UI_FRAME
    An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRM_UI_FRAME/WorkAreaViewSet in component CRM_UI_FRAME could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165
    An error occurred during initialization of the application
    An exception has occurredException Class CX_BSP_WD_RUNTIME_ERROR - View CRM_UI_FRAME/MainWindow in component CRM_UI_FRAME could not be bound
    Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
    Source Text Row: 165  
    Any help thanks in advance.

    hi luis,
    your error description reminds me of an inactive SICF, but you wrote, that you checked this before.
    on this forum is an excellent entry with lots of hints and tipp for the IC WebUI:
    Documentation for Interaction Center (IC) WebClient
    Documentation for Interaction Center (IC) WebClient
    maybe this will help.
    best wishes,
    hakan

  • HT4623 i had a problem when i update iphone 3gs from ios 5.1.1 to 6.1. How could i fix it?

    i had a problem when i update iphone 3gs from ios 5.1.1 to 6.1. How could i fix it?. I can active my phone?help me, please!

    Well we need to know what your problem is if you want someone to offer a solution for you

  • When importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed.

    when importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed. need to figure out why it randomly imports differently, or how to add different file tyoes to multi cam.

    here is one that is imported and stays .mp4. the specs are same as original file before import.
    here is one that has changed somehow during import. specs on original file are same as above, but once it is imported it changes to this in event folder, and others randomly keep the above specs.

  • TS1292 hello! I have a problem when I go into the clash of clans can not buy gems! I itunes gift card, and my account is more than $ 20. When I want to buy writes "Your purchare be not complete"

    hello! I have a problem when I go into the clash of clans can not buy gems! I itunes gift card, and my account is more than $ 20. When I want to buy writes "Your purchare be not complete"

    http://www.apple.com/support/itunes/contact/

  • I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    I have problem when transferring book (PDF/Epub) from Computer to iPad with the new iTune? Please Help....

    With iTunes 11 you can enable the left-hand sidebar via control-S on a PC, option-command-S on a Mac. If you are trying to get it to the iBooks app then with the sidebar enabled the process should be similar to how it was on previous versions of iTunes e.g. add it to your iTunes library via File > Add To Library, connect the iPad and select it on the left-hand sidebar, and then use the Books tab on the right-hand side to select and sync it to the iBooks app.

  • I have a problem, when I execute an mapping from Desing Center, its frezeen

    I have a problem, when I execute an mapping from Desing Center, its frezeen, this doesnt send error can you help me plis
    Ali

    If I would be you, I will check mapping activity from backend using (TOAD/SESSION-BROWSER) your map should be under JDBC THIN CLIENT. Also check if your target table is locked by running this query (select
    c.owner,
    c.object_name,
    c.object_type,
    b.sid,
    b.serial#,
    b.status,
    b.osuser,
    b.machine
    from
    v$locked_object a ,
    v$session b,
    dba_objects c
    where
    b.sid = a.session_id
    and
    a.object_id = c.object_id;).

  • When I copy and paste from one source material to another  within adobe reader, all the words are in one sentence. I have to take extra time to separate  the words using the space bar. Can this be fix?

    When I copy and paste from one source material to another  within adobe reader, all the words are in one sentence. I have to take extra time to separate  the words using the space bar. Can this be fix?

    Hi Bernie,
    Are you trying to copy and paste from a pdf to another pdf?
    Regards,
    Rave

  • Problem when inserting xml flow into jspx page

    When I drag and drop the xml into the jspx I should get a pop up menu where I would choose region (Im following a tutorial) but I get nothing. I drag and drop and It just opens it in the design editor.
    I would appreciate any help you guys could give

    OK, let cover the basics first:
    JDev version?
    I assume you are on 11.1.1.2.0 or 11.1.1.3.0:
    You created a new task flow (right click on the 'Web content'->new->'ADF Task FLow'
    the check box 'Createas Bounden Task flow was set and the check box for 'Create with Page Fragments' was set
    The filename was something like 'search-email-flow.xml'
    This should create a new bounden task flow with the name of search-email-flow (which creates a xml file with the same name).
    Then you put one view to the flow. After creating the page fragment (the file created should have the jsff file type) you saved all work.
    The you open up an existing jspx file and drag the new flow from the 'Page Flows' folder under 'Web content' onto the design view of the jspx file.
    after dropping the flow you should then see the 'Create' dialog. e careful, you can't drop the flow everywhere on the page. You should drop in into a panel group or some other container. If you drop it i.e. onto a table you see the effect you described: it's opening the flow!
    Timo

  • Performance problem when creating XML-file

    Hi,
    I want to create a XML-file with customer data from an internal table. This internal table has appr. 62000 entries. It takes hours to create the elements of the file.
    This is the coding I have used:
      loop at it_debtor.
        at first.
        Creating a ixml factory
          l_ixml = cl_ixml=>create( ).
        Creating the dom object model
          l_document = l_ixml->create_document( ).
        Fill root node
          l_element_argdeb  = l_document->create_simple_element(name = 'argDebtors'
                      parent = l_document ).
        endat.
      Create element 'debtor' as child of 'argdeb'
        l_element_debtor  = l_document->create_simple_element(
                     name = 'debtor'
                   parent = l_element_argdeb ).
      Create elements as child of 'debtor'
        l_value = it_debtor-admid.
        perform create_element using 'financialAdministrationId'.
        l_value = it_debtor-kunnr.
        perform create_element using 'financialDebtorId'.
        l_value = it_debtor-name1.
        21 child elements in total are created
      endloop.
      Creating a stream factory
      l_streamfactory = l_ixml->create_stream_factory( ).
      Connect internal XML table to stream factory
      l_ostream = l_streamfactory->create_ostream_itable( table =
      l_xml_table ).
      Rendering the document
      l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                          document = l_document ).
      l_rc = l_renderer->render( ).
      open dataset p_path for output in binary mode.
      if sy-subrc eq 0.
        loop at l_xml_table into rec.
          transfer rec to p_path.
        endloop.
        close dataset p_path.
        if sy-subrc eq 0.
          write:/ wa_lines, 'records have been processed'.
        endif.
      else.
        write:/ p_path, 'can not be opened.'.
      endif.
    form create_element using    p_text.
      check not l_value is initial.
      l_element_dummy  = l_document->create_simple_element(
                    name = p_text
                    value = l_value
                    parent = l_element_debtor ).
                                                                                    endform.                    " create_element
    Please can anyone tell me how to improve the performance.
    The method create_simple_element takes a long time.
    SAP release : 46C
    Regard,
    Christine

    Hi Christine!
    There might be several reasons - but you have to look at the living patient, not only the dead coding.
    You did not show any selects, loop at ... where or read table statements -> the usual slow parts are not included (or visible...).
    Of course the method-calls can contain slow statements, but you can also have problems because of size (when internal memory gets swaped to disc).
    Make a runtime analysis (SE30), have a look in SM50 (details!) for the size, maybe add an info-message for every 1000-customer (-> will be logged in job-log), so you will see if all 1000-packs are executed in same runtime.
    With this tools you have to search for the slow parts:
    - general out of memory problems, maybe because of to much buffering (visible by slower execution at the end)
    - slow methods / selects / other components by SM30 -> have a closer look
    Maybe a simple solution: make three portions with 20000 entries each and just copy the files into one, if necessary.
    Regards,
    Christian

  • Airplay mirroring problem:when i change slide mirroring from off to on ,my new i pad lost wi fi connection and apple tv lost wifi connection:ihave last software for both.Can u help me?thanks

    when i change slide mirroring from off to on ,my new i pad lost wi fi connection and apple tv lost wifi connection:ihave last software for both.Can u help me?thanks.
    when i use i pad with apple tv for see my photo,youtube and movies all ok.

    I suspect that the problem is in your router. Do NOT consider your router to be blameless if some other devices seem to work with it.
    Try restarting your WiFi router by removing power for 30 seconds. Don't just turn it Off. On many routers that doesn't really do anything but put the router into standby mode. If that does not help check for a firmware update for your router. If none exists which corrects the problem consider replacing the router.
    There is a chance that some services turned on in your router could be causing problems. Look for a setting called QoS (Quality of Service). If ON turn it OFF.
    If you need more help please give the make, model, and version of your WiFi router and how you have it configured.
    See also here: http://www.apple.com/support/ipad/wifi/

  • Problem when loading xml file using sql loader

    I am trying to load data into table test_xml (xmldata XMLType)
    i have an xml file and i want whole file to be loaded into a single column
    when i use the following control file and executed from command prompt as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct=true;:
    LOAD DATA
    INFILE *
    TRUNCATE INTO TABLE test_xml
    xmltype(xmldata)
    FIELDS
    ext_fname filler char(100),
    xmldata LOBFILE (ext_fname) TERMINATED BY EOF
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    the file is being loaded into table perfectly.
    unfortunatley i cant hardcode file name as file name will be changed dynamically.
    so i removed the block
    BEGIN DATA
    /u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml
    from control file and tried to execute by giving file path from command line as follows
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml direct=true;
    but strangely it's trying to load each line of xml file into table instead of whole file
    Please find the log of the program with error
    Loading of XML through SQL*Loader Starts
    SQL*Loader-502: unable to open data file '<?xml version="1.0"?>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Root>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>Forms</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<Type>PLL</Type>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '</ScriptFileType>' for field XMLDATA table TEST_XML
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    SQL*Loader-502: unable to open data file '<ScriptFileType>' for field XMLDATA table TEST_XML
    please help me how can i load full xml into single column using command line without hardcoding in control file
    Edited by: 907010 on Jan 10, 2012 2:24 AM

    but strangely it's trying to load each line of xml file into table instead of whole fileNothing strange, the data parameter specifies the file containing the data to load.
    If you use the XML filename here, the control file will try to interpret each line of the XML as being separate file paths.
    The traditional approach to this is to have the filename stored in another file, say filelist.txt and use, for example :
    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;

Maybe you are looking for