Load an XML file into table(s)
Hi ,
I have to load data from an xml file into an Oracle DB but I never used this king of process before. The purpose is to use as much as possible Oracle standard features ( stored procedures , functions , API's ).
Can someone explain me in simple explanations how to do it ? Thanks in advance for your help.
The XML must not be stored in the database , only the final tables
Values can be inserted , updated , or deleted from the final tables
Here are the versions of the tools I am using :
Oracle RDBMS : 10.2.0.4.0
Oracle Applications : 11.5.10.2
Toad : 9.5.0.31
SQL Plus : 8.0.6.0.0
The header of the xsd :
<?xml version="1.0" encoding="windows-1252" ?>
- <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by erik de bruyn (Graydon)
-->
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3schools.com" targetNamespace="http://www.w3schools.com" elementFormDefault="qualified">
An extract of the xml :
<?xml version="1.0" encoding="windows-1252" ?>
- <GraydonBeDialogue>
<TransactionCode>RTB</TransactionCode>
- <Table ClassTable="Country">
- <TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>AD</TableCode>
<TableValue>Andorra</TableValue>
</TableEntry>
- <TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>AE</TableCode>
<TableValue>Verenigde Arabische Emiraten</TableValue>
</TableEntry>
</Table>
- <Table ClassTable="Summons">
- <TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>D</TableCode>
<TableValue>De dagvaarding is het gevolg</TableValue>
</TableEntry>
- <TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>S</TableCode>
<TableValue>Doorgehaald bij de arbeidsrechtbank</TableValue>
</TableEntry>
</Table>
</GraydonBeDialogue>
The result I would have :
Two tables ( Country and Summons ) , each containing 3 columns ( TableLanguage , TableCode , TableValue ) :
Table Country : TableLanguage TableCode TableValue
N AD Andorra
N AE Verenigde Arabische Emiraten
Table Summons : TableLanguage TableCode TableValue
N D De dagvaarding is het gevolg
N S Doorgehaald bij de arbeidsrechtbank
for table Country
create table Country as
with t as (
select
xmltype (
'<?xml version="1.0" encoding="windows-1252" ?>
<GraydonBeDialogue>
<TransactionCode>RTB</TransactionCode>
<Table ClassTable="Country">
<TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>AD</TableCode>
<TableValue>Andorra</TableValue>
</TableEntry>
<TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>AE</TableCode>
<TableValue>Verenigde Arabische Emiraten</TableValue>
</TableEntry>
</Table>
<Table ClassTable="Summons">
<TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>D</TableCode>
<TableValue>De dagvaarding is het gevolg</TableValue>
</TableEntry>
<TableEntry>
<TableLanguage>N</TableLanguage>
<TableCode>S</TableCode>
<TableValue>Doorgehaald bij de arbeidsrechtbank</TableValue>
</TableEntry>
</Table>
</GraydonBeDialogue>') as xml
from dual
select x.TableLanguage, x.TableCode, x.TableValue
from t
,xmltable('/GraydonBeDialogue/Table[@ClassTable="Country"]/TableEntry'
passing t.xml
columns TableLanguage varchar2(50) path '/TableEntry/TableLanguage'
, TableCode varchar2(50) path '/TableEntry/TableCode'
, TableValue varchar2(50) path '/TableEntry/TableValue'
) x
Similar Messages
-
Loading this xml data into tables
Hello,
I am having a problem loading this XML file into tables. The xml file structure is
<FILE>
<ACCESSION>
some ids
<INSTANCE>
some data
<VARIATION
</VARIATION>
<VARIATION>
</VARIATION> variation gets repeated a number of times
<ASSEMBLY>
</ASSEMBLY>
<ASSEMBLY>
</ASSEMBLY> Assembly gets repeated a number of times.
</INSTANCE>
</ACCESSION>
</FILE>
I created a table which has the structure:
create table accession(
accession_id varchar2(20),
Instance instance_type);
create or replace type instance_type as object
(method varchar2(20),
class varchar2(20),
source varchar2(20),
num_char number(10),
variation variation_type,
assembly assembly_type)
create or replace type variation_type as object
(value varchar2(2),
count number(10),
frequency number(10),
pop_id varchar2(10)
Created a similiar type for assembly.
When I load it, I could only store the first variation data but not the subsequent ones. Similarly for assembly I could only store the first data but not the subsequent ones.
Could anyone let me know how I could store this data into tables? I have also included a sample XML file in this message.
Thank You for your help.
Rama.
Here is the sample xml file.
<?xml version="1.0" ?>
- <FILE>
- <ACCESSION>
<ACCESSION_ID>accid1</ACCESSION_ID>
- <INSTANCE>
<METHOD>method1</METHOD>
<CLASS>class1</CLASS>
<SOURCE>source1</SOURCE>
<NUM_CHAR>40</NUM_CHAR>
- <VARIATION>
<VALUE>G</VALUE>
<COUNT>5</COUNT>
<FREQUENCY>66</FREQUENCY>
<POP1>pop1</POP1>
<POP2>pop1</POP2>
</VARIATION>
<VARIATION>
<VALUE>C</VALUE>
<COUNT>2</COUNT>
<FREQUENCY>33</FREQUENCY>
<POP_ID1>pop2</POP_ID1>
</VARIATION>
- <ASSEMBLY>
<ASSEMBLY_ID>1</ASSEMBLY_ID>
<BEGIN>180</BEGIN>
<END>180</END>
<TYPE>2</TYPE>
<ORI>-</ORI>
<OFFSET>0</OFFSET>
</ASSEMBLY>
- <ASSEMBLY>
<ASSEMBLY_ID>2</ASSEMBLY_ID>
<BEGIN>235</BEGIN>
<END>235</END>
<TYPE>2</TYPE>
<ORI>-</ORI>
<OFFSET>0</OFFSET>
</ASSEMBLY>
</INSTANCE>
</ACCESSION>
</FILE>Hello,
I could figure out how to load this XML file by using cast(multiset(
So never mind.
Thank You.
Rama. -
How to load a XML file into a table
Hi,
I've been working on Oracle for many years but for the first time I was asked to load a XML file into a table.
As an example, I've found this on the web, but it doesn't work
Can someone tell me why? I hoped this example could help me.
the file acct.xml is this:
<?xml version="1.0"?>
<ACCOUNT_HEADER_ACK>
<HEADER>
<STATUS_CODE>100</STATUS_CODE>
<STATUS_REMARKS>check</STATUS_REMARKS>
</HEADER>
<DETAILS>
<DETAIL>
<SEGMENT_NUMBER>2</SEGMENT_NUMBER>
<REMARKS>rp polytechnic</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>3</SEGMENT_NUMBER>
<REMARKS>rp polytechnic administration</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>4</SEGMENT_NUMBER>
<REMARKS>rp polytechnic finance</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>5</SEGMENT_NUMBER>
<REMARKS>rp polytechnic logistics</REMARKS>
</DETAIL>
</DETAILS>
<HEADER>
<STATUS_CODE>500</STATUS_CODE>
<STATUS_REMARKS>process exception</STATUS_REMARKS>
</HEADER>
<DETAILS>
<DETAIL>
<SEGMENT_NUMBER>20</SEGMENT_NUMBER>
<REMARKS> base polytechnic</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>30</SEGMENT_NUMBER>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>40</SEGMENT_NUMBER>
<REMARKS> base polytechnic finance</REMARKS>
</DETAIL>
<DETAIL>
<SEGMENT_NUMBER>50</SEGMENT_NUMBER>
<REMARKS> base polytechnic logistics</REMARKS>
</DETAIL>
</DETAILS>
</ACCOUNT_HEADER_ACK>
For the two tags HEADER and DETAILS I have the table:
create table xxrp_acct_details(
status_code number,
status_remarks varchar2(100),
segment_number number,
remarks varchar2(100)
before I've created a
create directory test_dir as 'c:\esterno'; -- where I have my acct.xml
and after, can you give me a script for loading data by using XMLTABLE?
I've tried this but it doesn't work:
DECLARE
acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') );
BEGIN
insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks)
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS[$hn]/DETAIL'
passing acct_doc as "d",
x1.header_no as "hn"
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
END;
This should allow me to get something like this:
select * from xxrp_acct_details;
Statuscode status remarks segement remarks
100 check 2 rp polytechnic
100 check 3 rp polytechnic administration
100 check 4 rp polytechnic finance
100 check 5 rp polytechnic logistics
500 process exception 20 base polytechnic
500 process exception 30
500 process exception 40 base polytechnic finance
500 process exception 50 base polytechnic logistics
but I get:
Error report:
ORA-06550: line 19, column 11:
PL/SQL: ORA-00932: inconsistent datatypes: expected - got NUMBER
ORA-06550: line 4, column 2:
PL/SQL: SQL Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
and if I try to change the script without using the column HEADER_NO to keep track of the header rank inside the document:
DECLARE
acct_doc xmltype := xmltype( bfilename('TEST_DIR','acct.xml'), nls_charset_id('AL32UTF8') );
BEGIN
insert into xxrp_acct_details (status_code, status_remarks, segment_number, remarks)
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'/ACCOUNT_HEADER_ACK/DETAILS'
passing acct_doc
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
END;
I get this message:
Error report:
ORA-19114: error during parsing the XQuery expression:
ORA-06550: line 1, column 13:
PLS-00201: identifier 'SYS.DBMS_XQUERYINT' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at line 4
19114. 00000 - "error during parsing the XQuery expression: %s"
*Cause: An error occurred during the parsing of the XQuery expression.
*Action: Check the detailed error message for the possible causes.
My oracle version is 10gR2 Express Edition
I do need a script for loading xml files into a table as soon as possible, Give me please a simple example for understanding and that works on 10gR2 Express Edition
Thanks in advance!The reason your first SQL statement
select x1.status_code,
x1.status_remarks,
x2.segment_number,
x2.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS[$hn]/DETAIL'
passing acct_doc as "d",
x1.header_no as "hn"
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS'
) x2
returns the error you noticed
PL/SQL: ORA-00932: inconsistent datatypes: expected - got NUMBER
is because Oracle is expecting XML to be passed in. At the moment I forget if it requires a certain format or not, but it is simply expecting the value to be wrapped in simple XML.
Your query actually runs as is on 11.1 as Oracle changed how that functionality worked when 11.1 was released. Your query runs slowly, but it does run.
As you are dealing with groups, is there any way the input XML can be modified to be like
<ACCOUNT_HEADER_ACK>
<ACCOUNT_GROUP>
<HEADER>....</HEADER>
<DETAILS>....</DETAILS>
</ACCOUNT_GROUP>
<ACCOUNT_GROUP>
<HEADER>....</HEADER>
<DETAILS>....</DETAILS>
</ACCOUNT_GROUP>
</ACCOUNT_HEADER_ACK>
so that it is easier to associate a HEADER/DETAILS combination? If so, it would make parsing the XML much easier.
Assuming the answer is no, here is one hack to accomplish your goal
select x1.status_code,
x1.status_remarks,
x3.segment_number,
x3.remarks
from xmltable(
'/ACCOUNT_HEADER_ACK/HEADER'
passing acct_doc
columns header_no for ordinality,
status_code number path 'STATUS_CODE',
status_remarks varchar2(100) path 'STATUS_REMARKS'
) x1,
xmltable(
'$d/ACCOUNT_HEADER_ACK/DETAILS'
passing acct_doc as "d",
columns detail_no for ordinality,
detail_xml xmltype path 'DETAIL'
) x2,
xmltable(
'DETAIL'
passing x2.detail_xml
columns segment_number number path 'SEGMENT_NUMBER',
remarks varchar2(100) path 'REMARKS') x3
WHERE x1.header_no = x2.detail_no;
This follows the approach you started with. Table x1 creates a row for each HEADER node and table x2 creates a row for each DETAILS node. It assumes there is always a one and only one association between the two. I use table x3, which is joined to x2, to parse the many DETAIL nodes. The WHERE clause then joins each header row to the corresponding details row and produces the eight rows you are seeking.
There is another approach that I know of, and that would be using XQuery within the XMLTable. It should require using only one XMLTable but I would have to spend some time coming up with that solution and I can't recall whether restrictions exist in 10gR2 Express Edition compared to what can run in 10.2 Enterprise Edition for XQuery. -
Loading an XML file into the table without creating a directory .
Hi,
I wanted to load an XML file into a table column . But I should not create a directory in the server and placing the XML file there and giving the path in the insert query. Can anybody help me here?
Thanks in advance.You could write a java stored procedure that retrieves the file into a clob. Wrap that in a function call and use it in your insert statement.
This solution require read privileges granted by sys and is therefore only feasible if the top-level directory/directories are known or you get read-access to everything. -
Performance problems loading an XML file into oracle database
Hello ODI Guru's,
I am trying to load and XML file into the database after doing simple business validations. But the interface takes hours to complete.
1. The XML files are large in size >200 Mb. We have an XSD file for the schema definition instead of a DTD.
2. We used the external database feature for loading these files in database.
The following configuration was used in the XML Data Server:
jdbc:snps:xml?f=D:\CustomerMasterData1\CustomerMasterInitialLoad1.xml&d=D:\CustomerMasterData1\CustomerMasterInitialLoad1.xsd&re=initialLoad&s=CM&db_props=oracle&ro=true
3. Now we reverse engineer the XML files and created models using ODI Designer
4. Similar thing was done for the target i.e. an Oracle database table as well.
5. Next we created a simple interface with one-to-one mapping from the XSD schema to the Oracle database table and executed the interface. This execution takes more than one hour to complete.
6. We are running ODI client on Windows XP Professional SP2.
7. The Oracle database server(Oracle 10g 10.2.0.3) for the target schema as well as the ODI master and work repositories are on the same machine.
8. I tried changing the following properties but it is not making much visible difference:
use_prepared_statements=Y
use_batch_update=Y
batch_update_size=510
commit_periodically=Y
num_inserts_before_commit=30000
I have another problem that when I set batch_update_size to value greater that 510 I get the following error:
java.sql.SQLException: class org.xml.sax.SAXException
class java.lang.ArrayIndexOutOfBoundsException said -32413
at com.sunopsis.jdbc.driver.xml.v.a(v.java)
The main concern is why should the interface taking so long to execute.
Please send suggestions to resolve the problem.
Thanks in advance,
Best Regards,
NikunjApproximately how many rows are you trying to insert?
One of the techniques which I found improved performance for this scenario was to extract from the xml to a flat file, then to use SQL*LOADER or external tables to load the data into Oracle. -
Help needed badly Insert text data from xml files into tables
Hi all, I have asked to do insertion of text from a xml file into tables upon receiving using pro*c. i've done quite an amount of research on xml parser in c but there wasn't much information for mi to use for implementation...
Guys don't mind helping me to clarify few doubts of mine...
1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?
2. Is there any tutorials or help files for xml parser libs where i can read up?
I need the xml parser to recognise the tags, followed by recognising the text after the tags.
eg. xml format
<studentID> 0012 </studentID>
<student> john </student>
<studentID> 0013 </studentID>
<student> mary </student>
text willl be inserted into tables like this:
studentID | student
0012 | john
0013 | mary
by the way i'm using oracle 8i on HP-UX. Thanks in advance.I can answer one of of your questions at least
1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?You need the XML XDK. You can use http://www.oracle.com/technology/tech/xml/xdkhome.html as your starting point. I believe the 9i version works for 8i.
I have no pro*c experience so I can't offer any other suggestions regarding how to do this in pro*c. -
How to load a XML file into a table using PL/SQL
Hi Guru,
I have a requirement, that i have to create a procedure or a package in PL/SQL to load XML file into a table.
How we can achive this.ODI_NewUser wrote:
Hi Guru,
I have a requirement, that i have to create a procedure or a package in PL/SQL to load XML file into a table.
How we can achive this.
Not a perfectly framed question. How do you want to load the XML file? Hoping you want to parse the xml file and load it into a table you can do this.
This is the xml file
karthick% cat emp_details.xml
<?xml version="1.0"?>
<ROWSET>
<ROW>
<EMPNO>7782</EMPNO>
<ENAME>CLARK</ENAME>
<JOB>MANAGER</JOB>
<MGR>7839</MGR>
<HIREDATE>09-JUN-1981</HIREDATE>
<SAL>2450</SAL>
<COM>0</COM>
<DEPTNO>10</DEPTNO>
</ROW>
<ROW>
<EMPNO>7839</EMPNO>
<ENAME>KING</ENAME>
<JOB>PRESIDENT</JOB>
<HIREDATE>17-NOV-1981</HIREDATE>
<SAL>5000</SAL>
<COM>0</COM>
<DEPTNO>10</DEPTNO>
</ROW>
</ROWSET>
You can write a query like this.
SQL> select *
2 from xmltable
3 (
4 '/ROWSET/ROW' passing xmltype
5 (
6 bfilename('SDAARBORDIRLOG', 'emp_details.xml')
7 , nls_charset_id('AL32UTF8')
8 )
9 columns empno number path 'EMPNO'
10 , ename varchar2(6) path 'ENAME'
11 , job varchar2(9) path 'JOB'
12 , mgr number path 'MGR'
13 , hiredate varchar2(20)path 'HIREDATE'
14 , sal number path 'SAL'
15 , com number path 'COM'
16 , deptno number path 'DEPTNO'
17 );
EMPNO ENAME JOB MGR HIREDATE SAL COM DEPTNO
7782 CLARK MANAGER 7839 09-JUN-1981 2450 0 10
7839 KING PRESIDENT 17-NOV-1981 5000 0 10
SQL> -
Loading an XML file into a database table.
What is the convenient way to parse XML data present in a data file in server?
Hi;
Please check:
http://riteshkk2000.blogspot.com/2012/01/loadimport-xml-file-into-database-table .html
http://docs.oracle.com/cd/E18283_01/appdev.112/e16659/xdb03usg.htm#BABIFADB
http://www.oracle.com/technetwork/articles/quinlan-xml-095823.html
Regard
Helios -
How to load a XML file into the database
Hi,
I've always only loaded data into the database by using SQL-Loader and the data format was Excel or ASCII
Now I have to load a XML.
How can I do?
The company where I work has Oracle vers. 8i (don't laugh, please)
Thanks in advance!Hi,
Tough job especially if the XML data is complex. The have been some similar question in the forum:
Using SQL Loader to load an XML File -- use 1 field's data for many records
SQL Loader to upload XML file
Hope they help.
Regards,
Sujoy -
Help for loading of XML File into Oracle 10.2 DB.
Hello People,
I need help with below XML File, I need to get it loaded into Oracle 10.2.After brainstorming I could have figured out 2 best ways to do so :
1.Through ctrl file and log file using SQL Loader
2.Using XQuery and XML datatype.
Tried with option 1 but dint succeed.Could you please help me out with a solution of the same ??
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
- <sta:entity-data xmlns:sta="http://www.vendavo.com/omi/StandardDeal" xsi:schemaLocation="http://www.vendavo.com/omi/StandardDeal StandardDeal-ImportAgreement 100912 - Updated.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <StandardDeal>
<IsImported>true</IsImported>
<ModelNReferenceID>00144105-009-000</ModelNReferenceID>
<DealName>00144105-009-000CV Magellan Arteriocyte Inc 1164385</DealName>
<AccountGroup>SoldTo</AccountGroup>
<CustomerSalesData.VCustomer.VName>0001164385</CustomerSalesData.VCustomer.VName>
<DistrictManager />
<MultipleSalesReps>false</MultipleSalesReps>
<OnBehalfOf>Brian Smith</OnBehalfOf>
<FOBDestination>false</FOBDestination>
<ConsultingGroupInformation />
<AgreementStartDate>11/15/2007</AgreementStartDate>
<AgreementEndDate>12/31/2013</AgreementEndDate>
<BaselineReviewDate>01/10/2013</BaselineReviewDate>
<BaseLineReviewPeriod>Quarterly</BaseLineReviewPeriod>
<RequestedDate>10/12/2012</RequestedDate>
<RFPDueDate>10/12/2012</RFPDueDate>
<WaiveFreight>false</WaiveFreight>
- <HeaderDiscountPercentageoffALP>
- <VPercentage documentId="1">
<Amount>0</Amount>
</VPercentage>
</HeaderDiscountPercentageoffALP>
<CustomerCommitmentType>Others</CustomerCommitmentType>
<ManualApproval>true</ManualApproval>
<LegalReviewRequired>false</LegalReviewRequired>
<TechnologyClause>false</TechnologyClause>
<ComplianceTracking>false</ComplianceTracking>
<ComplianceStatus>false</ComplianceStatus>
<VState.VLabel>draft</VState.VLabel>
<Eval>false</Eval>
<CustomerAccepted>true</CustomerAccepted>
<VNotes>CV Magellan Arteriocyte Inc 1164385</VNotes>
- <VItems>
- <StandardDealLineItem documentId="5235485">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235486">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235487">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235489">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235490">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235491">
<IsImported>true</IsImported>
<VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235493">
<IsImported>true</IsImported>
<VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235494">
<IsImported>true</IsImported>
<VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235495">
<IsImported>true</IsImported>
<VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235497">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309604</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235498">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309604</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235499">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309604</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235501">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309653</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235502">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309653</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235503">
<IsImported>true</IsImported>
<VCatalogEntity.VName>309653</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235505">
<IsImported>true</IsImported>
<VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235506">
<IsImported>true</IsImported>
<VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>19</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>05/31/2009</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
- <StandardDealLineItem documentId="5235655">
<IsImported>true</IsImported>
<VCatalogEntity.VName>AMS300</VCatalogEntity.VName>
<PricingCPG>Magellan</PricingCPG>
- <ExpectedAnnualQuantity>
- <VQuantity>
<VAmount>1</VAmount>
<VUOM>EA</VUOM>
</VQuantity>
</ExpectedAnnualQuantity>
<EffectiveFrom>11/15/2007</EffectiveFrom>
<DurationMonths>74</DurationMonths>
<PercentageBase>false</PercentageBase>
<DiscountALP>N/A</DiscountALP>
- <DiscountPercentage>
- <VPercentage documentId="2">
<Amount />
</VPercentage>
</DiscountPercentage>
<ProposedAgreementPrice />
- <CustomerRequestedPrice>
- <VMoney documentId="4">
<Amount />
</VMoney>
</CustomerRequestedPrice>
<Monthly>No</Monthly>
<PpaNoCap>N/A</PpaNoCap>
- <ProjectedMarketShare>
- <VPercentage documentId="5">
<Amount>0</Amount>
</VPercentage>
</ProjectedMarketShare>
<CustomerCommitted>Yes</CustomerCommitted>
<VValidity.from>11/15/2007</VValidity.from>
<VValidity.to>12/31/2013</VValidity.to>
<VState.VName>draft</VState.VName>
</StandardDealLineItem>
</VItems>
</StandardDeal>
</sta:entity-data>
Regards,
Ekta1.Through ctrl file and log file using SQL LoaderPlease clarify :
Do you want to load the entire file into a single column (XMLType or CLOB), or do you want to extract XML data and store it into different relational columns?
Please also edit your first post and use tags to enclose the XML source, and do not copy/paste directly from your browser, use "view source" feature so that the content doesn't retain navigation characters (+/-).
Edited by: odie_63 on 11 nov. 2012 13:20 -
Loading multiple XML files into one XMLList
I am working on an app where I will load a list of recipes. Each recipe is an XML file. I would have an XML file that lists the filenames that need to be loaded. I am assuming in can use one HTTPService and loop through this list, and set the url and do myService.send() until all the xml files have been loaded and concatenated into one xml list. True?
My main question here is how do I load each XML file and add it to the same XMLList?
Assume each XML file's root tag is <recipe>. I want to create an XMLList with the root <recipes> with each <recipe> as a first child.
Thanks.Why don't you use the Data centric workflows which will help you to deal with multiple XML files as AS objects? Something like this
1. Create a HTTPService using Data menu -> Connect to HTTPService
2. create a operation getRecipe and enter your URL example URL: http://myserver/recipe?name=recipename
3. Use Configure Return Type to tell that this method returns a Recipe class
4. Use DataBinding to bind the result of this to a DataGrid
Call the following in a loop and
recipeName = myRecipes+ // All of your recipe names, Recipe is a ArrayCollecition
Recipe.setAt(i) = Svc1.getRecipe(recipeName);
At the end you would have a Recipe[]
This is one of the ways you could work instead of having a XMLListCollection and use e4x etc. to go through your collection.
Let us know if this helps, or you are looking for something else.
Thanks
-Sunil -
Loading a XML-document into tables
Hi,
I have created a view for the tables below.
Table Book with columns:
- Book_ID
- Book_Name
- Ref_To_Price ( -> is a reference to Table Price (Price_ID))
Table Price with columns:
- Price_ID
- Price_DM
SQL-Syntax:
"create view Bookprice as select Book_ID, Book_Name, Ref_To_Price, Price_ID, Price_DM from Book, Price where Ref_To_Price = Price_ID; "
XML-Document:
<?xml version="1.0" encoding="UTF-16"?>
<!DOCTYPE ANWENDUNGEN SYSTEM "file:/E:/book.dtd">
<!-- ?xml-stylesheet href="book.xsl" type="text/xsl"? -->
<ROOTDOC>
<ROW>
<BOOK_ID>66-77</BOOK_ID>
<BOOK_NAME>JavaScript</BOOK_NAME>
<REF_TO_PRICE>12</REF_TO_PRICE>
<PRICE_ID>12</PRICE_ID>
<PRICE_DM>25.50DM</PPRICE_DM>
</ROW>
</ROOTDOC>
If I use the XML SQL Utility to insert the XML-Document, the following error message came up:
" Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: java.sql.SQLException: ORA-01776: cannot modify more than one base table through a join view "
Can anyone help me, please ?
nullHi,
This is a classic join view problem, where u cannot update two tables in one shot. The main problem is that ur two tables are not normalized correctly. Why can't they be in just one table?
OK, if that is not possible, then the best way out is to create a simple INSTEAD OF trigger on the view which will insert correclty,
e.g.
CREATE TRIGGER bookprice_tr INSTEAD OF INSERT ON Bookprice FOR EACH ROW
BEGIN
insert into Book values (:NEW.Book_id,
:NEW.Book_name, :NEW.Ref_to_Price);
insert into Price
values(:NEW.Price_ID, :NEW.Price_DM);
END;
Hope this helps,
Murali -
Loading a falt file into table using sqlloader
I have a flat file (csv/txt) which has a header and a trailer record
I want to load it using SQLLoader , i want to skip this trailer/footer record.
Please suggest , due to some business rules i cannot use WHEN clause
I am on Oracle 11gWell, maybe you'll get better help in theses spaces then, ODI is not really my cup of tea:
Data Integrator
https://forums.oracle.com/community/developer/english/oracle_database/export_import_sql_loader_%26_external_tables -
Upload an XML file into the Internal table
Hi Guys,
I want to know, how to upload an xml file into the Internal table through ABAP programmingyou just wanted to load the xml file into internal table (as a table of binary strings)or load the xml data mapped to itab row columns
for the first one you can simply use gui_upload
and for the second one you need to load the xml file using gui_upload and use XLST program to transform into an itab
Regards
Raja -
How to load XML file to table (non-XML) with SQL*Loader -- issue with nulls
I have been attempting to use SQL*Loader to load an XML file into a "regular" Oracle table. All fields work fine, unless a null is encountered. The way that nulls are represented is shown below:
<PAYLOAD>
<FIELD1>ABCDEF</FIELD1>
<FIELD2/>
<FIELD3>123456</FIELD3>
</PAYLOAD>
In the above example, FIELD2 is a null field and that is the way it is presented. I have searched everywhere and have not found how I could code for this. The issue is that if FIELD2 is present, it is coded like: <FIELD2>SOMEDATA</FIELD2>, but the null is represented as <FIELD2/>. Here is a sample of the control file I am using to attempt the load -- very simplistic, but works fine when fields are present:
load data
infile 'testdata.xml' "str '<PAYLOAD>'"
TRUNCATE
into table DATA_FROM_XML
FIELD1 ENCLOSED BY '<FIELD1>' AND '</FIELD1>',
FIELD2 ENCLOSED BY '<FIELD2>' AND '</FIELD2>',
FIELD3 ENCLOSED BY '<FIELD3>' AND '</FIELD3>')
What do I need to do to account for the way that nulls are presented? I have tried everything I could glean from the web and the documentation and nothing has worked. Any help would be really appreciated.I hadn't even got that far. can you direct me to where the docs are to import data that is stored within xml but that you don't need any xml functionality, that just happens to be the format the data is stored in? thx
Maybe you are looking for
-
My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back. It's the same for all icon and websites, does anyone know how to restore
-
JSP Dyn Page want to display "Loading..." img + message
Hi, we have EP6 SP2 environment. I have a JSPDynPage component that does a lot of preprocessing then loads the jsp page. Most of the time it spends in doProcessBeforeOutput() (has to connect to 2 backends and pull some data out). it is very slow load
-
STATSPACK Performance Question / Discrepancy
I'm trying to troubleshoot a performance issue and I'm having trouble interpreting the STATSPACK report. It seems like the STATSPACK report is missing information that I expect to be there. I'll explain below. Header STATSPACK report for Database
-
Please, is my answers correct??
Good day every body, In my last exam in Java, the teacher gave me a ready code and asked to find ten erron in it. the code and my anseres as underlined below: Public Class box x int [] = new int (5); int y [] = new int [10]; length dou
-
Homepage will not rotate but apps do
Homepage will not rotate but apps do