Load data from XML doc
We receive an xml file that contains the following:
<SAMPLE> SAMPLE_ID="123" PRODUCT_CODE="B222" IMPORT_FLAG="N" COUNTRY_ORIGIN="US" </SAMPLE>
This info should be stored into SAMPLE table which has SAMPLE_ID, and PRODUCT_CODE, IMPORT_FLAG, and COUNTRY_ORIGIN columns.
Is there any Oracle XML tool that can map the info inside the tag to the columns in the SAMPLE table?
Or should we modify the xml file to the following format before we store it into the SAMPLE table?
<SAMPLE>
<SAMPLE_ID>123</SAMPLE_ID>
<PRODUCT_CODE>B222</PRODUCT_CODE>
<IMPORT_FLAG>N</IMPORT_FLAG>
<COUNTRY_ORIGIN>US</COUNTRY_ORIGIN>
</SAMPLE>
Thanks, Diana
You need to create an XSLT Transformation that transforms the sample format in attributes to elements, then use
the XML SQL Utility to insert it.
Or, you can use an XSQL Page to automate these steps. If your transformation
is called "t.xsl" and your source
Xml document is called "src.xml"
then if you build an XSQL Page
named "doit.xsql" like this:
<xsql:insert-request transform="t.xsl" table="yourtable"
xmlns:xsql="urn:oracle-xsql"/>
Then you can use the XSQL Command-line
utility to transform and insert your
"src.xml" data with:
$ xsql doit.xsql posted-xml=src.xml
Similar Messages
-
Load data from XML files into BI
Hi All,
Can any one guide me through the steps which involve in loading data from XML files into BI?
Thanks
SantoshHi James,
I have followed upto step No: 12 .
Please could you let me know how to link the XML file on my local drive to BI,
I am not able to find figure out where to specify the path of the XML file to be loaded into BI.
Thanks In Advance
Regards,
San
1. Create a Infosource(ZIS), with transfer structure in accordance with the structure in the XML file. (You can open the XML file with MS Excel.This way you can get to know the structure).
2. Activate the transfer rules.
3. After activation ;from the Menu Bar , Select Extras>Create BW Datasource with SOAP connection.
4.Now Activate the Infosurce again, this creates an XML based Datasource(6AXXX...)
5.These steps would create two sub nodes under the Infosource(ZIS).
6.Select Myself system and create a data package and execute it run in Init mode(without Data Transfer).
7. This would create an entry in RSA7(BW delta Queue)
8. Again create another Delta Infopackage under it, and run it. Now the Datasource(6AXXXXXX..) would turn green in RSA7.
9.In Function builder(SE37) select your FM( do a search ,F4, on the datasource 6AXXX....) .
10.Inside this RFC based FM , from the Menu Bar select Utilities>more Utilities>Create Web services>From Function module.
11.A wizard will guide you through the next steps .
12.once this is done a Web serrvice would be enabled in WSADMIN. Select your FM and execute it.
13.From here you can upload the data from XML file into BW delta queue.
Edited by: Santosh on Nov 30, 2008 2:22 PM -
Load data from xml file in oracle data base
Hi all,
I'd like to know if is posible to load data from a file xml into a table of oracle data base through SQL*LOADER, loaded only in a normal column no with type XMLType , for example
I have a xml file
<person name="kate" surname="fari" city="new york" >
<son name="faus" age="18"/>
<son name="doly" age="10"/>
</person>
and I load in table :
table :person
column
name surname city
kate fari new york
table : son
name age
doly 10
faus 18
thank you for your return !!!!!!!!!
Ninova
Edited by: user10474037 on 30 mai 2011 08:47
Edited by: user10474037 on 30 mai 2011 08:48
Edited by: user10474037 on 30 mai 2011 08:48
Edited by: user10474037 on 30 mai 2011 08:49
Edited by: user10474037 on 30 mai 2011 08:50Hi
This May be found at
SQL Loader to upload XML file -
Problem in load data from XML in Flex 4
Hi Everyone,
I tried all the possible ways which ever i know to load the data from XML to Flash Builder (Flex 4). Actually i want to load the data from XML to Datagrid. The project is executed without any error and warnings but the data is not loaded into datagrid. i will paste the coding below if anyone know the solution please let me know. Waiting for reply.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="userRequest.send(); ">
<fx:Declarations>
<s:HTTPService id="userRequest" url="xdata.xml" useProxy="false" resultFormat="e4x" />
</fx:Declarations>
<mx:DataGrid id="dgUserRequest" x="20" y="160" dataProvider="{userRequest.lastResult.user}" >
<mx:columns>
<mx:DataGridColumn headerText="User ID" dataField="id"/>
<mx:DataGridColumn headerText="User Name" dataField="name"/>
</mx:columns>
</mx:DataGrid>
</s:Application>It is better to add result handler to the HttpService and debug to see the actual structure of the xml.
-
How to load data from XML DOM into tables using Business Components
<p>
Hi,
</p>
<p>
I need to upload XML file (it's not a problem) an load data (DOM tree) from this file into relationan tables. This filelooks like this:
</p>
<p>
<font face="courier new,courier" size="2"><Departments>
<Department>
<DepartmentName>OPERATIONS</DepartmentName>
<Localization>BOSTON</Localization>
<Employees>
<Employee>
<LastName>TURNER</LastName>
<Job>SALESMAN</Job>
<Manager>7698</Manager>
<HireDate>1981-09-08</HireDate>
<Salary>1500</Salary>
<Commerce>0</Commerce>
</Employee>
</Employees>
</Department>
</Departments></font>
</p>
<p>
Is there any Business Components support to obtain this ? What about primary and foreign keys values (there is no in XML file). How to place this XML data in appropriate tables ?
</p>
<p>
Kuba
</p>Pl post details of exact OS and database versions, along with a sample of the XML file and description of the tables. What have you tried so far ?
http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005614
HTH
Srini -
Loading data from XML hosted on a site accepted by Apple?
I'm about to start working on an App that holds the template and code to build the stuff. It gets its level design, variables and other things from an XML hosted on a website/server. The app will also load pictures from the website/server to be displayed in the app. So, what people download is the "shell". Would Apple allow this app into the app store? Considering I've read how they don't allow external code to be loaded into the app, or is this only limited to code inside external swfs?
I did search before I posted and read only the threads that seemed to cover what I wanted to know. As replies here are rare I decided to read ALL threads I got from my search and actually found one with the answer, sort of, as he doesn't say if he loads variables, which to me is like code , but I hope Apple will be ok with my app loading external stuff through an external xml aswell, like they were for this guy:
http://forums.adobe.com/message/3868894#3868894
* I'm loading xml-data and pictures (like icons for other apps) from an external server into the app, to promote our other apps. Works like a charm and apple had no problem with this. -
Loading data from xml file - please help
Hi, I am new to attempting to get data from an xml file load
in flash. I followed a tutorial in a new fla and it seemed to work
fine, I then tried to adapt it to my own needs which worked fine.
But then when trying to implement this into my news section it
doesn't seem to work.
I am trying to make a news section, that displays the date
and news article. This is in within a movie clip, I even tried
putting it in the timeline of the scene but still nothing.
- I have 2 dynamic text boxes, date_txt and news_txt
- The xml file is named news.xml,
- both the fla and the xml are in the same folder
This is the actionscript I am using:
function loadXML(loaded) {
if (loaded) {
_root.thedate =
this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.thenews =
this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
date_txt.text = _root.thedate;
news_txt.text = _root.thenews;
} else {
trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("news.xml");
This is what I have in the xml document:
<?xml version="1.0"?>
<news>
<article>
<date>date</date>
<news>newentry.</news>
</article>
<article>
<date>Doug Engelbart</date>
<news>Invented the mouse at the Stanford Research
Institute</news>
</article>
</news>
Does anyone perhaps have any ideas of what the problem could
be?
Help much appreciated.Hi
_root refers to the Main Timeline, if your date_txt and
news_txt are in a movieclip ie: news_mc
then your path should read _root.news_mc.date_txt.text and
_root.news_mc.news_txt.text
You will also need to embed the characters you wish to use
inside your dymanic text for it to show.
Hope it helps -
Error when loading data from xml file
Hi,
I'm trying to load data into a table from XML file using ApEx DATA UNLOAD/LOAD interfaces .
ApEx version is 3.0.1 .
I'm getting this error:
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00222: error received from SAX callback function
How to find cause of the error ?
JanusTkank you for the simple but good advice :)
unfortunately even google didn't find many answers :
LPX-00222 + APEX ... NOTHING
LPX-00222 + ORA- ... 2 pages of something like
"Examine the additional error messages and take corrective action" -
Srollpane scrolls when loaded data from XML, not when loaded data from ASP
Hi,
I load into scrollpane a swf, which has a dynamicly loaded
data. If I use the XML file, it works (the scrollbar is visible),
but if I use a asp file, which creates xml, it doesn't work (the
scrollbar is not visible). Any ideas?Hi,
let say I have a A.swf and a B.swf. In A.swf I have a
scrollpane in to wich the B.swf is loaded. Below is the code in
B.swf. If I load the data from a asp file, the scrollbar in the
scrollpane is not visible, but if I use the xml file, the scrollbar
is visible.
What I've meant is that I think that Flash gets the same form
of data, no matter if I use the asp or xml, because the asp creates
the same xml form as I use in the xml file. I hope this makes any
sense. -
Beginner here: I have a lot of data saved in xml (here is the
format -Country,Region -child of country,States-child of Region,
and Counties -child of States).Within each node I have a
description of the county/state/region and census data. I would
like to be able to have the data in the xml displayed either when I
hover over a county or the user choosing the county via a combo
box. My question is :ist his possible? Is there some example
someone has that you could point me to? I am not asking for someone
to write this for me but provide any guidance that you are able to
provide.
Thanks in advance.This is a pretty good article that might help out as well:
http://flashspeaksactionscript.com/loading-xml-data-using-as3/ -
Issue to load data from database to XML file. error: ODI-40768
Hi,
While I am trying to load data from database to XML following error is appearing.
ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
at java.lang.Thread.run(Thread.java:662)
jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
physical schema: TESTSQL
Knowledge modules are:
LKM: LKM SQL to SQL
IKM: IKM XML Control Append
CKM: CKM SQL
Parameters set are:
CREATE_XML_FILE: true
XML_PATH:<default>:C:\DATA_FILE\www.xml
I have tried to change the directory path but error is still there.
Could some one please help me to resolve the issue?
Regards,
user1672911Hi,
The trouble in "<default>:" - if you set XML_PATH as C:\DATA_FILE\www.xml instead <default>:C:\DATA_FILE\www.xml- it will work correctly.
Greetings,
Eugene -
How to load data from oracle table to XML using ODI ?
Hello Team
I am trying to load data from an oracle table to an xml file. I have configured the physical and the logical schemas for the same. I have used SQL to SQL as LKM and SQL to SQL Append as IKM with Sunopsis Memory Engine as staging area.
After this, when I am executing the interface, it is executed without any errors but to my surprise I am not finding the relevant data in the xml file. What could be the reason ?
Please look into this and lemme know how to solve it.
Thanks.908458 wrote:
Hello Phanikanth
Even IKM SQL Control Append is not solving the problem. There are many " order columns" in the target xml table. I have not mapped them or specified any order. Does the problem persist because of this ?
Thanks
Manoj
Ocle to XML file loading issue in ODI 10.1.3.5 -
Loading data from a flatfile versus xml
As of now we are loading data from the AS400 by using flatfiles.
For the sake of uniformity and flexibility we want to start using xml instead of flatfiles.
But for what I have seen the loading of xml seems to be a lot slower then flatfiles.
I think I have to chose between two options
Loading infto xlmldb - XMLTYPE
or
make use of DBMS_XMLSTORE.
I think it would be best to use the pl/sql package because we will not need extra storage for the xml table and then the fastest way should be dbms_xmlstore since it is written in c.
If someone can come up with another, faster way, fine with me.
If I want to use the package I have the following problem.
I know how to tell which columns to load but my source xmlfile needs to be stored in at least 2 tables.
It was possible with wb_xml_load but I think dbms_xmlstore is the faster solution.
Can anybody tell me how to proceed?
A little performance degradation is OK but we still need to load lots of data, so the faster the better.
regards.Hi Priya
There is a post on leveraging XDB with some interesting details;
http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html
Cheers
David -
How to load data from PSA to CUBE & DSO at a time using DTP in BI 7 ?
HI all,
I am new to BI 7 . How to load the data at same time to DSO & INFO CUBE using DTP.
Please provide me steps to load & plz specify which update mode I have to use ( FULL OR DELTA ) which one is best.
Plz Suggest me.
Thanks & Regards,
Kiran m.
Message was edited by:
kiran manyamBelow are the basic steps which we follow in any BI 2004S system:
1)Create datasource. Here u can set/check the Soucre System fields.
2)Create Transformation for that datasource. (no more update rules/transfer rules)
2.1) While creating transformation for DS it will ask you for data target name, so just assign where u want to update ur data.
DataSource -> Transformation -> Data Target
Now if you want to load data into data target from Source System Datasource:
1) Create infopackage for that data source. If you are creating infopackage for new datasources, it will only allow you update upto PSA, all other options u can see as disabled.
2)Now Create DTP (Data Transfer Process) for that data source.
3) NOw schdule the Infopackage, once the data is loaded to PSA, you can execute your DTP which will load data to data target.
If you are loading data from one one data target to other, no need to use PSA, you can directly execute DTP in that case.
Data Source -> Transformation (IP/DTP) -> Data Target1 -> DTP ->Data Target 2
Use the below link for detailed example:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fc61e12d-0a01-0010-2883-e2fc63ef729b
Infosources are no more mandatory with BI 7.0, below is the link to scenarios where we use infosources:
http://help.sap.com/saphelp_nw04s/helpdata/en/44/0243dd8ae1603ae10000000a1553f6/content.htm
Full or delta depends on your requirement...
chk the below thread to know better
difference between the various loads
hope it helps
Message was edited by:
sriram viswanathan -
Source System Creation in BI to load data from ECC 6.0
Our ECC 6.0 and BI 7.0 is one server. I would like to load data from ECC 6.0 to BI. How to create source system? I have source system for flat file and Data Mart (Myself source system) but don't know how to create source system to laod data from ECC 6.0. Please provide step by step guide.
Thanks.Check here:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0751ba5-b7a8-2b10-6d97-e91e85c0fafa
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0087780d-81b0-2a10-eb82-86e1062f1a2d
http://www.saptechies.com/connectivity-file-system-in-sap-bi/
http://help.sap.com/bp_biv370/html/index.htm
Thanks...
Shambhu
Maybe you are looking for
-
How do I upgrade camera raw codecs in adobe cs 5
How do I upgrade The CAMERA RAW CODECS in Adobe CS5?
-
JDBC and FTP sender channels stop polling
Hi, We have a great volume of sender JDBC and FTP sender channels. For this reason there is nothing unusual to have temporary error connections. Several months ago, with an XI 3.0 system, sender channels recover its functionality automatically when
-
[Solved] Is there any good alternative to nethogs?
Hi people! Nethogs is a good program to see the traffic speed but it blinks and doesn't show speed correctly. I mean the output is not accurate, not like in netspeed-applet for Gnome. I need something very similar to nethogs which doesn't blink and d
-
Switchboard performance reports
I have CUCM 7.1.3 and I'm trying to locate something in CAR to report on how many calls are being abandoned. Customers are complaining that no one is answering the phone and the operator are saying they never miss a call. Any help is appreciated. T
-
Adobe thinks I live in different country! Not able to correct them! Help!
While trying to purchase creative cloud I'm informed that it's not provided for my country. My country? I live in the US. I go to my account information to check my address and all I see under "country/region" is uneditable text saying, "United State