How to import the XML file into an oracle table using a BPEL process
Hi friendsHow can I import XML file in the db oracle table using a BPEL process
(1) I have generated an XML file in my local system with a field
(2) I created a temporary table in my oracledb with the same field in the XML file
(3) that I want to import these XML files which is the local host to my db oracle using a BPEL process
(4) for that what steps should I me fallow please suggest me if there is no document for this?
Thanks in advance
AT
Hi to
Here you go...
http://blogs.Oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
I hope that helps!
Thank you
AJ
Tags: Fusion Middleware
Similar Questions
-
How to import the xml file into bcc?
My input to atg file is xml containing assets of category or products.
I want the Scheduler to run to auto create a project and send an e-mail to the customer for approval.
When the client approves the xml file, and then run the Scheduler to get the data from the xml file into bcc.
I use: SingletonSchedulableService for this
Give me a direction for the same thing.
Thanks in advance.
I want to implement this in bcc.
What listener will listen to the authorization of the client for email (that contains the XML to import) we sent to him?
You will need to do a custom development to hang your workflow customized with incoming e-mail. To send notifications by mail electronic action is already there, and while creating his element within the ACC, you can specify a JSP page for the email template. You can view the rest of the relevant documents:
Oracle, Web ATG Commerce - Workflows
Oracle, ATG trade Web - action workflow items
I recommend you to consult the existing source of DeploymentEmailer in
\Publishing\samples\Java and see different types of DeploymentEvent and States can be used, based on your requirement in your custom component. See also these API javadocs for the process and the events of deployment available: DeploymentEvent (ATG Java API)
DeploymentServer (ATG Java API)
ATG has a component/atg/dynamo/service/POP3Service to retrieve messages from a POP3 e-mail server, but it is mainly used to detect the bounced email. Not too sure if it helps or adjustment in your case, but still you can go through all the details to know what is already there:
Bounced from Oracle ATG Web Commerce - E-mail
You can also check the event InboundEmail and API javadocs for InboundEmailMessage which are used in this function of rebound detection E-mail:
Oracle, ATG trade Web - InboundEmail event
InboundEmailMessage (ATG Java API)
Now based on all this, if you extend and customize a lot of things, that it would be little complex and tedious detect mail incoming approval based on its content and then advance your workflow. Another approach may be to put a URL in the e-mail template of your notification by e-mail that the approver will click and on the landing page, you can authenticate and advance your workflow to the needs.
-
A query when importing an XML file into a database Table
Hello
I create an ODI project to import an XML file into a database using the following link Table.With
http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/FMW/ODI/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
I am facing a problem when creating physical Schema for the XML Source model.
For the
Schema (Schema)
and
Schema field (scheme of work) that they have chosen to GEO_D.
What GEO_D here?
or
What should I select here?
(1) the XML schema (NB:-J 'I havn' t created any file .dtd for my file .xml or .xsd)
or
(2) my diagram of target servers
Please tell me what I do?
Thank youand
Schema field (scheme of work) that they have chosen to GEO_D.
What GEO_D here?Is the schema specified in the XML file name.
What should I select here?
(1) the XML schema (NB:-J 'I havn' t created any file .dtd for my file .xml or .xsd)Yes
(2) my diagram of target servers
Please tell me what I do?
Thank you -
Load the XML file into oracle DB using OWB
Hi friends,
I'm new XML data.
I had a requirememnt to load the xml file into an oracle table.
Can someone procedure to load the data.
Thanks in advancesee this
http://blogs.Oracle.com/warehousebuilder/2007/09/leveraging_xdb.html
-
Load the XML file into Oracle external Table
I load the data from the XML file into an intermediate table Oracle using external Tables.Let's say below, it is my XML file
< header >
< A_CNT > 10 < / A_CNT >
< E_CNT > 10 < / E_CNT >
< AF_CNT > 10 < / AF_CNT >
< / header >
< student >
<>students-details
< Student_info >
< Single_Info >
< ID > 18 / < ID >
New York < City > < / City >
< country > United States < / country >
< Name_lst >
< Student_name >
Samuel < name > < / name >
Paul < Last_name > < / Last_name >
< DOB > 19871208 < / DOB >
Aware of < RecordStatus > < / RecordStatus >
< / Student_name >
< Student_name >
Samuel < name > < / name >
Paul < Last_name > < / Last_name >
< DOB > 19871208 < / DOB >< TerminationDt > 20050812 < / TerminationDt >
History of < RecordStatus > < / RecordStatus >
< / Student_name >
< / Name_lst >
< Personal_Info >
<>men < / Type >
< 27 > < / Age >
< / Personal_Info >
< / Single_Info >
< / Student_info >< student - register >
class < A >
< info >
< detail >
< ID student > 18 < / student >
EE < major > < / Major >
< course-Grades >
< course > VLSI < / course >
< degree > 3.0 < / Grade >
< / course-Grades >
< course-Grades >
< course > nanotechnology < / course >
< degree > 4.0 < / Grade >
< / course-Grades >
< / details >
< detail >
< ID student > 18 < / student >
THIS < major > < / Major >
< / details >
< / info >
class < A >
< Student_Enrol >
<>students-details
< student >I load this XML data file into a single table using an external Table. Could someone help me please with coding.
Thank you
Reva
Could you please help me how to insert my XML content into that.
Same as before, try a plain old INSERT:
insert into xml_pecos
values)
XmlType (bfilename ('XML_DIR', "test.xml"), nls_charset_id ('AL32UTF8'))
);
But you'll probably hit the same limitation as with the binary XMLType table.
In this case, you can use FTP to load the file as a resource in the XML DB repository.
If the XML schema has been registered with the hierarchy enabled then the file will be automatically inserted into the table.
Could you post the exact statement that you used to save the scheme?
In the meantime, you can also read this article, I did a few years ago, it covers the XML DB features that may be useful here, including details on how to load the file via FTP:
https://odieweblog.WordPress.com/2011/11/23/Oracle-XML-DB-a-practical-example/
And documentation of the course: http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb06stt.htm#ADXDB4672
-
I can't seem to figure out how to import multiple XML files in Flex
I can't figure out how to import multiple XML files in Flex and connect it to the DataGrids. Does anyone have ideas how to make this happen?
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >
< s:creationComplete >
<! [CDATA]
loader.addEventListener (Event.COMPLETE, getData);
loader.load (new URLRequest ("http://www.student.hint.no/~100471/mmt134/images/Reiseregning-Konradi_Kare_2011-01-30.xml"));[]] >
< / s:creationComplete >
< fx:Declarations >
<! - Place non-visual elements (e.g., services, items of value) here - >
< / fx:Declarations >
< fx:Script >
<! [CDATA]
var testData:XML;
var loader: URLLoader = new URLLoader();public void getData(E:Event):void {}
testData = new XML (E.currentTarget.data);
grid.dataProvider = testData.descendants ('TravelSpecificationVO');
}
[]] >
< / fx:Script >
< mx:TabNavigator "22.7" = x y = '39.35' width = '536' height = "312" >
< s:NavigatorContent label = "Tab 1" width = "100%" height = "100%" >
< mx:DataGrid = "1.3" x = "-2.35" width = "507" height = "269" id = "grid" >
< mx:columns >
< mx:DataGridColumn dataField = "to_destinasion" headerText = "Til destinasjon" / >
< mx:DataGridColumn dataField = "from_date" headerText = "Klokkeslett" / >
< mx:DataGridColumn dataField = "from_destinasion" headerText = "Fra destinasjon" / >
< mx:DataGridColumn dataField = "to_date" headerText = "Klokkeslett" / >
< / mx:columns >
< / mx:DataGrid >
< / s:NavigatorContent >
< s:NavigatorContent label = "hkuhk" width = "100%" height = "100%" >
< / s:NavigatorContent >
< / mx:TabNavigator >
< / s:Application >Hope this helps you:
Let me know if you need additional information.
Best regards
Pablo Souza
-
How to import the mp4 files, it does not work on my mac
How to import the mp4 files, it does not work on my mac
If you try to import a video to use as a guide in your timeline, the video must be H.264 with AAC audio. You cannot use the other MP4 videos with other codecs (such as the MPEG-4 video codec).
-
How to import the .sql file in oracle apex?
I am new to oracle apex...
How to import the .sql file in oracle apex?
I have to import a table in apex...
This script I have to write in the .sql file...
pls help...
Published by: 794244 on January 31, 2011 21:31Hi Manu
You can import and browse workshop SQL, SQL Scripts .sql files. If you have multiple SQL statements in your script, make sure that they are separated by the / character
Andy
-
Import an XML file into flat table
Yhe, I am completely new to XML and I try to import a file into a flat table.
I import a file with the xsd:
https://www.ediel.se/EdielPortal/service/CompanyExport.xsd
I am writing a question as simple as possible, but I'm stuck.SELECT *.
FROM XMLTABLE ('/ firms/market/society ' PASSAGE)
XMLTYPE (bfilename ('SVK_COMPANIES', 'test.xml'), nls_charset_id('ISO-8859-1'))
COLUMNS
path of varchar2 (60) namn "name."
["path of varchar2 (5) edielno ' IdentificationKeys/Key[@Type="EdielId ']',
["path of VARCHAR2 (3) svkid ' IdentificationKeys/Key[@Type="SvKId ']',
["path of varchar2 (1) typ_n ' Roles/Role[@Type="Netowner ']',
["path of varchar2 (1) typ_b ' Roles/Role[@Type="BalanceResponsible ']',
["path of varchar2 (1) typ_l ' Roles/Role[@Type="PowerSupplier ']',
["path of varchar2 (1) typ_o ' Roles/Role[@Type="ASP ']',
path number (5.0) "BusinessFunctions/BusinessFunction[Type="PRODAT"]/@PartyId," prodat_ombud
"[" path of varchar2 (200) email_prodat ' BusinessFunctions/BusinessFunction[Type="PRODAT"]/CommunicationAddress[@Type="SMTP ']"
)The first works well, but does not work the last two. What I am doing wrong?
A few typos I guess?
You are missing the accessor of the attribute ' @' for the Type and the other wrong added on PartyId
path number (5.0) "BusinessFunctions/BusinessFunction[@Type="PRODAT"]/@PartyId," prodat_ombud
"[" path of varchar2 (200) email_prodat ' BusinessFunctions/BusinessFunction[@Type="PRODAT"]/CommunicationAddress[@Type="SMTP ']"
SELECT * FROM XMLTABLE('/Companies/Market/Company' PASSING XMLTYPE(bfilename('TEST_DIR', 'test.xml'), nls_charset_id('WE8ISO8859P1')) COLUMNS namn varchar2(60) path 'Name', edielno varchar2(5) path 'IdentificationKeys/Key[@Type="EdielId"]', svkid varchar2(3) path 'IdentificationKeys/Key[@Type="SvKId"]', typ_n varchar2(1) path 'Roles/Role[@Type="Netowner"]', typ_b varchar2(1) path 'Roles/Role[@Type="BalanceResponsible"]', typ_l varchar2(1) path 'Roles/Role[@Type="PowerSupplier"]', typ_o varchar2(1) path 'Roles/Role[@Type="ASP"]', prodat_ombud number(5) path 'BusinessFunctions/BusinessFunction[@Type="PRODAT"]/PartyId', email_prodat varchar2(200) path 'BusinessFunctions/BusinessFunction[@Type="PRODAT"]/CommunicationAddress[@Type="SMTP"]' ) ; NAMN EDIELNO SVKID TYP_N TYP_B TYP_L TYP_O PRODAT_OMBUD EMAIL_PRODAT ------------------------------------------------------------ ------- ----- ----- ----- ----- ----- ------------ ---------------------------------------------- Ellevio AB 14900 006 1 0 0 0 14900 [email protected]
-
load the xml file into a database to help table of travel point
Hello
Someone help me please with a possible approach. I have an interface for APEX users where users can download a file xml in apex table wwv_flow_files using the element to browse with a button "submit". Now, after loading the xml file in the wwv_flow_files table. I need to read and load the xml data into a table sample_tbl. I'm using the version of Oracle APEX 4.0 and Oracle 10 g R2 database. Here is an example of XML file to load. Please help me possible suggestions.
<? XML version = "1.0" encoding = "UTF-8"? >
< dataroot generated =... >
< MySample >
< KeyId > 1234 < / KeyId >
eddskc < KeyName > < / KeyName >
< scheduleDate > 2013-06-16T 00: 00:00 < / ScheduleDate >
< StartTime > 2013-06-16T 08: 00:00 < / StartTime >
< EndTime > 2013-06-16T 08:30:00 < / EndTime >
< / MySample >
< MySample >
< KeyId > 5678 < / KeyId >
jppdf < KeyName > < / KeyName >
< scheduleDate > 2013-05-19T 00: 00:00 < / ScheduleDate >
< StartTime > 2013-05-19T 08: 00:00 < / StartTime >
< EndTime > 2013-05-19T 08:30:00 < / EndTime >
< / MySample >
< / dataroot >
Thanks in advance.
Thank you
Orton
orton607 wrote:
My sample_tbl has a start_time field and its data type DATE.
Good. Be sure to always store dates as the DATE.
The application (in this case, APEX) needs to format the date date type in the appropriate human-readable format.
The problem with the incoming data is the 't'. You will need to convert a space using REPLACE() in the framework so that your SELECT statement
From there on, conversion to the DATE data type is simply
to_date( replace( start_time_str, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS') as start_time
And, just in case where, the conversion of DATE for the desired format:
to_char( start_time, 'MM/DD/YYYY HH12:MI:SS AM')
Although, I'm 'hours' as being left-padded with zeros... Am I looking for how / if you can get rid of the zero prefix (0).
-
Load the XML file into oracle using sql loader
Hello
I'm trying to load an xml file into a table using sqlldr.
I have a table as follows:
I have a control file that I know is perfectly false:CREATE TABLE xmlloadtable ( id number, data_xml XMLType ) XmlType data_xml STORE AS CLOB;
I googled for the file control and tried in different ways, but of no use.LOAD DATA INFILE '/home/oraread/' INTO TABLE xmlloadtable ( id, data_xml )
I want to load the entire xml file into the table.
Can someone help me with the correct control file. Any help is appreciated!Try this
LOAD DATA INFILE '/home/oraread/' INTO TABLE xmlloadtable (id, file_name filler, data_xml lobfile(file_name) terminated by eof )
You can add the file as a column name field to your table between the id and xml column and remove the word to fill in the .ldr file if you need to keep the name of the file
-
OSB: How to read the xml file, which is in OSB project
Hello
We have a generic proxy (PG1) reporting and deals alerts, this proxy is called in the pipelines of proxies anothers (P1... PN) in several projects. Each client proxy (P1... PN) PN) before call proxy PG1, configures a variable with syntactic alert or report.
We thought it would be a good idea to store the specifications for all the proxies of a project as an xml file, so that the proxy PG could read the xml file. This file will be in the OSB project.
The questions are:
-proxy can read a xml file that is in the OSB project?
S ' Please, are all the documentation for this?
Thank you
Kind regardsYou can always do customization to work with the properties defined in a XML xquery. The key to this is to use the customization of reference instead of find and replace the customization, similar to the service account customizations.
Keep your real estate to as properties_dev of env xquery specific xmls, properties_sit etc then apply customization of service proxy xquery reference reference specific correct env. -
Problem with the date when you load the XML file into Oracle Database 10g
Hi all
I have the interface as shown in the screenshot below. In this document, among other things, I am mapping to an element XML file representing a date to an Oracle table column defined as DATE. The source and target columns are highlighted in the screenshot.
! http://img223.imageshack.us/img223/1565/odiscr275.jpg!
When I run the interface, I get the following error message:
java.lang.IllegalArgumentException to java.sql.Date.valueOf(Date.java:103)
I guess that this is the conversion of the date!
I already tried to replace SRC_TRADES. DEAL_DATE with TO_DATE (SRC_TRADES. DEAL_DATE, ' DD/MM/YYYY') on the implementation tab. This feature was not recognized when I executed the interface, so it did not work! The value of date in the XML file is in the format DD/MM/YYYY .
I guess that Date SQL Oracle functions do not work in the implementation tab. Could someone let me know:
1. what the Date Conversion function I could use instead?
2. where can I find a reference to the methods/functions that I use in the implementation tab (if such a reference exists)?
See you soon.
JamesHello.
Try changing the area of execution at the staging area. Once you change it, write in the map box just SRC_TRADERS. DEAL_DATE. When you use TO_DATE, the source field typu should be varchar2, no date (as it is in store for your data source)
-
Load xml data into an Oracle table
Hello
I went through some threads in the forums itself, but for my requirement that nothing comes closer, I write my request. I have a XML like this
<? XML version = "1.0"? >
< ACCOUNT_HEADER_ACK >
< HEADER >
< STATUS_CODE > 100 < / STATUS_CODE >
Check < STATUS_REMARKS > < / STATUS_REMARKS >
< / Header >
< DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 2 < / SEGMENT_NUMBER >
PR Polytechnic < REMARKS > < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 3 < / SEGMENT_NUMBER >
< REMARKS > PR Polytechnic administration < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 4 < / SEGMENT_NUMBER >
< REMARKS > rp Polytechnique finance < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 5 < / SEGMENT_NUMBER >
< REMARKS > logistics Polytechnique rp < / COMMENTS >
< / DETAILS >
< / DETAILS >
< HEADER >
< STATUS_CODE > 500 < / STATUS_CODE >
< STATUS_REMARKS > process exception < / STATUS_REMARKS >
< / Header >
< DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 20 < / SEGMENT_NUMBER >
Basic Polytechnique < REMARKS > < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 30 < / SEGMENT_NUMBER >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 40 < / SEGMENT_NUMBER >
Finance basic Polytechnique < REMARKS > < / COMMENTS >
< / DETAILS >
< DETAIL >
< SEGMENT_NUMBER > 50 < / SEGMENT_NUMBER >
Logistics base Polytechnique < REMARKS > < / COMMENTS >
< / DETAILS >
< / DETAILS >
< / ACCOUNT_HEADER_ACK >
Here is the xml structure of the master structure and child I want to insert data in Oracle tables using the sql * loader initially tried to create a control file, but I don't know how to terminate in the control file, so I created two control files
load data
INFILE 'acct.xml' ' str ' < / DETAIL >»»
TRUNCATE
in the xxrp_acct_detail table
TRAILING NULLCOLS
(
dummy fill finished by "< DETAIL >."
SEGMENT_NUMBER surrounded by '< SEGMENT_NUMBER >' and ' < / SEGMENT_NUMBER >, "
REMARKS framed by 'Of REMARKS <>' and ' < / COMMENTS >.
)
load data
ACCT.XML INFILE' "str" < / header > ' "»
TRUNCATE
in the xxrp_acct_header table
fields terminated by '< HEADER >.
TRAILING NULLCOLS
(
dummy fill finished by "< HEADER >."
STATUS_CODE framed by '< STATUS_CODE >' and ' < / STATUS_CODE >. "
STATUS_REMARKS surrounded by '< STATUS_REMARKS >' and ' < / STATUS_REMARKS >.
)
I refer to the same xml file in two control files, where with regard to the first control file, I was able to load the files but the second which I suppose as table header not able to load the records of rest. I get the below error.
Sheet 2: Rejected - error on the XXRP_ACCT_HEADER, column DUMMY table.
Field in the data file exceeds the maximum length
Sheet 3: Rejected - error on the XXRP_ACCT_HEADER, column DUMMY table.
Field in the data file exceeds the maximum length
In fact if its possible to seggrate a control file so it will be very useful for me. I'm also open for the external table as option. Please help me in this regard.
Thanks in advance.
Concerning
Mr. NagendraHere are two possible solutions:
(1) reading the headers and separate details using two XMLTables:
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;
All first (alias X 1) retrieves all headers in separate lines. The HEADER_NO generated column is used to keep track of the position of the header into the document.
Then, we join a second XMLTable (X 2), passing HEADER_NO, so that we can access the corresponding items in DETAIL.(2) reading with one XMLTable, but somewhat more complex XQuery:
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 x.* from xmltable( 'for $i in /ACCOUNT_HEADER_ACK/HEADER return for $j in $i/following-sibling::DETAILS[1]/DETAIL return element r {$i, $j}' passing acct_doc columns status_code number path 'HEADER/STATUS_CODE', status_remarks varchar2(100) path 'HEADER/STATUS_REMARKS', segment_number number path 'DETAIL/SEGMENT_NUMBER', remarks varchar2(100) path 'DETAIL/REMARKS' ) x ; END;
Here, we use an XQuery query to extract the information that we need.
Basically it's the same logic as above, but with two nested loops which access each header, then each RETAIL location immediately after in the order of the documents.Here is the link to the documentation XMLTable and XQuery in Oracle:
http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28369/xdb_xquery.htm#CBAGCBGJ -
import the .pst file into Thunderbird that contains the addresses of exported Outlook
I have a .pst on my PC file exported from Outlook that contains all my addresses. How to import in Thunderbird?
I tried earlier import Addressen Outlook into Thunderbird address book, but it does not invite:
There is no default mail client or the current mail client cannot meet demand for Messaging. Outlook has been at this point in time, my e-mail defauls client.
I hope I made myself understood
The usual method:
set Outlook as the default e-mail clientthen in thundrbird:
Tools > import
Select: address books and click Next
Select: Outlook and click NextOtherwise:
In Outlook
Export the address book to a .csv fileThen in Thunderbird
Tools > import
Select: address books and click Next
Select: text file (Ldif, .tabtable, .csv, .txt) and click Next
Find the registered .csv file and click Open
You may need to map the fields.
Maybe you are looking for
-
Satellite Pro U400 - 13G: Modem driver installation failed
Hello I tried to install the drivers for my modem provided by toshiba, but after the execution of the installation utility installation said installation faild. I also tried to use drivers provided by driveragent.com, as well as Windows Update, the s
-
Satellite L500-14 X - battery does not load after upgrading to Win 8
Hello after upgrating my laptop to win 8 battery continues to charge...the message says... "pluged but no current charging"... Any suggestions... except to reinstall win7...?
-
Stuck on the screen of HP recovery and cannot start windows
HP PavilionModel: 17 - 1215dxIf you need the serial number or the fn, just ask. I didn't post too much sensitive information.It was originally 10 64-bit windows... but now has 8.1 Windows 64-biti5 8gig of RAM processorLiterally just close the lid and
-
just bought a new computer. an old crashed. How can I sync my iphone with the new computer? Original title: sync
-
I tried to download updates for a memory creative program that is already installed on my computer, among other things. I recently tried to download music on Amazon, but first had to download the MP3 downloader from here. It won't let me.