Improve XML readability in Oracle 11g for binary XMLType storage for huge files

I have one requirement in which I have to process huge XML files. That means there might be around 1000 xml files and the whole size of these files would be around 2GB.
What I need is to store all the data in these files to my Oracle DB. For this I have used sqlloader for bulk uploading of all my XML files to my DB and it is stored as binary XMLTYPE in my database.Now I need to query these files and store the data in relational tables.For this I have used XMLTable Xpath queries. Everything is fine when I try to query single xml file within my DB. But if it is trying to query all those files it is taking too much time which is not acceptable.
Here's my one sample xml content:
<ABCD>
  <EMPLOYEE id="11" date="25-Apr-1983">
    <NameDetails>
      <Name NameType="a">
        <NameValue>
          <FirstName>ABCD</FirstName>
          <Surname>PQR</Surname>
          <OriginalName>TEST1</OriginalName>
          <OriginalName>TEST2</OriginalName>
        </NameValue>
      </Name>
      <Name NameType="b">
        <NameValue>
          <FirstName>TEST3</FirstName>
          <Surname>TEST3</Surname>
        </NameValue>
        <NameValue>
          <FirstName>TEST5</FirstName>
          <MiddleName>TEST6</MiddleName>
          <Surname>TEST7</Surname>
          <OriginalName>JAB1</OriginalName>
        </NameValue>
        <NameValue>
          <FirstName>HER</FirstName>
          <MiddleName>HIS</MiddleName>
          <Surname>LOO</Surname>
        </NameValue>
      </Name>
      <Name NameType="c">
        <NameValue>
          <FirstName>CDS</FirstName>
          <MiddleName>DRE</MiddleName>
          <Surname>QWE</Surname>
        </NameValue>
        <NameValue>
          <FirstName>CCD</FirstName>
          <MiddleName>YTD</MiddleName>
          <Surname>QQA</Surname>
        </NameValue>
        <NameValue>
          <FirstName>DS</FirstName>
          <Surname>AzDFz</Surname>
        </NameValue>
      </Name>
    </NameDetails>
  </EMPLOYEE >
</ABCD>
Please note that this is just one small record inside one big xml.Each xml would contain similar records around 5000 in number.Similarly there are more than 400 files each ranging about 4MB size approx.
My xmltable query :
SELECT t.personid,n.nametypeid,t.titlehonorofic,t.firstname,
        t.middlename,
        t.surname,
        replace(replace(t.maidenname, '<MaidenName>'),'</MaidenName>', '#@#') maidenname,
        replace(replace(t.suffix, '<Suffix>'),'</Suffix>', '#@#') suffix,
        replace(replace(t.singleStringName, '<SingleStringName>'),'</SingleStringName>', '#@#') singleStringName,
        replace(replace(t.entityname, '<EntityName>'),'</EntityName>', '#@#') entityname,
        replace(replace(t.originalName, '<OriginalName>'),'</OriginalName>', '#@#') originalName
FROM xmlperson p,master_nametypes n,
         XMLTABLE (
          --'ABCD/EMPLOYEE/NameDetails/Name/NameValue'
          'for $i in ABCD/EMPLOYEE/NameDetails/Name/NameValue        
           return <row>
                    {$i/../../../@id}
                     {$i/../@NameType}
                     {$i/TitleHonorific}{$i/Suffix}{$i/SingleStringName}
                    {$i/FirstName}{$i/MiddleName}{$i/OriginalName}
                    {$i/Surname}{$i/MaidenName}{$i/EntityName}
                </row>'
        PASSING p.filecontent
        COLUMNS
                personid     NUMBER         PATH '@id',
                nametypeid   VARCHAR2(255)  PATH '@NameType',
                titlehonorofic VARCHAR2(4000) PATH 'TitleHonorific',
                 firstname    VARCHAR2(4000) PATH 'FirstName',
                 middlename  VARCHAR2(4000) PATH 'MiddleName',
                surname     VARCHAR2(4000) PATH 'Surname',
                 maidenname   XMLTYPE PATH 'MaidenName',
                 suffix XMLTYPE PATH 'Suffix',
                 singleStringName XMLTYPE PATH 'SingleStringName',
                 entityname XMLTYPE PATH 'EntityName',
                originalName XMLTYPE        PATH 'OriginalName'
                ) t where t.nametypeid = n.nametype and n.recordtype = 'Person'
