Import an XML level 3 in 3 separate tables

Hello

I read some interesting discussions of Odie where he had several great solutions for this. However, I could not solve those in a solution of work for my challenge, so I was wondering if some could give me another push in the back. I look like a huge post, but I'm not able to attach files so it is all copied in corn so I guess that very easy to understand what I'm trying to achieve.

Based on the example XML file that I expect to get:
7 records in the INVOICE table
8 records in table USR
14 records in the PRODUCTS table.

But I do not know how... I am very happy if someone could help me.

I have a XML file with 3 levels (invoice, user, product) and I want to store these 3 separate tables in and of course create references between these entities.
I add 3 things in this post:
DB version:
Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE Production 11.1.0.7.0
AMT for 64-bit Windows: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production

Tables in which I would like to store the information: (if changes are needed is OK)
CREATE THE TABLE GOA_DOCS. INVOICE
(
SUBID NUMBER,
STYPE VARCHAR2 (20 BYTE),
VARCHAR2 (20 BYTE) GENDER,
FNAME VARCHAR2 (50 BYTE),
MNAME VARCHAR2 (50 BYTE),
LNAME VARCHAR2 (50 BYTE),
STREET VARCHAR2 (75 BYTE),
NUMBER OF HOUSENO,
HOUSENOADD VARCHAR2 (20 BYTE),
ZIP VARCHAR2 (20 BYTE),
CITY VARCHAR2 (50 BYTE),
COUNTRY VARCHAR2 (50 BYTE)
PHONE VARCHAR2 (20 BYTE),
VARCHAR2 (20 BYTE) MOBILE,
E-MAIL VARCHAR2 (20 BYTE),
ACCOUNT BANK VARCHAR2 (20 BYTE),
BANKACCOWNER VARCHAR2 (50 BYTE),
PAYMENTTYPE NUMBER,
NUMBER OF PAYMENTINTERVAL
FDATE VARCHAR2 (20 BYTE),
NUMBER OF CURRENTPERIOD,
YEAR SCHOOL VARCHAR2 (20 BYTE).
VARCHAR2 (75 BYTE) PRODUCTS,
USERS VARCHAR2 (750 BYTE)
)
TABLESPACE DOCUMENTEN
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOLOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;

CREATE THE TABLE GOA_DOCS. USR
(
THE USER ID NUMBER,
TYPE VARCHAR2 (20 BYTE),
FNAME VARCHAR2 (50 BYTE),
MNAME VARCHAR2 (50 BYTE),
LNAME VARCHAR2 (50 BYTE),
NUMBER OF SAPID,
SCHOOL VARCHAR2 (50 BYTE),
VARCHAR2 (20 BYTE) EDATE,
VARCHAR2 (750 BYTE) PRODUCTS,
SUBID NUMBER
)
TABLESPACE DOCUMENTEN
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOLOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;

CREATE THE TABLE GOA_DOCS. OUR
(
PRODID NUMBER,
NAME VARCHAR2 (50 BYTE),
NUMBER OF THE MOMENT,
NUMBER OF AMOUNT,
NUMBER OF UNIT PRICE,
TOTALPRICE NUMBER,
INVOICETYPE VARCHAR2 (20 BYTE),
VAT VARCHAR2 (20 BYTE),
THE USER ID NUMBER
)
TABLESPACE DOCUMENTEN
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE)
64K INITIALS
ACCORDING TO 1 M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
DEFAULT USER_TABLES
)
NOLOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;

Example XML file: (I removed some TAGS with sensitive information)
<? XML version = "1.0" encoding = "ISO-8859-1? >
< INVOICE >
< INVOICE >
< SUBID > 90011302 < / SUBID >
Parent < STYPE > < / STYPE >
Female < SEX > < / TYPE >
B < FNAME > < / FNAME >
< MNAME / >
Baart < LNAME > < / LNAME >
< PAYMENTTYPE > 2 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 2 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80018011 < / USERID >
Student of < TYPE > < / TYPE >
Lidewij < FNAME > < / FNAME >
< MNAME / >
Baart < LNAME > < / LNAME >
< SAPID > 80001960 < / SAPID >
Boldinghschool M.M. < SCHOOL > < / SCHOOL >
< EDATE / >
< PRODUCTS >
< PRODUCT >
< PRODID > 93 < / PRODID >
< NAME > Halfvolle chocolademelk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 41 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 1558 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< PRODUCT >
< PRODID > 703307 < / PRODID >
< NAME > Halfvolle melk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 41 < / AMOUNT >
< UNITPRICE > 36 < / UNIT price >
< > 1476 TOTALPRICE < / TOTALPRICE >
debit < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< INVOICE >
< SUBID > 90011326 < / SUBID >
Parent < STYPE > < / STYPE >
Female < SEX > < / TYPE >
R < FNAME > < / FNAME >
< MNAME / >
< LNAME > JC-lalmahomed < / LNAME >
< PAYMENTTYPE > 2 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 2 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80018092 < / USERID >
Student of < TYPE > < / TYPE >
Seyyed < FNAME > < / FNAME >
< MNAME / >
JC < LNAME > < / LNAME >
< SAPID > 80002007 < / SAPID >
Parkiet < SCHOOL > < / SCHOOL >
< EDATE / >
< PRODUCTS >
< PRODUCT >
< PRODID > 702632 < / PRODID >
< NAME > Campina glass rolled vruchten 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 51 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 1938 TOTALPRICE < / TOTALPRICE >
debit < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< PRODUCT >
< PRODID > 703307 < / PRODID >
< NAME > Halfvolle melk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 51 < / AMOUNT >
< UNITPRICE > 36 < / UNIT price >
< > 1836 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< INVOICE >
< SUBID > 90011548 < / SUBID >
Parent < STYPE > < / STYPE >
Female < SEX > < / TYPE >
< FNAME > A < / FNAME >
Van < MNAME > < / MNAME >
Loo < LNAME > < / LNAME >
< PAYMENTTYPE > 2 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 2 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80018607 < / USERID >
Student of < TYPE > < / TYPE >
Ricardo < FNAME > < / FNAME >
< MNAME / >
Ramaker < LNAME > < / LNAME >
< SAPID > 80000863 < / SAPID >
SCHOOL <>Achtbaan < / SCHOOL >
< EDATE / >
< PRODUCTS >
< PRODUCT >
< PRODID > 703307 < / PRODID >
< NAME > Halfvolle melk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 30 < / AMOUNT >
< UNITPRICE > 36 < / UNIT price >
< > 1080 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< INVOICE >
< SUBID > 90011555 < / SUBID >
Parent < STYPE > < / STYPE >
Female < SEX > < / TYPE >
J. < FNAME > < / FNAME >
< MNAME / >
Dijkman < LNAME > < / LNAME >
< PAYMENTTYPE > 1 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 2 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80018618 < / USERID >
Student of < TYPE > < / TYPE >
Tess < FNAME > < / FNAME >
< MNAME / >
Dijkman < LNAME > < / LNAME >
< SAPID > 80009575 < / SAPID >
Burcht < SCHOOL > < / SCHOOL >
< EDATE / >
< PRODUCTS >
< PRODUCT >
< PRODID > 702633 < / PRODID >
< NAME > Optimel drink 200 ml framboos < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 42 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 1596 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< INVOICE >
< SUBID > 90011597 < / SUBID >
Parent < STYPE > < / STYPE >
Female < SEX > < / TYPE >
E.J. < FNAME > < / FNAME >
< MNAME / >
Sebok < LNAME > < / LNAME >
< PAYMENTTYPE > 2 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 2 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 2 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80018711 < / USERID >
Student of < TYPE > < / TYPE >
Wort < FNAME > < / FNAME >
< MNAME / >
Sebok < LNAME > < / LNAME >
< SAPID > 80006071 < / SAPID >
Basisschool Montini < SCHOOL > < / SCHOOL >
< EDATE / >
< PRODUCTS >
< PRODUCT >
< PRODID > 702633 < / PRODID >
< NAME > Optimel drink 200 ml framboos < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 39 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 1482 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< PRODUCT >
< PRODID > 703307 < / PRODID >
< NAME > Halfvolle melk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 52 < / AMOUNT >
< UNITPRICE > 36 < / UNIT price >
< > 1872 TOTALPRICE < / TOTALPRICE >
debit < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< INVOICE >
< SUBID > 90011631 < / SUBID >
Parent < STYPE > < / STYPE >
Female < SEX > < / TYPE >
< FNAME > I < / FNAME >
< MNAME / >
Vliese < LNAME > < / LNAME >
< PAYMENTTYPE > 1 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 1 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 9 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80034981 < / USERID >
Student of < TYPE > < / TYPE >
Lyandra < FNAME > < / FNAME >
< MNAME / >
Vliese < LNAME > < / LNAME >
< SAPID > 80002299 < / SAPID >
Dominicus < SCHOOL > school < / SCHOOL >
2011-11-30 < EDATE > < / EDATE >
< PRODUCTS >
< PRODUCT >
< PRODID > 702633 < / PRODID >
< NAME > Optimel drink 200 ml framboos < / NAME >
< TIME > 1 < / TIME >
< AMOUNT > 123 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 4674 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< PRODUCT >
< PRODID > 702633 < / PRODID >
< NAME > Optimel drink 200 ml framboos < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 123 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 4674 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< USER >
< username > 80053302 < / USERID >
Student of < TYPE > < / TYPE >
Tany < FNAME > < / FNAME >
< MNAME / >
Vliese < LNAME > < / LNAME >
< SAPID > 80002976 < / SAPID >
SCHOOL <>BS Joh. of Graaff < / SCHOOL >
2011-11-30 < EDATE > < / EDATE >
< PRODUCTS >
< PRODUCT >
< PRODID > 702633 < / PRODID >
< NAME > Optimel drink 200 ml framboos < / NAME >
< TIME > 1 < / TIME >
< AMOUNT > 127 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 4826 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< PRODUCT >
< PRODID > 93 < / PRODID >
< NAME > Halfvolle chocolademelk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 101 < / AMOUNT >
< UNITPRICE > 38 < / UNIT price >
< > 3838 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< INVOICE >
< SUBID > 90014733 < / SUBID >
Parent < STYPE > < / STYPE >
< SEX > unknown < / TYPE >
M.J. < FNAME > < / FNAME >
< MNAME / >
Artiel < LNAME > < / LNAME >
< PAYMENTTYPE > 2 < / PAYMENTTYPE >
< PAYMENTINTERVAL > 1 < / PAYMENTINTERVAL >
< FDATE > 2011 - 12 - 08 < / FDATE >
< CURRENTPERIOD > 9 < / CURRENTPERIOD >
< year SCHOOL > 2011-2012 < / year SCHOOL >
< PRODUCTS / >
< USER >
< USER >
< username > 80024315 < / USERID >
Student of < TYPE > < / TYPE >
Rey < FNAME > < / FNAME >
< MNAME / >
Artiel < LNAME > < / LNAME >
< SAPID > 80002292 < / SAPID >
SCHOOL <>Blijberg < / SCHOOL >
< EDATE / >
< PRODUCTS >
< PRODUCT >
< PRODID > 703307 < / PRODID >
< NAME > Halfvolle melk 200 ml < / NAME >
< TIME > 1 < / TIME >
< AMOUNT > 102 < / AMOUNT >
< UNITPRICE > 36 < / UNIT price >
< > 3672 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< PRODUCT >
< PRODID > 703307 < / PRODID >
< NAME > Halfvolle melk 200 ml < / NAME >
< TIME > 2 < / TIME >
< AMOUNT > 80 < / AMOUNT >
< UNITPRICE > 36 < / UNIT price >
< > 2880 TOTALPRICE < / TOTALPRICE >
credit of < INVOICETYPE > < / INVOICETYPE >
Laag < VAT > < / VAT >
< / PRODUCT >
< / PRODUCT >
< / USER >
< / USERS >
< / INVOICE >
< / INVOICES >

However, this directory exists on my local machine and it will perhaps exist on DB server?

Indeed, a directory object Oracle should point to a location on the DB server, or elsewhere on the network, the server can reach.

Tags: Oracle Development

Similar Questions

  • How to import bookmarks multi-level IE 8 FireFox 17 if IE 8 is broken, cannot re - install and will not work?

    IE 8 is still installed, but will not work. I can not install any version of IE - I tried. I can import only first level bookmarks. Solutions in the forum assume IE 8 work.

    If you have problems with importing IE bookmarks in Firefox, then export favorites in Internet Explorer to a HTML file and import this file in the Firefox Bookmarks Manager.

    If you don't have the menu bar in Internet Explorer, and then right-click on the toolbar above to activate the menu bar.

    • Export Favorites in Internet Explorer to a file (bookmarks.html) HTML:
      File > import and export
    • Import HTML file in Firefox:
      Bookmarks > show all bookmarks > import and backup > import bookmarks HTML: file

    See "Import from another browser" and "import from file":

  • import fails while trying to import userdefinedfields.xml

    All,

    I'm trying to import userdefinedfield.xml from dev to QA environment and import fails with the error message below.

    [11:36:44:892 EAST of xx/07/13] 00000051 SystemOut O ERROR, 15 July 2013 11:36:44, 892, [XELLERATE. DATABASE], CHANGE ALTER TABLE USR

    java.sql.SQLException: ORA-00904: invalid identifier

    [15/07/13 11:36:44:907 EST] 00000051 SystemOut O DEBUG, 15 July 2013 11:36:44, 907, [XELLERATE. SERVER], class/method: tcDataBase/substitute is entered.

    [11:36:44:907 EAST of xx/07/13] 00000051 SystemOut O DEBUG, 15 July 2013 11:36:44, 907, [XELLERATE. SERVER], class/method: tcDataObj:handleErr - data: poError.isAction - value: F

    [11:36:44:907 EAST of xx/07/13] 00000051 SystemOut O DEBUG, 15 July 2013 11:36:44, 907, [XELLERATE. SERVER], class/method: tcDataObj:handleErr - data: poError.isCode - value: SDK. MODCOL

    [11:36:44:907 EAST of xx/07/13] 00000051 SystemOut O DEBUG, 15 July 2013 11:36:44, 907, [XELLERATE. SERVER], class/method: tcDataObj:handleErr - data: poError.isDescription - value: error editing a column.

    [11:36:44:907 EAST of xx/07/13] 00000051 SystemOut O DEBUG, 15 July 2013 11:36:44, 907, [XELLERATE. SERVER], class/method: tcDataObj:handleErr - data: poError.isRemedy - value: check for the valid column length variation

    [11:36:44:907 EAST of xx/07/13] 00000051 SystemOut O DEBUG, 15 July 2013 11:36:44, 907, [XELLERATE. SERVER], class/method: tcDataObj:handleErr - data: poError.isDetail - Value: com.thortech.xl.orb.dataaccess.tcDataAccessException: DB_WRITE_FAILEDDetail: SQL: ALTER TABLE USR CHANGE Description: ORA-00904: invalid identifier

    SQL State: 42000Vendor Code: 904Additional Debug Info: com.thortech.xl.orb.dataaccess.tcDataAccessException

    [11:36:44:923 EAST of xx/07/13] 00000051 SystemOut O ERROR, 15 July 2013 11:36:44, 923, [XELLERATE. DDM. [IMPORT], error, editing a column.

    [11:36:44:923 EAST of xx/07/13] 00000051 SystemOut O ERROR, 15 July 2013 11:36:44, 923, [XELLERATE. DDM. IMPORT] Exception when importing

    com.thortech.xl.ddm.exception.DDMException: cannot save the DataObject for SDC

    at com.thortech.xl.ddm.instance.TableInstance.finishDataObject (unknown Source)

    We are not able to reproduce the problem in other development/test environments.

    Please suggest if you have some idea on what may be the problem.

    Thank you

    Olivier

    can disable you the caching of metadata, restart the server of the IOM, and then try importing the xml file.

  • Import large XML file to Table

    I have a large (819 MB) XML file I'm trying to import into a table format:
    < ROW_SET >
    < ROW >
    value of < column_name > < / nom_de_colonne >
    < / ROW >
    ...
    < ROW >
    value of < column_name > < / nom_de_colonne >
    < / ROW >
    < / ROW_SET >

    I tried to import with xmlsequence (...). Extract (...) and ran into the number of nodes exceeds maximum error.

    I tried to import with XMLTable (... from XMLTYPE (bfilename('DIR_OBJ','large_819mb_file.xml'), nls_charset_id('UTF8'))) and I gave up after he had run for 15 + hours (COLLECTION ITERATOR PICKLER FETCH number).

    I tried to import them with:

    insCtx: = DBMS_XMLStore.newContext ('schemaname.tablename');
    DBMS_XMLStore.clearUpdateColumnList (insCtx);
    DBMS_XMLStore.setUpdateColumn (insCtx, 'column1name');
    ...
    DBMS_XMLStore.setUpdateColumn (insCtx, 'columnNname');
    LINES: = DBMS_XMLStore.insertXML (insCtx, XMLTYPE (bfilename('DIR_OBJ','large_819mb_file.xml'), nls_charset_id ('UTF8')));

    and ran in ORA-04030: lack of memory of process when trying to allocate 1032 bytes (subheap qmxlu, qmemNextBuf:alloc).


    All I have to do is read the XML file and move the data into a table in a reasonable time. Once I have given in the database, no longer need the XML file.

    What would be the best way to import large XML files?


    Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE 11.2.0.1.0 Production."
    AMT for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    (Gross) approach should work for you.

    CREATE TABLE HOLDS_XML
            (xml_col XMLTYPE)
          XMLTYPE xml_col STORE AS SECUREFILE BINARY XML;
    
    INSERT INTO HOLDS_XML
    VALUES (xmltype(bfilename('DIR_OBJ','large_819mb_file.xml'), nls_charset_id('UTF8')))
    -- Should be using AL32UTF8 for DB character set with XML
    
    SELECT ...
      FROM HOLD_XML HX
           XMLTable(...
              PASSING HX.xml_col ...)
    

    How it differs from your approach.

    With the help of the HOLDS_XML table with storage XML BINARY SECUREFILE (which become the default in 11.2.0.2), we provide a place for Oracle store a parsed version of the XML data. This allows the XML code to be stored on the disk instead of memory. Oracle can then access the necessary XML fragments of the disc in the instead holding the entire XML in memory and the analysis several times to find the necessary information. That's what COLLECTION ITERATOR PICKLER FETCH means. A lot of memory. You can search on this term to learn more about this if necessary.

    The approach XMTable then simply reads this XML to disk file and should be able to parse the XML without problem. You have the option to add XML indexes, but since you read just a while and throw it away, there is no advantage to (most likely) index

  • A query when importing an XML file into a database Table

    Hello
    I create an ODI project to import an XML file into a database using the following link Table.With

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/ODI/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
    I am facing a problem when creating physical Schema for the XML Source model.
    For the
    Schema (Schema)
    and
    Schema field (scheme of work) that they have chosen to GEO_D.
    What GEO_D here?
    or
    What should I select here?
    (1) the XML schema (NB:-J 'I havn' t created any file .dtd for my file .xml or .xsd)
    or
    (2) my diagram of target servers
    Please tell me what I do?
    Thank you

    and
    Schema field (scheme of work) that they have chosen to GEO_D.
    What GEO_D here?

    Is the schema specified in the XML file name.

    What should I select here?
    (1) the XML schema (NB:-J 'I havn' t created any file .dtd for my file .xml or .xsd)

    Yes

    (2) my diagram of target servers
    Please tell me what I do?
    Thank you

  • Import of XML files problems

    So I've recently switched to a PC from a Mac.  I prefer Windows 8 for all other OS, I know I'm in the minority, but that's what I like.  My question is this: when I imported my catalogues from my Mac to my PC all imported fine with display correctly all files and images showing a history of changes, etc.  However, for some reason a wedding I shot did not in it.  The files are there and the sidecar files.  So I tried to import this file into the catalog, and he did.  However, it has not imported the sidecar files and all my previous edits do not show now.

    How to import these XML files so that my changes are restored?  I see no option to import to the inlcude the screen or not include XML files.  Are my changes lost forever, or can they be saved? Thank you.

    FYI: I use Lightroom 4.3

    Looking for your changes. Things like exposure and contrast and other items.

  • How to import the XML file into an oracle table using a BPEL process

    Hi friends

    How can I import XML file in the db oracle table using a BPEL process

    (1) I have generated an XML file in my local system with a field
    (2) I created a temporary table in my oracledb with the same field in the XML file
    (3) that I want to import these XML files which is the local host to my db oracle using a BPEL process
    (4) for that what steps should I me fallow please suggest me if there is no document for this?

    Thanks in advance
    AT

    Hi to

    Here you go...

    http://blogs.Oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html

    I hope that helps!

    Thank you
    AJ

  • Styles to import an xml file

    Hello

    I tri to import an xml with CS5 file formatting:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < root xmlns:aid5 =" http://ns.Adobe.com/AdobeInDesign/5.0/ ">

    < title aid: pstyle = "head_large"> van Gogh art show < /title >

    < / root >

    or
    < root >

    < title aid: pstyle = "head_large"> van Gogh art show < /title >

    < / root >
    but he made a mistake "Prefix of the namespace not related."
    (Help Namespace prefix for pstyle on the title is not set)
    What have I forgotten?
    Thank you

    I think that you need a statement for the namespace aid in addition to the aid5 namespace xmlns .

  • Importing of XML in Indesign text friendly "carriage returns.

    Hello
    I have a question regarding the import of XML in Indesign.  I have my text stored in Excel (Fig A) and intend to export to an XML file, where each line will represent each page.  However, my first attempt failed process "cart returns" I had considered:
    "Carriage returns" used within a cell in Excel (ALT + ENTER) are preserved during the transformation to a CSV (fig. B).  However, when converting a file XML, the conversion takes place on a line-by-line, and therefore, the XML file becomes incomplete (Fig C).

    So it seems, I need to make sure that the CSV file contains one line per entry, while maintaining the real transport returns in my spreadsheet source and for Indesign to recognize.  To do this, I'll need to substitute "carriage returns" in my excel column to be represented by a new set of characters.  My question is how can I let Indesign can recognize this set of characters to be converted to a carriage return, importing text.
    For example, if the character set has been ' %% ', then my new csv file would look like Figure D and XML would be produced correctly, as the Figure E.  Then import this XML file into InDesign, return transport would be automatically restored, if all goes well.

    I hope someone can help me because I am only starting in Indesign and feel Im running until I can walk by embarking on the XML/Indesign arena too early.
    Best regards
    Luke
    XML_ReturnIssue.JPG

    No, I don't think.

    The fact is that ^ is a special character to find/replace.

    so you should either avoid its use in search strings to avoid confusion.

    or if you agree the confusion, you must use ^ ^ n to search for

    (instead of ^ n).

  • I can't seem to figure out how to import multiple XML files in Flex

    I can't figure out how to import multiple XML files in Flex and connect it to the DataGrids. Does anyone have ideas how to make this happen?

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    < s:creationComplete >
    <! [CDATA]
    loader.addEventListener (Event.COMPLETE, getData);
    loader.load (new URLRequest ("http://www.student.hint.no/~100471/mmt134/images/Reiseregning-Konradi_Kare_2011-01-30.xml"));   

    []] >
    < / s:creationComplete >

    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]
    var testData:XML;

    var loader: URLLoader = new URLLoader();

    public void getData(E:Event):void {}
    testData = new XML (E.currentTarget.data);
    grid.dataProvider = testData.descendants ('TravelSpecificationVO');
    }

    []] >
    < / fx:Script >

    < mx:TabNavigator "22.7" = x y = '39.35' width = '536' height = "312" >
    < s:NavigatorContent label = "Tab 1" width = "100%" height = "100%" >
    < mx:DataGrid = "1.3" x = "-2.35" width = "507" height = "269" id = "grid" >
    < mx:columns >
    < mx:DataGridColumn dataField = "to_destinasion" headerText = "Til destinasjon" / >
    < mx:DataGridColumn dataField = "from_date" headerText = "Klokkeslett" / >
    < mx:DataGridColumn dataField = "from_destinasion" headerText = "Fra destinasjon" / >
    < mx:DataGridColumn dataField = "to_date" headerText = "Klokkeslett" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / s:NavigatorContent >
    < s:NavigatorContent label = "hkuhk" width = "100%" height = "100%" >
    < / s:NavigatorContent >
    < / mx:TabNavigator >
    < / s:Application >

    Hope this helps you:

    
    
     
      
     
    
     
      
       
       
       
       
      
     
    
    
    

    Let me know if you need additional information.

    Best regards

    Pablo Souza

  • Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    Hi all

    Problem: Build a VI to display a string in the table of the lights. Each letter must be posted in a separate table and letters must move from one table to the other in the direction from left to right.

    I did program mentioned above but it does not work. Can you tell me what is the problem?

    There is no error is indicated in the program. If someone knows about it please try to find solutions and help me out of this problem.

    I have attached my program with this message.

    Thank you in advance!

    (1) FOR loops are your friend here.  You can make a slight restructuring using loops, and then you will have less mess to deal with, the inner loop through tunnels of autoindexing to make it even simpler.

    (2) I would only treat the numeric values of the characters.  So go terminal of control of the chain, the capital letters and byte array to before the outer loop.  You can use a size of Board over there to tell how many times the outer loop to iterate.

    (3) the Index table is extensible.  So you only need over the index of the first, and it will increment itself, as it develops.

    (4) you need to finish the lookup table (table 3D)

  • How to divide a string into an array of strings in separate tables

    Greetings,

    I have an array of strings which displays strings in a text file. I read each line of the text file and put it in an element of the matrix of the chain.

    Now, I'm trying to divide each string for each part of the chain, then put in a separate table. Each element in the chain is separated by a comma. I hit a brick wall at this point and would like to help please?

    The purpose of this is so that I have 4 tables that will be ready their item values and set variables based on these values until I went through all the elements in each array.

    Attached example.

    Also my VI is attached.

    Thanks in advance for your help.

    Then just use Index Array on 2D array provided.

  • How could import a 16-bit png image in a table on LabVIEW?

    Hello:

    It seems that LabVIEW support only 1, 4, 8 and 24-bit image, I want to import a 16-bit png image in a table (the value is between 0 and 65535), how can I?

    Thank you very much!

    Hi Wanghh

    Look at this example of table Image located by launching the example Finder, OR by selecting 'Toolkits' and Modules > 'Vision' > 'Functions' and the opening of the Example.vi "ImageToArray".

    If you look at the schema for this example, the Subvi "IMAQ Create" has the option to configure for 16-bit images.

    Kind regards

  • How to compare data from the two table column by column and connect the result compared to the separate table

    Hello experts...

    I'm new to this forum and Oracle coding complex.

    I have a task in which I want to compare two tables with the same structure, same columns. My Oracle database is 11g Release 2. I want this column-by-column comparison and save the result in a separate table. (say result_table)

    The structure of the table would be as follows:

    SQL > desc emp;

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    EMPNO NOT NULL NUMBER 4

    ENAME VARCHAR2 (10)

    JOB                                                VARCHAR2(9)

    MGR                                                NUMBER(4)

    HIREDATE DATE

    SAL                                                NUMBER(7,2)

    COMM                                               NUMBER(7,2)

    DEPTNO NUMBER (2)

    SQL > emp_comp desc;

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    EMPNO NOT NULL NUMBER 4

    ENAME VARCHAR2 (10)

    JOB                                                VARCHAR2(9)

    MGR                                                NUMBER(4)

    HIREDATE DATE

    SAL                                                NUMBER(7,2)

    COMM                                               NUMBER(7,2)

    DEPTNO NUMBER (2)

    Both of the tables EMPNO is the primary key.

    I want to compare these two tables based on the EMPNO (EMPNO even is both tables).

    The result log table would be as follows:

    SQL > create table result_table

    2 (check_sr_no, number (5),)

    table_name 3 varchar2 (30),

    ROW_ID 4 varchar2 (20).

    column_name 5 varchar2 (20).

    6 column_data varchar2 (1000).

    compared_by 7 varchar2 (10));

    Table created.

    SQL > alter table result_table

    2 Add the constraint result_table_pk

    3 primary key (check_sr_no);

    Modified table.

    The name of the table and the name of the column will not be hardcoded (based parameter by user)

    I tried to use the dbms_comparison package, but do not find comparison of column to column.

    I also used by using the query operator LESS. It's showing the difference in rank.

    I also went to https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:2151582681236

    Your help will be very appreciated.

    Thank you

    DK

    Tom Kyte has answered this question MANY times over the years. Here are links for its solution

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:4934799800346640847

  • Extract the XML tags and insert into the table

    Description:

    XML is under inert atmosphere in the table containing the xmltype column. Need to extract value from xml tag and insert into the table.
    Once the XML record Treaty must update the status as 'Y' in the base table

    Problem:
    There are multiple occurrences of some tags that need to be combined and stored in a single column to delineate the '-'. No. area of occurrence can vary for each record.
    There are a few encrypted column that I managed to convert decoded value. But used select distinct... XMLTYPE...
    GTT table is used to store the intermediate result and decoding and the concatenation of several tags occurred using TWG.

    1.No. multiple tag will vary how to extract those and concatenate them into a single column. I assumed his occrrence in 3 for example: < student >
    2. how to set the value NULL if no tag is not present. Tag in XML record number can vary. I know that the complete list of xmltags.
    3 data not found error for some xml documents.

    Kindly Assits how to achieve this.

    version: 11.2.0.3.0

    Table Base: temp_XML

    XML_ID NOT NULL NUMBER (28) - auto-increment using the sequence
    PUBLIC EVENT. Stores the XMLTYPE STORAGE BINARY - XML file
    DATE OF EVTDATE
    STATUS VARCHAR2 (3) DEFAULT ' don't

    Sample XML: Includes all the brands mentioned in the common procedure below.

    <? XML version = "1.0" encoding = "US-ASCII"? >

    "< event xmlns ="http://xmlextrac.test.com/object">."

    < data xmlns = "" >

    < object >

    <>units

    < unit > TLAS < / unit >

    < unit > ATLAS < / unit >

    < / units >

    < receiverNetworks >

    < receiverNetwork > ABSAZAJ0XXXX < / receiverNetwork >

    < / receiverNetworks >

    < correspondentIds >

    < correspondentId > #SWF - ABSAZAJ0XXX < / correspondentId >

    < / correspondentIds >

    < comment >

    < comment / >

    < comment / >

    < comment / >

    < comment / >

    < / comment >

    < memo >

    < memo > 28 < / memo >

    < / memos >

    < tuxedoPriority > 20 < / tuxedoPriority >

    sender <>Mike < / sender >

    < typeReseauId > Message < / typeReseauId >

    < maxRetry > 4 < / maxRetry >

    < msgSecuLevel > CBA < / msgSecuLevel >

    < quantity >

    < amount > 12 < / amount >

    < amount > 34 < / amount >

    < amount > 56 < / amount >

    < / amounts >

    < currencys >

    < currency > $ < / currency >

    < currency > EUR < / currency >

    INR < currency > < / currency >

    < / currencys >

    < msgDateVal > ARST123 < / msgDateVal >

    wder < direction > < / direction >

    < eventType > 113 < / eventType >

    < date > 1407431619 < / date >

    < eventDate > 1407431624 < / eventDate >

    < management > R < / direction >

    < msgRef > R950140807AB6CBE < / msgRef >

    < format > SWF < / size >

    < type > 950 < / type >

    R950140807AB6CBE < WALL > < / WALL >

    < bankingPriority / >

    FSDS < field.20 > < / field.20 >

    < texteType > FSS < / texteType >

    < applicationCode > OHS < / applicationCode >

    < company > KETH < / company >

    < endFct > MOE < / endFct >

    < rate > BAM < / flow >

    < subtype / >

    < text > DQo6MjA6R0wxNDA4MDcwMDA1MTMNCjoyNTo3M == < / text >

    < msgHeaders > ezE6RjAxTE9ZRE5MMjBCWFhYMDAzMjAw = < / msgHeaders >

    < msgTrailer > ezU6e0NISzpEOUFFRUNCN0NBQTl9e1RORzp9fQ == < / msgTrailer >

    < / object >

    < / data >

    Procedure: This works very well for a few xml record and fails for some.

    CREATE OR REPLACE PROCEDURE XML_EXTR
    AS
    CURSOR c1
    IS
    SELECT * FROM temp_XML;

    c1_cur c1% ROWTYPE;

    bamdata_sql VARCHAR2 (3000);
    d_text VARCHAR2 (3000);
    d_msgHeaders VARCHAR2 (3000);
    d_msgTrailer VARCHAR2 (3000);
    x_text VARCHAR2 (3000);
    x_msgHeaders VARCHAR2 (3000);
    x_msgTrailer VARCHAR2 (3000);
    x_eventType VARCHAR2 (3000);
    x_amount number (28.2).
    x_currency VARCHAR2 (3000);
    x_state VARCHAR2 (3000);
    x_units VARCHAR2 (3000);
    x_correspondentId VARCHAR2 (3000);
    X_TYPE VARCHAR2 (3000);
    x_receiverNetworks VARCHAR2 (3000);
    x_bankingPriority VARCHAR2 (3000);
    x_applicationCode VARCHAR2 (3000);
    x_processCounter VARCHAR2 (3000);
    x_obsolescence VARCHAR2 (3000);
    x_maxRetry VARCHAR2 (3000);
    x_retries VARCHAR2 (3000);
    x_fileSize VARCHAR2 (3000);
    x_endFct VARCHAR2 (3000);
    x_subType VARCHAR2 (3000);
    x_field20 VARCHAR2 (3000);
    x_sequenceNumber VARCHAR2 (3000);
    x_requestorDn VARCHAR2 (3000);
    x_responderDn VARCHAR2 (3000);
    x_SWIFTNetService VARCHAR2 (3000);
    x_transfertRef VARCHAR2 (3000);
    x_nonrepudiation VARCHAR2 (3000);
    x_transfertInfo VARCHAR2 (3000);
    x_fileDesc VARCHAR2 (3000);
    x_transfertDesc VARCHAR2 (3000);
    x_logicalName VARCHAR2 (3000);
    x_signIndicator VARCHAR2 (3000);
    x_critId VARCHAR2 (3000);
    x_inFapId VARCHAR2 (3000);
    x_deliveryNotif VARCHAR2 (3000);
    x_comment1 VARCHAR2 (3000);
    x_comment2 VARCHAR2 (3000);
    x_comment3 VARCHAR2 (3000);
    x_comment4 VARCHAR2 (3000);
    x_comments VARCHAR2 (3000);
    x_memo1 VARCHAR2 (3000);
    x_memo2 VARCHAR2 (3000);
    x_memo3 VARCHAR2 (3000);
    x_memo4 VARCHAR2 (3000);
    x_msgSecuLevel VARCHAR2 (3000);
    x_dates VARCHAR2 (3000);
    x_tuxedoPriority VARCHAR2 (3000);
    x_fileDest VARCHAR2 (3000);
    x_stkMsgPDEId VARCHAR2 (3000);
    x_EMTId VARCHAR2 (3000);
    x_LTRcptSyno VARCHAR2 (3000);
    x_LTRcpt VARCHAR2 (3000);
    x_LTEmis VARCHAR2 (3000);
    x_flow VARCHAR2 (3000);
    x_FINCopy VARCHAR2 (3000);
    x_msgDateVal VARCHAR2 (3000);
    x_eventDate VARCHAR2 (3000);
    x_typeReseauId VARCHAR2 (3000);
    x_inFapSeq1 VARCHAR2 (3000);
    x_inFapSeq2 VARCHAR2 (3000);
    x_direction VARCHAR2 (3000);
    x_priority VARCHAR2 (3000);
    x_ack VARCHAR2 (3000);
    x_format VARCHAR2 (3000);
    x_mur VARCHAR2 (3000);
    x_TexteType VARCHAR2 (3000);
    x_creatingUser VARCHAR2 (3000);
    x_fileinfo VARCHAR2 (3000);
    x_company VARCHAR2 (3000);
    x_language VARCHAR2 (3000);
    x_ackText VARCHAR2 (3000);
    x_jaxbRef VARCHAR2 (3000);
    x_jaxbElt VARCHAR2 (3000);
    x_memos VARCHAR2 (3000);
    xmlid number (28);
    x_msgRef1 VARCHAR2 (3000);
    x_msgRef2 VARCHAR2 (3000);
    x_msgRef3 VARCHAR2 (3000);
    x_msgRef4 VARCHAR2 (3000);
    x_sender VARCHAR2 (3000);
    x_amlBehavior VARCHAR2 (3000);
    x_ownerServiceId VARCHAR2 (3000);
    x_correspondentName VARCHAR2 (3000);
    x_correspondentAddress1 VARCHAR2 (3000);
    x_correspondentAddress2 VARCHAR2 (3000);
    x_correspondentAddress3 VARCHAR2 (3000);
    x_correspondentAddress4 VARCHAR2 (3000);
    x_correspondentCity VARCHAR2 (3000);
    x_correspondentCountry VARCHAR2 (3000);
    x_correspondentNetworkAddr VARCHAR2 (3000);
    x_tested VARCHAR2 (3000);
    x_correspondentNetwork VARCHAR2 (3000);
    x_validatedPercentage VARCHAR2 (3000);
    x_nbOfValid VARCHAR2 (3000);
    x_requestRef VARCHAR2 (3000);
    x_notifQueue VARCHAR2 (3000);
    x_requestType VARCHAR2 (3000);
    x_secBpid VARCHAR2 (3000);
    x_queue VARCHAR2 (3000);
    x_receiverCode VARCHAR2 (3000);
    x_receiverInd VARCHAR2 (3000);
    x_validFlag VARCHAR2 (3000);
    x_ownerId VARCHAR2 (3000);
    x_dn VARCHAR2 (3000);
    x_RMAOurBic VARCHAR2 (3000);
    x_RMACorrespondentBic VARCHAR2 (3000);
    x_RMAService VARCHAR2 (3000);
    x_fileMsgRef VARCHAR2 (3000);
    date of x_ext_date;
    x_correspondentAddress VARCHAR2 (3000);
    x_msgrefs varchar2 (3000);
    d_ackText varchar2 (3000);
    ackText varchar2 (3000);
    date of x_extdate;

    BEGIN

    FOR C1_CUR IN C1

    LOOP

    INSERT INTO data_GTT_TEMP)
    eventType, amount, currency, State, units, correspondentId, sender, receiverNetworks, bankingPriority, applicationCode, processCounter.
    obsolescence, maxRetry, reminders, fileSize, endFct, xsubType, field.20, sequenceNumber, requestorDn, responderDn, SWIFTNetService, non-repudiation,
    transfertRef, transfertInfo, fileDesc, transfertDesc, logicalName, signIndicator, critId, inFapId, deliveryNotif, comment1, comment2, comment3, comment4,
    Memo1, memo2, memo3, memo4, msgSecuLevel, dates, tuxedoPriority, fileDest, stkMsgPDEId, EMTId, LTRcptSyno, LTRcpt, LTEmis, flow, FINCopy, msgDateVal,
    eventDate, typeReseauId, inFapSeq1, inFapSeq2, direction, priority, ack,
    msgRef1, msgRef2, msgRef3, msgRef4, amlbehavior, correspondentName, ownerServiceId,
    correspondentAddress1, correspondentAddress2, correspondentAddress3, correspondentAddress4,
    correspondentCity, correspondentCountry, correspondentNetworkAddr, tested,
    correspondentNetwork, validatedPercentage, nbOfValid, requestRef, notifQueue,
    requestType, secBpid, xqueue, receiverCode, receiverInd, validFlag, ownerId, dn, RMAOurBic, RMACorrespondentBic, RMAService,
    fileMsgRef, format, xtype, wall, TexteType, creatingUser, fileinfo,
    company, text, xlanguage, ackText, msgHeaders, msgTrailer, jaxbRef, jaxbElt)
    SELECT
    x.eventType, x.amount, x.currency, x.state, x.units, x.correspondentId, x.sender, x.receiverNetworks, x.bankingPriority, x.applicationCode, x.processCounter,
    x.obsolescence, x.maxRetry, x.Retries, x.FileSize, x.endFct, x.xsubType, x.Field20, x.SequenceNumber, x.requestorDn, x.responderDn, x.SWIFTNetService, x.nonRepudiation,
    x.transfertRef, x.transfertInfo, x.fileDesc, x.transfertDesc, x.logicalName, x.signIndicator, x.critId, x.inFapId, x.deliveryNotif, x.comment1, x.comment2,
    x.comment3, x.comment4, x.Memo1, x.memo2, x.memo3, x.MEMO4, x.msgSecuLevel, x.dates, x.tuxedoPriority, x.fileDest, x.stkMsgPDEId, x.EMTId, x.LTRcptSyno,
    x.LTRcpt, x.LTEmis, x.flow, x.FINCopy, x.msgDateVal, x.eventDate, x.typeReseauId, x.inFapSeq1, x.inFapSeq2, x.direction, x.priority, x.ack,
    x.msgRef1, x.msgRef2, x.msgRef3, x.msgRef4, x.amlbehavior, x.correspondentName, x.ownerServiceId,
    x.correspondentAddress1, x.correspondentAddress2, x.correspondentAddress3, x.correspondentAddress4,
    x.correspondentCity, x.correspondentCountry, x.correspondentNetworkAddr, x.tested,
    x.correspondentNetwork, x.validatedPercentage, x.nbOfValid, x.requestRef, x.notifQueue,
    x.requestType, x.secBpid, x.xqueue, x.receiverCode, x.receiverInd, x.validFlag, x.ownerId, x.dn, x.RMAOurBic, x.RMACorrespondentBic, x.RMAService,
    x.fileMsgRef, x.format, x.xtype, x.mur, x.TexteType, x.creatingUser, x.fileinfo,
    x.Company, x.Text, x.xLanguage, x.ackText, x.msgHeaders, x.msgTrailer, x.jaxbRef, x.jaxbElt

    of temp_XML t, XMLTABLE (XMLNAMESPACES ('http://xmlextrac.test.com/object' as "ns0"), ' / ns0:event' )
    PASSAGE t.BAM_EVENT COLUMNS
    eventType varchar2 (3000) PATH 'data, object, eventType' DEFAULT NULL,
    amount number (28.2) path data/object/amounts"."
    currency varchar2 (3000) PATH 'data, object, currencys, currency' DEFAULT NULL,
    VARCHAR2 (3000) path "data/object / / state of ' DEFAULT NULL, State
    units varchar2 (3000) PATH ' object/data/units' DEFAULT NULL,
    correspondentId varchar2 (3000) PATH "data/object/correspondentIds' DEFAULT NULL,
    sender varchar2 (3000) PATH 'data, object, sender' DEFAULT NULL,
    receiverNetworks varchar2 (3000) PATH "data/object/receiverNetworks' DEFAULT NULL,
    bankingPriority varchar2 (3000) PATH "data/object/bankingPriority' DEFAULT NULL,
    applicationCode varchar2 (3000) PATH ' object/data/applicationCode' DEFAULT NULL,
    processCounter varchar2 (3000) PATH "data/object/processCounter' DEFAULT NULL,
    obsolescence varchar2 (3000) PATH ' data/object/obsolescence' DEFAULT NULL,
    maxRetry varchar2 (3000) PATH ' data/object/maxRetry' DEFAULT NULL,
    attempts to varchar2 (3000) "data/object/attempts" DEFAULT NULL path,.
    size of the file varchar2 (3000) PATH ' data/object/fileSize' DEFAULT NULL,
    endFct varchar2 (3000) PATH "data/object/endFct' DEFAULT NULL,
    xsubType varchar2 (3000) PATH "data/object/subtype' DEFAULT NULL,
    field.20 varchar2 (3000) PATH ' object/data/field.20' DEFAULT NULL,
    sequenceNumber varchar2 (3000) PATH "data/object/sequenceNumber" DEFAULT NULL,
    requestorDn varchar2 (3000) PATH "data/object/requestorDn' DEFAULT NULL,
    responderDn varchar2 (3000) PATH "data/object/responderDn' DEFAULT NULL,
    SWIFTNetService varchar2 (3000) PATH "data/object/SWIFTNetService' DEFAULT NULL,
    non-repudiation varchar2 (3000) PATH ' object/data/repudiation' DEFAULT NULL,
    transfertRef varchar2 (3000) PATH "data/object/transfertRef' DEFAULT NULL,
    transfertInfo varchar2 (3000) PATH "data/object/transfertInfo' DEFAULT NULL,
    fileDesc varchar2 (3000) PATH "data/object/fileDesc' DEFAULT NULL,
    transfertDesc varchar2 (3000) PATH "data/object/transfertDesc' DEFAULT NULL,
    logicalName varchar2 (3000) PATH "data/object/logicalName" DEFAULT NULL,
    signIndicator varchar2 (3000) PATH "data/object/signIndicator' DEFAULT NULL,
    critId varchar2 (3000) PATH "data/object/critId' DEFAULT NULL,
    inFapId varchar2 (3000) PATH "data/object/inFapId' DEFAULT NULL,
    deliveryNotif varchar2 (3000) PATH "data/object/deliveryNotif' DEFAULT NULL,
    COMMENT1 varchar2 (3000) PATH ' data, subject, comments, comment [1] "DEFAULT NULL,
    comment2 varchar2 (3000) PATH 'data, subject, comments, how [2]' DEFAULT NULL,
    comment3 varchar2 (3000) PATH "data/object/observations/comments [3]" DEFAULT NULL,
    comment4, varchar2 (3000) PATH ' data, subject, comments, comment [4] "DEFAULT NULL,
    Memo1 varchar2 (3000) PATH "data/object/memos/memo [1]" DEFAULT NULL,
    Memo2 varchar2 (3000) PATH "data/object/notes/Notes [2]" DEFAULT NULL,
    memo3 varchar2 (3000) PATH "data/object/memos/memo [3]" DEFAULT NULL,
    MEMO4 varchar2 (3000) PATH "data/object/memos/memo [4]" DEFAULT NULL,
    msgSecuLevel varchar2 (3000) PATH "data/object/msgSecuLevel' DEFAULT NULL,
    Date varchar2 (3000) PATH ' object/data/date' DEFAULT NULL,
    tuxedoPriority varchar2 (3000) PATH "data/object/tuxedoPriority' DEFAULT NULL,
    fileDest varchar2 (3000) PATH "data/object/fileDest' DEFAULT NULL,
    stkMsgPDEId varchar2 (3000) PATH "data/object/stkMsgPDEId' DEFAULT NULL,
    EMTId varchar2 (3000) PATH "data/object/EMTId' DEFAULT NULL,
    LTRcptSyno varchar2 (3000) PATH "data/object/LTRcptSyno' DEFAULT NULL,
    LTRcpt varchar2 (3000) PATH "data/object/LTRcpt' DEFAULT NULL,
    LTEmis varchar2 (3000) PATH "data/object/LTEmis' DEFAULT NULL,
    flow varchar2 (3000) PATH "/ object/data flow ' DEFAULT NULL,
    FINCopy varchar2 (3000) PATH ' data/object/FINCopy' DEFAULT NULL,
    msgDateVal varchar2 (3000) PATH "data/object/msgDateVal' DEFAULT NULL,
    eventDate varchar2 (3000) PATH "data/object/eventDate" DEFAULT NULL,
    typeReseauId varchar2 (3000) PATH "data/object/typeReseauId' DEFAULT NULL,
    inFapSeq1 varchar2 (3000) PATH "data/object/inFapSeq1' DEFAULT NULL,
    inFapSeq2 varchar2 (3000) PATH "data/object/inFapSeq2' DEFAULT NULL,
    direction varchar2 (3000) PATH 'data, object, direction' DEFAULT NULL,
    priority varchar2 (3000) PATH ' data/object/priority' DEFAULT NULL,
    ACK varchar2 (3000) PATH ' object/data/ack' DEFAULT NULL,
    msgRef1 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [1] "DEFAULT NULL,
    msgRef2 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [2] "DEFAULT NULL,
    msgRef3 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [3] "DEFAULT NULL,
    msgRef4 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [4] "DEFAULT NULL,
    amlBehavior varchar2 (3000) PATH "data/object/amlBehavior' DEFAULT NULL,
    ownerServiceId varchar2 (3000) PATH "data/object/ownerServiceId' DEFAULT NULL,
    correspondentName varchar2 (3000) PATH ' data/object/correspondentName' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress1 ' object/data/correspondentLine1Addresse' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress2 ' object/data/correspondentLine2Addresse' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress3 ' object/data/correspondentLine3Addresse' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of correspondentAddress4 ' object/data/correspondentLine4Addresse' DEFAULT NULL,
    correspondentCity PATH VARCHAR2 (3000) ' object/data/correspondentCity' DEFAULT NULL,
    correspondentCountry PATH VARCHAR2 (3000) ' object/data/correspondentCountry' DEFAULT NULL,
    correspondentNetworkAddr PATH VARCHAR2 (3000) ' object/data/correspondentNetworkAddr' DEFAULT NULL,
    tested VARCHAR2 (3000) PATH ' data/object/tested' DEFAULT NULL,
    correspondentNetwork PATH VARCHAR2 (3000) ' object/data/correspondentNetwork' DEFAULT NULL,
    validatedPercentage PATH VARCHAR2 (3000) ' object/data/validatedPercentage' DEFAULT NULL,
    nbOfValid PATH VARCHAR2 (3000) ' object/data/nbOfValid' DEFAULT NULL,
    requestRef VARCHAR2 (3000) PATH ' data/object/requestRef' DEFAULT NULL,
    notifQueue PATH VARCHAR2 (3000) ' object/data/notifQueue' DEFAULT NULL,
    requestType PATH VARCHAR2 (3000) ' data/object/requestType' DEFAULT NULL,
    secBpid PATH VARCHAR2 (3000) ' object/data/secBpid' DEFAULT NULL,
    xqueue PATH VARCHAR2 (3000) ' data/object/tail' DEFAULT NULL,
    receiverCode PATH VARCHAR2 (3000) ' object/data/receiverCode' DEFAULT NULL,
    receiverInd PATH VARCHAR2 (3000) ' object/data/receiverInd' DEFAULT NULL,
    validFlag PATH VARCHAR2 (3000) ' object/data/validFlag' DEFAULT NULL,
    ownerId PATH VARCHAR2 (3000) ' data/object/ownerId' DEFAULT NULL,
    DN VARCHAR2 (3000) PATH ' data/object/dn' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of RMAOurBic ' object/data/RMAOurBic' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of RMACorrespondentBic ' object/data/RMACorrespondentBic' DEFAULT NULL,
    PATH of VARCHAR2 (3000) of RMAService ' object/data/RMAService' DEFAULT NULL,
    fileMsgRef PATH VARCHAR2 (3000) ' object/data/fileMsgRef' DEFAULT NULL,
    ackText varchar2 (3000) PATH "data/object/ackText' DEFAULT NULL,
    format varchar2 (3000) PATH "data/object / ' DEFAULT NULL,
    xType varchar2 (3000) PATH ' data/object/type' DEFAULT NULL,
    Wall varchar2 (3000) PATH ' data/object/wall' DEFAULT NULL,
    texteType varchar2 (3000) PATH "data/object/texteType' DEFAULT NULL,
    creatingUser varchar2 (3000) PATH ' data/object/creatingUser' DEFAULT NULL,
    fileInfo varchar2 (3000) PATH ' data/object/fileInfo' DEFAULT NULL,
    VARCHAR2 (3000) path ' data/object/society' DEFAULT NULL, the company
    VARCHAR2 (3000) text ' data/object/text' DEFAULT NULL path.
    xLanguage varchar2 (3000) PATH ' data/object/language' DEFAULT NULL,
    msgHeaders varchar2 (3000) PATH "data/object/msgHeaders' DEFAULT NULL,
    msgTrailer varchar2 (3000) PATH "data/object/msgTrailer' DEFAULT NULL,
    jaxbRef varchar2 (3000) PATH ' info/jaxbRef' DEFAULT NULL,
    jaxbElt varchar2 (3000) PATH "jaxbElt/info") x
    where t.XML_ID = c1_cur. XML_ID and t.status =' no;

    Select x.text, x.msgHeaders, x.msgTrailer in x_msgTrailer, x_msgHeaders, x_text of
    temp_XML t, XMLTABLE (XMLNAMESPACES ('http://xmlextrac.test.com/object' as "ns0"), ' / ns0:event' )
    PASSAGE t.BAM_EVENT COLUMNS
    text varchar2 (3000) PATH data/object/text"."
    msgHeaders varchar2 (3000) PATH "data/object/msgHeaders,"
    msgTrailer varchar2 (3000) PATH "object/data/msgTrailer.
    ) x
    where t.XML_ID = c1_cur. XML_ID;
    Select sysdate in double x_extdate;


    d_text: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_text)));
    d_msgHeaders: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_msgHeaders)));
    d_msgTrailer: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_msgTrailer)));
    -d_ackText: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (ackText)));

    Select
    EventType, amount, currency, State, units, correspondentid, sender, receivernetworks, bankingpriority,
    applicationcode, processcounter, obsolescence, maxretry, reminders, filesize, endfct, xsubtype, field.20, sequencenumber, requestordn,
    responderdn, swiftnetservice, non repudiation, transfertref, transfertinfo, filedesc, transfertdesc, logicalname, signindicator,
    critid, infapid, deliverynotif, comment1, comment2, comment3, comment4, memo1, memo2, memo3, memo4, msgseculevel, dates, tuxedopriority, filedest,
    stkmsgpdeid, emtid, ltrcptsyno, ltrcpt, ltemis, flow, fincopy, msgdateval, eventdate, typereseauid, infapseq1,
    infapseq2, direction, priority, ack, msgref1, msgref2, msgref3, msgref4, amlbehavior, ownerserviceid, correspondentname, correspondentaddress1, correspondentaddress2, correspondentaddress3, correspondentaddress4,
    correspondentcity, correspondentcountry, correspondentnetworkaddr, test, correspondentnetwork, validatedpercentage, nbofvalid,.
    requestref, notifqueue, requesttype, secbpid, xqueue, receivercode, receiverind, validflag, ownerid, dn, rmaourbic, rmacorrespondentbic, rmaservice, filemsgref,
    acktext, format, xtype, wall, textetype, creatinguser, fileinfo, society, text, xlanguage, msgheaders, msgtrailer, jaxbref, jaxbelt
    in
    x_eventtype, x_amount, x_currency, x_state, x_units, x_correspondentid, x_sender, x_receivernetworks, x_bankingpriority, x_applicationcode, x_processcounter,
    x_obsolescence, x_maxretry, x_retries, x_filesize, x_endfct, x_subtype, x_field20, x_sequencenumber, x_requestordn, x_responderdn, x_swiftnetservice, x_nonrepudiation,
    x_transfertref, x_transfertinfo, x_filedesc, x_transfertdesc, x_logicalname, x_signindicator, x_critid, x_infapid, x_deliverynotif, x_comment1, x_comment2, x_comment3,
    x_comment4, x_memo1, x_memo2, x_memo3, x_memo4, x_msgseculevel, x_dates, x_tuxedopriority, x_filedest, x_stkmsgpdeid, x_emtid, x_ltrcptsyno, x_ltrcpt,
    x_ltemis, x_flow, x_fincopy, x_msgdateval, x_eventdate, x_typereseauid, x_infapseq1, x_infapseq2, x_direction, x_priority, x_ack, x_msgref1, x_msgref2,
    x_msgref3, x_msgref4, x_amlbehavior, x_ownerserviceid, x_correspondentname, x_correspondentaddress1, x_correspondentaddress2, x_correspondentaddress3,
    x_correspondentaddress4, x_correspondentcity, x_correspondentcountry, x_correspondentnetworkaddr, x_tested, x_correspondentnetwork, x_validatedpercentage,
    x_nbofvalid, x_requestref, x_notifqueue, x_requesttype, x_secbpid, x_queue, x_receivercode, x_receiverind, x_validflag, x_ownerid, x_dn, x_rmaourbic,
    x_rmacorrespondentbic, x_rmaservice, x_filemsgref, x_acktext, x_format, x_type, x_mur, x_textetype, x_creatinguser, x_fileinfo, x_company, x_text,
    x_language, x_msgheaders, x_msgtrailer, x_jaxbref, data_GTT_TEMP x_jaxbelt;

    x_memos: = x_memo1 | » -'|| x_memo2 | » -'|| x_memo3 | » -'|| x_memo4;
    x_comments: = x_comment1 | » -'|| x_comment2 | » -'|| x_comment3 | » -'|| x_comment4;
    x_correspondentAddress: = x_correspondentAddress1 | » -'|| x_correspondentAddress2 | » -'|| x_correspondentAddress3 | » -'|| x_correspondentAddress4;
    x_msgrefs: = x_msgRef1 | » -'|| x_msgRef2 | » -'|| x_msgRef3 | » -'|| x_msgRef4;

    BEGIN


    insert into donnees_xml
    (xml_id, x_ext_date, eventtype, amount, currency, State, unit, correspondentid, sender, receivernetworks, bankingpriority, applicationcode,
    ProcessCounter, obsolescence, maxretry, reminders, filesize, endfct, xsubtype, field.20, sequencenumber, requestordn, responderdn,
    swiftnetservice, non repudiation, transfertref, transfertinfo, filedesc, transfertdesc, logicalname, signindicator, critid, infapid,
    deliverynotif, comments, notes, msgseculevel, dates, tuxedopriority, filedest, stkmsgpdeid, emtid, ltrcptsyno, ltrcpt, ltemis, flow,
    FINCopy, msgdateval, eventdate, typereseauid, infapseq1, infapseq2, direction, priority, ack, msgrefs, amlbehavior, ownerserviceid,
    correspondentName correspondentaddress, correspondentcity, correspondentcountry, correspondentnetworkaddr, tested,
    correspondentnetwork, validatedpercentage, nbofvalid, requestref, notifqueue, requesttype, secbpid, xqueue, receivercode,
    receiverind, validflag, ownerid, dn, rmaourbic, rmacorrespondentbic, rmaservice, filemsgref, acktext, format, xtype, wall,
    textetype, creatinguser, fileinfo, society, text, xlanguage, msgheaders, msgtrailer, jaxbref, jaxbelt)
    values
    (xmlid, x_extdate, x_eventType, x_amount, x_currency, x_state, x_units, x_correspondentId, x_sender, x_receiverNetworks, x_bankingPriority, x_applicationCode,
    x_processCounter, x_obsolescence, x_maxRetry, x_retries, x_fileSize, x_endFct, x_subType, x_field20, x_sequenceNumber, x_requestorDn, x_responderDn,
    x_SWIFTNetService, x_nonRepudiation, x_transfertRef, x_transfertInfo, x_fileDesc, x_transfertDesc, x_logicalName, x_signIndicator, x_critId, x_inFapId,
    x_deliveryNotif, x_comments, x_memos, x_msgSecuLevel, x_dates, x_tuxedoPriority, x_fileDest, x_stkMsgPDEId, x_EMTId, x_LTRcptSyno, x_LTRcpt, x_LTEmis, x_flow,
    x_FINCopy, x_msgDateVal, x_eventDate, x_typeReseauId, x_inFapSeq1, x_inFapSeq2, x_direction, x_priority, x_ack, x_msgrefs, x_amlbehavior, x_ownerServiceId,
    x_correspondentName, x_correspondentAddress, x_correspondentCity, x_correspondentCountry, x_correspondentnetworkaddr, x_tested,
    x_correspondentNetwork, x_validatedPercentage, x_nbOfValid, x_requestRef, x_notifQueue, x_requestType, x_secBpid, x_queue, x_receiverCode,
    x_receiverInd, x_validFlag, x_ownerId, x_dn, x_RMAOurBic, x_RMACorrespondentBic, x_RMAService, x_fileMsgRef, ackText, x_format, x_type, x_mur,
    x_TexteType, x_creatingUser, x_fileinfo, x_company d_text, x_language, d_msgHeaders, d_msgTrailer, x_jaxbRef, x_jaxbElt);

    Update temp_XML set status = 'Y' where XML_ID = xmlid;

    END;
    COMMIT;
    END LOOP;
    END;
    /

    1.No. multiple tag will vary how to extract those and concatenate them into a single column. I assumed that his occrrence in 3 for example:

    Use the fn:string-join() function:

    path varchar2 (4000) of comments 'string-join(comments/comment, "-").

    2. how to set the value NULL if no tag is not present. Tag in XML record number can vary.

    You don't have anything specific to do in this case.

    Missing tags with a projection in the COLUMNS clause will produce a column NULL by default.

Maybe you are looking for

  • Wide screen Toshiba wallpaper by me

    I did wallpapers and think that maybe someone will like it :)[http://img389.imageshack.us/img389/935/wallpapertoshibawidecg0.jpg]

  • Lack of drivers here 8440p

    Hello I just bought a second hand EliteBook 8440p. The previous owner had wiped and I installed windows 7 32 bit on it. There are 7 missing drivers. This is the name in the Device Manager and the hardware id. I can't find the drivers for these. BASE

  • EliteBook: can I use a boot cd on a portable computer with disk encryption?

    Windows is sprinkled on a laptop with disc encryption.  Is there a way I can use a boot cd to access the drive?  I want to get some files off it first.

  • Windows 7 update new problemin

    The update was all going well until July 11 when an update has been installed automatically and since then the update is stuck on searching endless updates and my computer became very slow and it takes forever to do anything.  I have windows 7-64 bit

  • Server POWEREDGE R310 GUASTO DISCO [MS]

    Salve, Sul nostro Server POWEREDGE R310 matricola pulito UN disco degradato e we must certainly, macchina questa mattina if oltretutto non e starts sul display compare dice che a LOG FULL error. Riavviare pulire e. MI potete cars per vedere come riso