But this is taking too much time to query all those huge data. The resultset of this query would return about millions of rows. I tried to index the table using this query :
CREATE INDEX myindex_xmlperson on xml_files(filecontent) indextype is xdb.xmlindex parameters ('paths(include(ABCD/EMPLOYEE//*))');
My Database version :
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Index is created but still no improvement with the performance though. It is taking more than 20 minutes to query even a set of 10 similar xml files.Now you can imagine how much will it take to query all those 1000 xml files.
Could someone please suggest me how to improve the performance of my database.Since I am new to this I am not sure whether I am doing it in proper way. If there is a better solution please suggest. Your help will be greatly appreciated.

Hi Odie..
I tried to run your code through all the xml files but it is taking too much time. It has not ended even after 3hours.
When I tried to do a single insert select statement  for one single xml it is working.But stilli ts in the range of ~10sec.
Please find my execution plan for one single xml file with your code.
"PLAN_TABLE_OUTPUT"
"Plan hash value: 2771779566"
"| Id  | Operation                                     | Name                                     | Rows   | Bytes | Cost (%CPU)| Time     |"
"|   0 | INSERT STATEMENT                   |                                              |   499G |   121T |   434M  (2) |999:59:59  |"
"|   1 |  LOAD TABLE CONVENTIONAL    | WATCHLIST_NAMEDETAILS  |            |           |                 |                 |"
"|   2 |   SORT AGGREGATE                   |                                             |     1      |     2    |                 |          |"
"|   3 |    XPATH EVALUATION                 |                                             |             |          |                 |          |"
"|   4 |   SORT AGGREGATE                   |                                             |     1      |     2    |                 |          |"
"|   5 |    XPATH EVALUATION                 |                                             |             |          |                 |          |"
"|   6 |   SORT AGGREGATE                   |                                             |     1       |     2   |                 |          |"
"|   7 |    XPATH EVALUATION                 |                                             |              |         |                 |          |"
"|   8 |   SORT AGGREGATE                   |                                             |     1        |     2  |                 |          |"
"|   9 |    XPATH EVALUATION                 |                                             |              |         |                 |          |"
"|  10 |   NESTED LOOPS                       |                                             |   499G    | 121T |   434M (2) | 999:59:59 |"
"|  11 |    NESTED LOOPS                      |                                             |    61M     |  14G |  1222K (1) | 04:04:28 |"
"|  12 |     NESTED LOOPS                     |                                             | 44924      |  10M |    61   (2) | 00:00:01 |"
"|  13 |      MERGE JOIN CARTESIAN      |                                             |     5         | 1235 |     6   (0) | 00:00:01 |"
"|* 14 |       TABLE ACCESS FULL          | XMLPERSON                        |     1          |  221 |     2   (0) | 00:00:01 |"
"|  15 |       BUFFER SORT                     |                                             |     6          |  156 |     4   (0) | 00:00:01 |"
"|* 16 |        TABLE ACCESS FULL         | MASTER_NAMETYPES        |     6          |  156 |     3   (0) | 00:00:01 |"
"|  17 |      XPATH EVALUATION             |                                             |                |         |               |          |"
"|* 18 |     XPATH EVALUATION              |                                             |               |          |               |          |"
"|  19 |    XPATH EVALUATION               |                                              |               |         |              |          |"
"Predicate Information (identified by operation id):"
"  14 - filter(""P"".""FILENAME""='PFA2_95001_100000_F.xml')"
"  16 - filter(""N"".""RECORDTYPE""='Person')"
"  18 - filter(""N"".""NAMETYPE""=CAST(""P1"".""C_01$"" AS VARCHAR2(255) ))"
"Note"
"   - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)"
Please note that this is for a single xml file. I have like more than 400 similar files in the same table.
And for your's as well as Jason's Question:
What are you trying to accomplish with
replace(replace(t.originalName, '<OriginalName>'),'</OriginalName>', '#@#') originalName 
originalName XMLTYPE PATH 'OriginalName'
Like Jason, I also wonder what's the purpose of all those XMLType projections and strange replaces in the SELECT clause
What I was trying to achieve was to create a table containing separate rows for all the multi item child nodes for this particular xml.
But since there was an error beacuse of multiple child nodes like 'ORIGINALNAME' under 'NAMEVALUE' node, I tried this script to insert those values by providing a delimiter and replacing the tag names.
Please see the link for more details - http://stackoverflow.com/questions/16835323/construct-xmltype-query-to-store-data-in-oracle11g
This was the execution plan for one single xml file with my code :
Plan hash value: 2851325155
| Id  | Operation                                                     | Name                                         | Rows  | Bytes   | Cost (%CPU)  | Time       |    TQ  | IN-OUT | PQ Distrib |
|   0 | SELECT STATEMENT                                   |                                                 |  7487   |  1820K |    37   (3)        | 00:00:01 |           |             |            |
|*  1 |  HASH JOIN                                                 |                                                 |  7487   |  1820K  |    37   (3)        | 00:00:01 |           |             |            |
|*  2 |   TABLE ACCESS FULL                                | MASTER_NAMETYPES            |     6     |   156     |     3   (0)         | 00:00:01 |           |             |            |
|   3 |   NESTED LOOPS                                        |                                                 |  8168   |  1778K  |    33   (0)        | 00:00:01 |           |             |            |
|   4 |    PX COORDINATOR                                    |                                                 |            |             |                      |               |           |             |            |
|   5 |     PX SEND QC (RANDOM)                           | :TQ10000                                  |     1    |   221      |     2   (0)        | 00:00:01 |  Q1,00 | P->S     | QC (RAND)  |
|   6 |      PX BLOCK ITERATOR                              |                                                 |     1    |   221      |     2   (0)        | 00:00:01 |  Q1,00 | PCWC   |            |
|*  7 |       TABLE ACCESS FULL                            | XMLPERSON                            |     1    |   221      |     2   (0)        | 00:00:01 |  Q1,00 | PCWP   |            |
|   8 |    COLLECTION ITERATOR PICKLER FETCH  | XQSEQUENCEFROMXMLTYPE |  8168  | 16336    |    29   (0)       | 00:00:01  |           |               |            |
Predicate Information (identified by operation id):
   1 - access("N"."NAMETYPE"=CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(VALUE(KOKBF$),'/*/@NameType'),0,0,20971520,0),50,1,2
              ) AS VARCHAR2(255)  ))
   2 - filter("N"."RECORDTYPE"='Person')
   7 - filter("P"."FILENAME"='PFA2_95001_100000_F.xml')
Note
   - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
Please let me know whether this has helped.
My intention is to save the details in the xml to different relational tables so that I can easily query it from my application. I have similarly many queries which inserts the xml values to different tables like the one which I have mentioned here. I was thinking of creating a stored procedure to insert all these values in the relational tables once I receive the xml files. But even a single query is taking too much time to complete. Could you please help me in this regard. Waiting for your valuable feedback.

Similar Messages

  • When is oracle 11g R2 will be available for downloading

    when is oracle 11g R2 will be available for downloading

    If you're talking about the database, it's available now.
    If you are talking about the next release of JDeveloper, Oracle hasn't (and generally doesn't) announced a date.
    John

  • Oracle 11g and Supported Programming Languages for application development

    Hi,
    Currently we are running our Java application on Oracle 10g Lite. We are planning to upgrade to Oracle 11g Lite very soon. I have below queries to be answered.
    1. What are the programming languages supported for application development to work with Oracle 11g Lite mobile server and client ?
        - i have seen some note saying java and .net are supported. Wanted to know the complete list of supported programming languages on Oracle 10g Lite
    2. Oracle Forms 10g is supported on Oracle 11g Lite platform ?
        - i have some online application running on Oracle 10G Forms. Wanted to extend this to offline model using Oracle 10g Lite
    Thanks,
    Ashok Kumar.G

    Hi Ashok,
    1. What are the programming languages supported for application development to work with Oracle 11g Lite mobile server and client ?
                For the 11g version of the product, we changed the name to Oracle Database Mobile Server.    For clarity purposes, there is no product called Oracle 11g Lite mobile server.
                For a detailed list of what is/is not supported on the client, please consult the documentation.   See section 2.1 of the Mobile Client guide.  For programming languages you
                can use what you want, and we support the following technologies, JDBC, ODBC, ADO.NET.  What you code your application in is up to you.
    2. Oracle Forms 10g is supported on Oracle 11g Lite platform ?
                   On the database mobile server side of things we do not do testing with Oracle Forms 10g.    I do not know enough about applications developed with the Forms' product.   Database Mobile Server is a product that keeps tracks of changes that occur in a database, and then propagates those changes to an Oracle backend.   We offer 2 way synchronization between an Oracle backend database and a client.  If you are running the Forms application on the Oracle backend and want to propagate changes done out to the client, then this should work.    I say ** should **   because we have not tested it but I cannot think of a reason why it would not work.   It would be up to you to develop the client side application that would look at the data in the client database and display it to the user.    In the 11.x version of the product, we support 2 client databases, Berkeley DB and SQLite.
    thanks
    mike

  • Apply Xml Button in Oracle 11g

    Hi All,
    Can someone tell me how to use the Apply Xml Button available in Oracle 11g's Advanced Tab.
    Generally the xml for our analysis report is generated in this Advanced tab. But my question Can i apply my own xml here and by applying my own xml I should be able to make changes in my analysis.
    Can someone tell me what changes are possible to do by using this APPLY XML button.
    Because I tried to create the filters in my analysis by pasting the xml of another analysis's filter section. But its showing Bad xml instance error!
    Please tell me what we can do with this APPLY XML part in Advanced tab?
    Thanks in Advance,
    Surya

    876003 wrote:
    Hi All,
    Can someone tell me how to use the Apply Xml Button available in Oracle 11g's Advanced Tab.
    Generally the xml for our analysis report is generated in this Advanced tab. But my question Can i apply my own xml here and by applying my own xml I should be able to make changes in my analysis.
    Can someone tell me what changes are possible to do by using this APPLY XML button.
    Because I tried to create the filters in my analysis by pasting the xml of another analysis's filter section. But its showing Bad xml instance error!
    Please tell me what we can do with this APPLY XML part in Advanced tab?
    Apply XML — Click this button to commit the XML code modifications that you made to the catalog.
    If your XML that your are pasting is correct and as per Criteria/Analysis then it will work fine. Slightest mistake in it will ruin up the complete XML and will not allow you to use.
    Hope this helps

  • What should i do with an Oracle 11g Database, MySQL database and a dump file.

    I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
    My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
    So the quest is converting Oracle Database to MySQL database.
    Of course i cant try to convert it in the main Database, so i create one Oracle 11g Database on my LocalHost, and it already actived in " Localhost:1158 " etc.
    I have another Sever test that already set up MySQL database, and a dump file from the system.
    So I want to ask these 2 questions :
    1. How to create an new Oracle Database from that dump file ?
    2. Is it alright if i use tool to convert Oracle Database into MySql, or i should do it manually ?
    Thanks alot.

    I just joining to a new work field, almost about a database and i know "NOTHING" about this field.
    My company has a system that running by Oracle Database, the problem is that Oracle Database will cost a lot of money when my company expands.
    So the quest is converting Oracle Database to MySQL database.
    I predict that converting to MySQL will cost your company more as it expands. As you expand managing contention becomes more important - Oracle does this for you. I do not think MySQL does, so you'll have to write more code to deal with this, costing the company money. A big part of making application scalable and reliable is to use stored procedures, how good are MySQL's compared to PL/SQL's. What other features are there that MySQL has that will benefit your company that Oracle doesn't. What do you need to think about as your company expands that need to be taken care of in the database. I would have thought a migration from MySQL to Oracle would be more common to deal with expansion.
    As you know "NOTHING" you need to think about what each database can give you for the next 10 years to cope with you businesses potential requirements, and extimate how much it will cost to implement these requirements, then make the decision

  • Major performance trouble Oracle 11g  RHELx64, HP 8100 storage

    Hi hope some one can help me with this.
    We have a datawarehouse with this configuratuion
    Database
    RHEL5 u5 on 2* intel 5700 cpu, 36gb ram, emulex 4gb dual port hba, HP EVA 8100 san.
    Oracle 11g 11.1.7.
    Database 8 kblock
    Disks are
    /data 2.0TB 72 disks formated with ext3 4k block.
    /log 100GB 72 disks formated with ext3 4k block.
    ETL
    Informatica Power Center 8.6 on similar machine.
    My problem is vhen we try to load the database with data it takes forever so we tested this stuff
    iops script run
    SET SERVEROUTPUT ON
    DECLARE
    lat INTEGER;
    iops INTEGER;
    mbps INTEGER;
    BEGIN
    -- DBMS_RESOURCE_MANAGER.CALIBRATE_IO (<DISKS>, <MAX_LATENCY>, iops, mbps, lat);
    DBMS_RESOURCE_MANAGER.CALIBRATE_IO (72, 10, iops, mbps, lat);
    DBMS_OUTPUT.PUT_LINE ('max_iops = ' || iops);
    DBMS_OUTPUT.PUT_LINE ('latency = ' || lat);
    dbms_output.put_line('max_mbps = ' || mbps);
    end;
    Results
    Warehouse database about 600GB data in it
    max_iops = 82
    latency = 11
    max_mbps = 204
    LOW!!!
    I installed a new database with just the exaple schemas on same disk /data and got theese results
    max_iops = 25665
    latency = 8
    max_mbps = 517
    Any one have some ideas what i should test or change?
    /Jens Bäckström (Noob)Dba

    The second database IOTEST is a small test db.
    This is how i did the test
    i stopped the DWRPD01 wich is the dw database.
    i start the IOTEST DATABSE and run the iops script.
    after the run i stoped IOTEST and started DWPRD02 and run the same script.
    i am sure the database files was on the same san disk group . but ofc i can not besure that the data be on the same physical disk in the SAN cabinett.
    Ill check ur other questions as soon as i have some ansvers
    and thanks for helping me out.
    Below are my initfiles from the DB's
    /Jens
    IOTEST Database
    IOTEST.__db_cache_size=16106127360
    IOTEST.__java_pool_size=268435456
    IOTEST.__large_pool_size=268435456
    IOTEST.__oracle_base='/oracle_prod01'#ORACLE_BASE set from environment
    IOTEST.__pga_aggregate_target=6442450944
    IOTEST.__sga_target=21474836480
    IOTEST.__shared_io_pool_size=0
    IOTEST.__shared_pool_size=4294967296
    IOTEST.__streams_pool_size=268435456
    *.archive_lag_target=1800
    *.audit_file_dest='/oracle_prod01/admin/IOTEST/adump'
    *.audit_sys_operations=true
    *.audit_trail='db'
    *.compatible='11.1.0.0.0'
    *.control_file_record_keep_time=16
    *.control_files='/iotest/IOTEST/control01.ctl','/iotest/IOTEST/control02.ctl','/iotest/IOTEST/control03.ctl'
    *.db_block_checking='LOW'
    *.db_block_checksum='TYPICAL'
    *.db_block_size=8192
    *.db_create_file_dest=''
    *.db_domain=''
    *.db_file_multiblock_read_count=32
    *.db_files=200
    *.db_name='IOTEST'
    *.db_recovery_file_dest=''
    *.db_writer_processes=3
    *.diagnostic_dest='/oracle_prod01'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=IOTESTXDB)'
    *.filesystemio_options='setall'
    *.log_checkpoints_to_alert=true
    *.nls_language='AMERICAN'
    *.open_cursors=512
    *.optimizer_index_cost_adj=50
    *.parallel_io_cap_enabled=true
    *.parallel_max_servers=10
    *.parallel_min_servers=2
    *.pga_aggregate_target=6442450944
    *.processes=512
    *.recyclebin='off'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=21474836480DWPRD01.__db_cache_size=16106127360
    *.star_transformation_enabled='TRUE'
    *.undo_tablespace='UNDOTBS1'
    DWPRD01 Database
    DWPRD01.__java_pool_size=268435456
    DWPRD01.__large_pool_size=268435456
    DWPRD01.__oracle_base='/oracle_prod01'#ORACLE_BASE set from environment
    DWPRD01.__pga_aggregate_target=6442450944
    DWPRD01.__sga_target=21474836480
    DWPRD01.__shared_io_pool_size=0
    DWPRD01.__shared_pool_size=4294967296
    DWPRD01.__streams_pool_size=268435456
    *.archive_lag_target=1800
    *.audit_file_dest='/oracle_prod01/admin/DWPRD01/adump'
    *.audit_sys_operations=true
    *.audit_trail='db'
    *.compatible='11.1.0.0.0'
    *.control_file_record_keep_time=16
    *.control_files='/dbffast_prod01/control01.ctl','/oracle_prod01/control02.ctl','/log_prod01/control03.ctl'
    *.db_block_checking='LOW'
    *.db_block_checksum='TYPICAL'
    *.db_block_size=8192
    *.db_create_file_dest=''
    *.db_domain=''
    *.db_file_multiblock_read_count=32
    *.db_files=200
    *.db_name='DWPRD01'
    *.db_recovery_file_dest=''
    *.db_writer_processes=3
    *.diagnostic_dest='/oracle_prod01'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=DWPRD01XDB)'
    *.filesystemio_options='setall'
    *.log_archive_dest_1='LOCATION=/arch_prod01'
    *.log_archive_format='DWPRD01_%t_%s_%r.log'
    *.log_checkpoints_to_alert=true
    *.nls_language='AMERICAN'
    *.open_cursors=512
    *.optimizer_index_cost_adj=50
    *.parallel_io_cap_enabled=true
    *.parallel_max_servers=10
    *.parallel_min_servers=2
    *.pga_aggregate_target=6442450944
    *.processes=512
    *.recyclebin='off'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=21474836480
    *.star_transformation_enabled='TRUE'
    *.undo_tablespace='UNDOTBS1'

  • Can I pay for addition iCloud storage for my family member

    I want to buy more storage for my children, but I don't want to connect my credit card to their iCloud accounts. I've added them as the family members, could I pay for their iCloud through family sharing?

    Your children's accounts currently have some account information with them ... so just put in your card data, do the charge, and then change it back to the account info they have now, and then your card is off the account.

  • XML parsing in Oracle 11g

    Hello all,
    I'm using the below database.
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    I have a XML and I have to parse this and I need to store it in table.
    Please give solution to parse.
    <?xml version="1.0" encoding="UTF-8"?>
    <data>
    <passengerinformation>
      <passengerno>0001</passengerno>
      <title>Mr</title>
      <firstname>Test First Name</firstname>
      <familyname>family name</familyname>
      <email>[email protected]</email>
      <country>India</country>
      <contacttype>Mobile : +91 465465487979</contacttype>
    </passengerinformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW123</vehicleno>
      <origin>Chennai</origin>
      <destination>Delhi</destination>
      <departuredate>24 Jun 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>ER12345</bookingreferencenumber>
      <vehicleno>AW124</vehicleno>
      <origin>Chennai</origin>
      <destination>Noida</destination>
      <departuredate>24 May 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW125</vehicleno>
      <origin>Chennai</origin>
      <destination>Mumbai</destination>
      <departuredate>24 Jul 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW126</vehicleno>
      <origin>Chennai</origin>
      <destination>Hyd</destination>
      <departuredate>24 Aug 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    </data>

    To give you a starting point
    with xmldata as (
    select xmlparse (document
    '<?xml version="1.0" encoding="UTF-8"?>
    <data>
    <passengerinformation>
      <passengerno>0001</passengerno>
      <title>Mr</title>
      <firstname>Test First Name</firstname>
      <familyname>family name</familyname>
      <email>[email protected]</email>
      <country>India</country>
      <contacttype>Mobile : +91 465465487979</contacttype>
    </passengerinformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW123</vehicleno>
      <origin>Chennai</origin>
      <destination>Delhi</destination>
      <departuredate>24 Jun 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>ER12345</bookingreferencenumber>
      <vehicleno>AW124</vehicleno>
      <origin>Chennai</origin>
      <destination>Noida</destination>
      <departuredate>24 May 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW125</vehicleno>
      <origin>Chennai</origin>
      <destination>Mumbai</destination>
      <departuredate>24 Jul 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    <bookinginformation>
      <bookingreferencenumber>FA45454</bookingreferencenumber>
      <vehicleno>AW126</vehicleno>
      <origin>Chennai</origin>
      <destination>Hyd</destination>
      <departuredate>24 Aug 13</departuredate>
      <classoftravel>Sleeper</classoftravel>
      <complaintcategory>baggagedelivery</complaintcategory>
      <comments>Test</comments>
    </bookinginformation>
    </data>') x from dual)
    select
    passengerno
    from xmldata, xmltable( '/data/passengerinformation' passing xmldata.x
    columns
      passengerno varchar2(30) path 'passengerno'
    PASSENGERNO
    0001

  • How to create simple XML database in oracle 11g

    Hi,
    what are the steps to followed to create a simeple custormer XML database.
    Like storing .xml file into XMLType, writing simple xml schema.....like that
    how to register the .xsd
    how to insert the xml data
    how to querying the the data base with xquery
    Thanks in Advance

    Have a look a the FAQ on the main page of this XMLDB forum. That's a good source to start (besides the XMLDB Developer Guide manual).

  • Oracle 11g application won't start sometimes(jar files issue)

    Hello,
    The issue we experience is that now and then, our forms 11g application
    won't start.
    So it can be the case that, for example, the application can be started
    succesfully 5 times in a row, but the 6th and 7th time, it won't start
    anymore. But when we relaunch it for the 8th time, it launches perfectly.
    When the application isn't starting, a new window is opened having a yellow triangle
    with an exclamation mark on the top right corner.
    After a long period, we suddely discovered that it had something to do with ".jar" files.
    Because when we clear the "java jar cache" on the client machine
    (start -> control panel -> java -> "general" tab -> "view..." button -> select all the files and click on the
    cross(remove selected sources) ), the application succesfully starts for about 10 times in a row.
    But the first time we start the application(after clearing the cache), it takes much longer, because the application
    is downloading the .jar files again. (java logo appears with a progress bar)
    But clearing the cache every time before starting the application can't be a decent solution we think.
    When we enable all java debugging info in the console, we received the error below 2 times when launching a application session that refused to start:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkPackageAccess(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.forms.engine.Main.initDesktop(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Anyone having a clue ?
    thanks in advance !

    Sorry, I meant WEB-INF\lib in the WAR file inside my EAR.
    I put all the jar files in the WEB-INF\lib of the WAR file but it still does not work. I have to specify them in the classpaths and put the jar files in the domains\domain\lib directory
    I thought if you put it in the WEB-INF\lib then you don't have to put them in the classpath.
    Am I right?

  • Oracle 11g on Unix server needs to write files (.csv) on Windows server

    Hi,
    Currently we are using Oracle 10g which is installed on a Unix server and on the same server there is a directory under which some files are being exported/downloaded by the db.
    We are having DEDICATED DB INSTANCE on the SHARED server, and not a DEDICATED SERVER.
    Now we need to migrate from Oracle 10g to 11g, but due to some complaince issue, we have been asked to create those directories on some other server. We have identified a Windows server and can create directories.
    Now I request any expert to pls suggest/guide me that how can the db (on Unix server) export/write files on another Windows server?
    I read in a thread that the server (where files should be exported) should be MOUNTED on the server where db is physically installed.
    Pls help me here.....
    Edited by: 950010 on Jul 31, 2012 7:00 AM

    950010 wrote:
    As I wrote in my question that due to compliance issue we have been asked to create the directory (that is currently on the same unix server on which our db is physically installed) in any other server (no matter unix or windows).And if that remote server is not available? Or if network connectivity to the remote server fails? Or if there is severe network congestion between the Oracle server and remote server? What then?
    How is the process on the local server suppose to deal with errors when it attempts to create a CSV file on the remote server? Or deal with network bottlenecks that results in severe performance degradation when trying to create a CSV file? Or if there lacks freespace for creating the CSV file?
    What about security? How is the local Oracle server to authenticate itself with the remote server? How is the remote server to protect that directory share against unauthorised access?
    How is this remote server going to provide access to authorised s/w to these CSV files?
    Who (local or remote processes) is going to manage this directory share and ensure old CSV files are deleted and that there is sufficient freespace for new CSV files?
    There are a LOT of questions that need to be asked... BEFORE deciding on HOW technically to do it. As the technical decision will be based on the functional requirements and how to best meet these.
    Technically - there is Samba, NFS, FTP, SFTP, SCP, RDIST and a number of other methods that can be used. But without asking the above questions and getting proper business answers, selecting a specific technical method is very much premature.
    You are asking the wrong questions, and in the wrong forum. You need to determine the business requirements first.

  • Storage for working and storage for backup

    Hello friends and neighbours, here I am again with a
    I am considering to give thunderbolt storage to my coming Mac Pro, which I tended to use mainly for checking very large images, editing some of them slightly, printing and storing some of them. Second is to build DVDs from foreign sources, not very narrow in time and less often.
    Now I thaught to set a Promise cabin beside to the Pro with a RAID 0 for fast access and a RAID 1 for temporarely backup, until the outcome of projects is given to optical storage and must be deletet because of disk ”full“. I assume working 2-3 TB (the rest of space remains free) can be enough in each categorie.
    Can a Promise been splitted to two RAIDs (half 0, half 1)? Because of the private kind of my work and equipment the price should not rise much over 2500$/€, best below.
    ~ Best regards, Karl

    WIthout getting an answer is the question obsolet.

  • ChangePerm.sh file does not exist in Oracle 11g installation

    Hi All,
    I have done successful Oracle 11g installation. After installation I noticed that Oracle 11g/installation does not have changePerm.sh file. Did anyone of you seen that?
    Without executing changeperm.sh file, the binary files have 751 permission level. ChangePerm.sh script make change in file permission to 755.
    Oracle support is not answering me why there was no changePerm.sh file under Oracle_home/install directory.
    Thoughts/suggestions..
    Thank you
    Suresh

    I'm not finding this to be the case reliably. I have both a 10G and an 11G install on one particular machine and the 11G installer initially creates the directories with a 755 permission, then right before the prompt to run root.sh, and at the same time it locks down any 10G home it finds (someone please explain that!) it locks down the 11G home too.
    In true Murphy tradition, this hasn't happened on any of my testing machines, just my production.
    Whatever silly contrived mechanism Oracle wrote to re-lock 10G when installing 11G is also locking down my 11G.

  • Oracle 11g on rhel5

    hi oracle community,
    i've installed the new oracle 11g on rhel5 enterprise linux. i put all necessary packages in place and set all needed kernel parameters as documented.
    the installation worked fine, and the OUI created a starter database for me.
    listener is configured and started. so everything is pretty good working and
    i started to play around with it. to get sqlplus working i had to turn off SELinux
    completely.
    now the problem: after a few hours of running smoothly, the box is no longer responsive. it seems the whole OS is going to freeze. all my ssh shells did no longer respond. SQL-queries did not respond any longer.
    the only thing i can do then is to hard reset the box and reboot. there is nothing of interest in /var/log/messages afterwards. btw. oracle db recovers with no errors from this outage and comes back immediatly. :-)
    one more thing to mention: if i reboot into rhel5 without starting oracle 11g database the box runs for days without having the problem.
    anyone with an idea about this behaviour? many thanks in advance.
    manisan

    I am REALLY surprised that Oracle Linux installation does not have at least an option for each of the Oracle RDBMS major versions. It should be as easy as download Oracle Linux distribution, select install "Linux for Oracle 11g" and "Linux for Oracle 10g". The installation completes, then install the Oracle RDBMS and OEM software, no fuss, no muss.

  • Oracle 11G Dev - Local Version stops working

    Hi All,
    I've had a local version of Oracle 11G running on my laptop for a number of weeks, I set it up once and it's worked ever since. Until this week.
    I tend to work in various locations, sometimes I am working with no network, other times I VPN to a network using a Mobile Broadband dongle, other times I use a LAN to access the network.
    The problem I'm having is that my console service has stopped working and whilst the listener is running i'm getting an error when I test the connection, doing a TNSPING comes back with an error yet this was working absolutely fine yesterday - I've simply logged off a vpn and logged back on.
    I saw another post here about making a copy of a directory in ..\j2ee\ and putting 'localhost' in the directory name in place of the computer name. This seemed to work yesterday but am getting the same issue today where I can't connect to the local db running on my laptop.
    I can reconfigure the listener each time I change network access method but it seems bonkers to have to do that each time.
    So have a feeling I've done something wrong because I can't see it being this much hassle to run a local copy of oracle.
    can someone please help me get a robust version working which doesn't care if you run on no network, a vpn or a LAN?
    cheers!!

    Pl post details of exact OS and database versions. If you are using a certified version of Windows, have you installed the loopback adapter ?
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/reqs.htm#BABFHCJG
    You refer to errors - can you pl post the complete error messages ?
    HTH
    Srini

Maybe you are looking for

  • Cannot Delete Folders from USB drive connected to Airport Extreme

    When I try to delete files from the usb drive connected to my airport I get "cannot remove folder, the directory is not empty. This only happens for some of the folders that are empty. No problem deleting any files whether they were created before or

  • Bridge CC - 64 bit freezes when selecting a video file icon in content view

    On a 64-bit PC (12 core, 64 GIG RAM) with solid state hard drive and Nvidia Quadra 4000 video card with latest driver.  I have purged cache, I have reset preferences, I have changed shortcut to Run As Administrator.  I've tried to find a way to run i

  • Fetching Service URL based on System

    Hi All, We developed UI5 app in development system (for ex: PGX). So we used service URLs pointing to PGX system. But later we transported the app to another system (for ex: PGQ) for testing. But still the app refers to PGX data as we used absolute U

  • My phone froze on the way to update to new software

    Now it won't turn on at all. What do I do?

  • 6233: Corrupted images

    Hello, I have Nokia 6233 v5.10 with 1GB Lexar microSD card. I've noticed that some of the images I've taken(and maybe this applies to all kinds of files) get corrupted after some time(it's not in the moment of shooting but at a later time). What's ca