Oracle data into BPEL
Hi,
I am new to this forum so pls. pardon me if I am not familier with the rules. I need to know how to integrate DB Adapter data into BPEL rules engine. Actually, based on a status column value in Oracle table this rules engine would guide it to a human task. I need help to do this.
Thx,
Hi
I am exactly working on the same scenario as below and wanted to use the Oracle Apps Adapter
1. Import the CSV files using File Adapter.
2. Move the CSV data into Oracle Staging Table using Databse Adapter.
3. Validate the Record by PL/SQL Package that i publish as WebService.
4. Move the Validated Record to Oracle Base table using Apps Adapter.
I created a package for validating the data and call the Oracle Seeded APIs and registered the same as a concurrent program. Now when i am trying to find the same concurrent program through apps adapter I couldn't find.
Am I missing something? Or do I have only one option to call the Concurrent Program through DB Adapter?
Can any one help me out please
Similar Messages
-
XSD validation for incoming data into BPEL process
Please suggest how to validate XSD incoming data into BPEL process.
I just wanted to verify the data before entering into BPELHi,
I guess i am replying very late.
In BPEL 2.0 we have an activity called "Validate" which can do the XSD validations.
"Lets Learn Oracle SOA: Validate XML schema In BPEL"
Regards,
Chinmaya -
How to load oracle data into SQL SERVER 2000?
how to load oracle data into SQL SERVER 2000.
IS THERE ANY UTILITY AVAILABLE?Not a concern for an Oracle forum.
Als no need for SHOUTING.
Conventional solutions are
- dump the data to a csv file and load it in Mickeysoft SQL server
- use Oracle Heterogeneous services
- use Mickeysoft DTS
Whatever you prefer.
Sybrand Bakker
Senior Oracle DBA -
How to extract Oracle data into Excel file?
For a small automation project I have to extract data from a table/
tables and append it to the existing excel file and feed that excel
file to a command that will load data into some other environment. I
am totally new to this. So to get started I wanted to know,
1) How to extract data from sample table Foo which has columns A,B,C
and append these values as new columns to an existing excel say
fooresults.csv ?
2) Can I achieve this in pl/sql script or do I need to write unix or
perl script or some other programing language, please advise?The "extract data from a table" part is easy, you could do that with VB/ADO, or .NET/ODP.NET. It's then a matter of taking that data and appending it to a spreadsheet that might be the hard part, and how you'd do that exactly is really more of a Microsoft question than an Oracle one.
If you want to be able to do this from the database itself and your database is on Windows, you could use either [.NET Stored Procedures|http://www.oracle.com/technology/tech/dotnet/ode/index.html] if you can manipulate the spreadsheet in .net code, or you could also use Oracle's [COM Automation Feature|http://www.oracle.com/technology/tech/windows/com_auto/index.html] if you're handy with the COM object model for Excel.
How you'd do that exactly via either .net or com or vb is the crux of the problem and is something you'd need to know before it turns into an Oracle question, but if you already know how to do that and now just need to figure out a way to do that from Oracle, either of the above might help.
Hope it helps,
Greg -
Outbound oracle data into xml file
Hi Odie,
Your previous inputs for xml inbound was working fine, in the similar way now I need outbound the oracle apps data into .xml file format. For that I've written one sample script like this. I thought of making use of the utl_file option in Oracle apps.
declare
l_log_handle UTL_FILE.FILE_TYPE;
l_log_name varchar2(50);
l_path_2 varchar2(40);
l_global_file varchar2(50);
l_time number:=1;
cursor cur1 is
select xmltype(cursor(select * from fnd_menus where rownum <101)) a from dual;
--select menu_id from fnd_menus where rownum<100;
begin
BEGIN
SELECT DECODE (INSTR (VALUE, ','),
0, VALUE,
SUBSTR (VALUE, 1, (INSTR (VALUE, ',', 1)) - 1)
INTO l_path_2
FROM v$parameter
WHERE NAME = 'utl_file_dir';
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Error while getting Unix Path ' || SQLERRM);
END;
l_log_name := 'XGBIZ_'||TO_CHAR (SYSDATE, 'YYMMDD')||l_time;
l_log_name := CONCAT(l_log_name,'.xml');
l_global_file := l_log_name;
l_log_handle := UTL_FILE.FOPEN(l_path_2,l_log_name,'W');
for cur2 in cur1 loop
UTL_FILE.PUT_LINE(l_log_handle, cur2);
end loop;
utl_file.fclose_all;
EXCEPTION
WHEN UTL_FILE.INVALID_OPERATION THEN
dbms_output.put_line('Invalid Operation For '|| l_global_file);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INVALID_PATH THEN
dbms_output.put_line('Invalid Path For '|| l_global_file);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INVALID_MODE THEN
dbms_output.put_line('Invalid Mode For '|| l_global_file);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INVALID_FILEHANDLE THEN
dbms_output.put_line('Invalid File Handle '|| l_global_file);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.WRITE_ERROR THEN
dbms_output.put_line('Invalid Write Error '|| l_global_file);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.READ_ERROR THEN
dbms_output.put_line('Invalid Read Error '|| l_global_file);
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.INTERNAL_ERROR THEN
dbms_output.put_line('Internal Error');
UTL_FILE.FCLOSE_ALL;
WHEN OTHERS THEN
dbms_output.put_line('Other Error '||'SQL CODE: '||SQLCODE||' Messg: '||SQLERRM);
UTL_FILE.FCLOSE_ALL;
end;
when running this script I am getting error
ERROR at line 30:
ORA-06550: line 30, column 2:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 30, column 2:
PL/SQL: Statement ignored
if in the cursor declaration happen to use 'select menu_id from fnd_menus ' a plain record then it is successfully creating.
If tried again revert to actual select statement ' select xmltype(cursor(select * from fnd_menus where rownum <101)) a from dual'
then its erring out as above said.
Please give me your valuable inputs in this regard.
Thanks & Regards
NagendraHi,
There are multiple ways to generate XML documents from relational data.
Here are some :
-- SQL/XML functions : XMLElement, XMLAgg, XMLAttributes etc.
-- DBMS_XMLGEN package
select dbms_xmlgen.getXML('SELECT * FROM scott.emp')
from dual;-- XMLType constructor over a REF CURSOR (the one you chose)
select xmlserialize(document
xmltype(
cursor(
select *
from scott.emp
as clob
from dual;-- From a DBUriType
select xmlserialize(document
dburitype('/SCOTT/EMP').getXML()
as clob
from dual;-- From XQuery using ora:view function
select xmlserialize(document
xmlquery('<ROWSET>{ora:view("SCOTT","EMP")}</ROWSET>' returning content)
as clob indent size = 1
from dual;If a column is NULL in the result set, those methods (except XMLElement) won't create the corresponding element.
There's an option available for the XQuery method, but only in version 11.2.
So if you want to output empty elements, you'll have to use DBMS_XMLGEN with setNullHandling method :
DECLARE
ctx DBMS_XMLGEN.ctxHandle;
v_out CLOB;
rc SYS_REFCURSOR;
BEGIN
OPEN rc FOR
SELECT *
FROM scott.emp
ctx := DBMS_XMLGEN.newContext(rc);
DBMS_XMLGEN.setNullHandling(ctx, DBMS_XMLGEN.EMPTY_TAG);
v_out := DBMS_XMLGEN.getXML(ctx);
DBMS_XMLGEN.closeContext(ctx);
CLOSE rc;
DBMS_XSLPROCESSOR.clob2file(v_out, 'TEST_DIR', 'test_out.xml');
END;
I thought of making use of the utl_file option in Oracle apps.You could, but you might find DBMS_XSLPROCESSOR.clob2file procedure more convenient for that (see above).
All you have to do is serializing the XML in a CLOB variable, and call the procedure.
WHERE NAME = 'utl_file_dir';The "utl_file_dir" init. parameter is deprecated since 10g, use directory objects instead. -
Unable to replicate oracle data into timesten
I have created CACHE GROUP COMPANY_MASTER
Cache group :-
Cache Group TSLALGO.COMPANY_MASTER_TT:
Cache Group Type: Read Only
Autorefresh: Yes
Autorefresh Mode: Incremental
Autorefresh State: On
Autorefresh Interval: 1 Minute
Autorefresh Status: ok
Aging: No aging defined
Root Table: TSLALGO.COMPANY_MASTER
Table Type: Read Only
But whenever I start timesten server the following lock seen in ttxactadmin <dsn_name>
Program File Name: timestenorad
30443 0x7fab902c02f0 7.22 Active Database 0x01312d0001312d00 IX 0
Table 1733200 S 4221354128 TSLALGO.COMPANY_MASTER
Row BMUFVUAAAAaAAAAFBy S 4221354128 SYS.TABLES
Row BMUFVUAAACkAAAALAF Sn 4221354128 SYS.CACHE_GROUP
Due to the following lock oracle data is not replicated in timesten.
When we check sqlcmdid it shows following output
Query Optimizer Plan:
Query Text: CALL ttCacheLockCacheGp(4, '10752336#10751968#10751104#10749360#', 'S', '1111')
STEP: 1
LEVEL: 1
OPERATION: Procedure Call
TABLENAME:
TABLEOWNERNAME:
INDEXNAME:
INDEXEDPRED:
NONINDEXEDPRED:
Please suggest why timesten take lock on following table.966234 wrote:
Unable to download Oracle Data Integrator with version 11.1.1.6.Hope this could be resolved ASAP.What is the file you are trying to download? Is it for Windows or Linux or All Platforms?
Thanks,
Hussein -
Need to archive Oracle data into MS Access database
Gurus,
I've been tasked with archiving several large tables (10 million records) into an MS Access database. I'm looking through MS Access help guide which states that I can use the ODBC driver to create table, column definitions, and import data.
Does anyone have any good resources on creating an ODBC driver for MS Access. Also, any reference material would be greatly appreciated.
Thanks
Scottsreese wrote:
Gurus,
I've been tasked with archiving several large tables (10 million records) into an MS Access database. On the face of it, that is an astoundingly bad idea. Using the worst database product (I can't even really refer to it as an RDBMS) on the planet to archive data that is already in the best RDBMS on the planet?
What does the person who came up with this idea expect to achieve?
I'm looking through MS Access help guide which states that I can use the ODBC driver to create table, column definitions, and import data. ODBC drivers don't create anything. They provide a common link between ODBC enabled apps and the native db interface.
>
Does anyone have any good resources on creating an ODBC driver for MS Access. You don't create the driver. It is provided by either MS or Oracle (they both have them). You just configure a connection definition (aka "Data Source Name" or DSN) that utilizes it.
Also, any reference material would be greatly appreciated.
Thanks
Scott -
How to conver the oracle data into xml files
Hi All,
I have a table for ex emp, now i want to generate every row into an xml file. could anyone pls help...
ex:- emp table
eno ename sal
1 bond 3000
2 kiran 2000
3 jai 1000
4 henry 500
o/p :- i have to get a column in 4 different files for this 4 rows.
1.xml file should contain data <ID>1</ID><eNAME>bond</eNAME><sal>3000</sal>
2.xml file should contain data <ID>2</ID><eNAME>kiran</eNAME><sal>2000</sal>
3.xml file should contain data <ID>3</ID><eNAME>jai</eNAME><sal>1000</sal>
4.xml file should contain data <ID>1</ID><eNAME>bond</eNAME><sal>500</sal>
regards,
Badri.You can do it like this :
begin
for r in (
select empno
, xmlserialize(content xmlforest(empno as "ID", ename, sal)) as xmlcontent
from scott.emp
loop
dbms_xslprocessor.clob2file(r.xmlcontent, 'TEST_DIR', to_char(r.empno) || '.xml');
end loop;
end; -
How to convert Oracle Data into Java Date
Hi there,
in JDev 3.2 oracle.jbo.domain.Date was derived from oracle.sql.DATE, which has a timestampValue() method to get a java.sql.Timestamp.
In Jdev 9.0.3 Date is not!! derived from oracle.sql.DATE, so my previous implementation fails.
So, How can I get a java.util.Date from oracle.jbo.Date?
( I think this is a bug !?)Hi Dietmar,
this is documented in the help; see Reference - Business Components Oracle Domains; then choose 'Date'
using the dateValue() method on the oracle.jdo.domain.Date gives you a java.sql.Date which is a (subclass of) java.util.Date.
Cheers, Hans -
Conversion Oracle data into query
Hi everyone,
I've 1000 records in my table. Now i want to create the same table in another database. If i have script to create and insert all values, i can very easily execute it.
How to generate script for the Oracle table which contains 1000 records?
-haifriendsMy Sample Table is
Master_CallType
~~~~~~~~~~~~
CallID CallType
~~~~ ~~~~~~
CT001 Monitor Problem
CT002 Network Problem
CT003 Keyboard Problem
I've a table like this. Create and insert query in used to create table and insert value. Now i've 1000 records in my table. I want to move this value to another database. I want it in script form to create table (with all constrainsts ) and insert value. -
What's the best way to export UTF8 data into Excel?
Hi,
Database charterer set is UTF8
PARAMETER VALUE
1 NLS_NCHAR_CHARACTERSET UTF8
2 NLS_CHARACTERSET UTF8
My requirement is that I want to export oracle data into excel file by using UTL_FILE oracle supplied package.
But while writing data into excel files it’s looses in UTF8 encoding and writes some garbage data into file.
I am very much sure that while retrieving the data form database it is perfectly encoded with UTF8, but after data is written to the file it eats the UTF encoding resulting into some garbage data.
e.g.
I am retrieving this filed from database which is UTF8 encoded in DB “Langäcker 55” but when it is written into excel it becomes “Langäcker 55”.
Is Oracle UTL_FILE eating the UTF8 encoding while writing into file? if yes, is there utility which can help me to remain the UTF8 encoding as it is while writing in to excel file? Is there anythingi can do in Oracle to get this done?
Thanks in advance.
Thanks,
SantoshUntil now I have not found anyone who could write real Excel files (MS binary format) in PL/SQL. So I assume that you write your data in strings separated by a character like ; or |, aka CSV.
Try to open your file with 'wb' (write binary) instead of 'w' and then use
-- write data
utl_file.put_raw(v_file,utl_raw.cast_to_raw(<your data>));
--write remaining data
utl_file.fflush(v_file);
--close the file
utl_file.fclose(v_file);Regards
Marcus -
DB Adaptor and inserting dates into Oracle DB
Hi,
I'm using the Oracle DB Adaptor to poll a table in one instance (using logical delete) and to invoke a DB adaptor to insert/merge a row into a separate instance.
NOTE :both tables have different definitions.
I am using a BPEL transform to tfrm the data received from the poll/receive step.
I need to transform some date variables and the target date column CreatedTs is expecting to receive the date in the Oracle DD-MON-YYYY format (can't change the NLS_DATE_FORMAT value for the target).
I'm trying to use the provided xsl:formatDateTime function with various formats but can't get anything useful to work.
Any ideas ?Hi there,
Please see the Bpel developer's guide at otn.oracle.com/bpel. There are two troubleshooting entries of interest:
dateTime Conversion Exceptions
and
Issues with Oracle DATE
Just search on these strings.
The xsl:formatDateTime function is for converting xs:dateTimes to strings. If you already have a value in proper ISO dateTime format do not try to convert it. The database adapter likes that format only.
If you are starting with a string like DD-MON-YYYY and have to convert it into a legal dateTime, then that is hard as functions like xsl:formatDateTime go the opposite way only, i.e. dateTime to string, not string to dateTime.
A few days we had a customer who needed to convert MM/DD/YYYY to a dateTime. I am copying the solution here.
Used the expression builder in the assign to build:
orcl:format-string('{0}-{1}-{2}T00:00:00', substring(bpws:getVariableData('Receive_1_receive_InputVariable','ReceiverDeptCollection','/ns2:ReceiverDeptCollection/ReceiverDept/receiverEmpCollection/ReceiverEmp/someDate'), 7, 4), substring(bpws:getVariableData('Receive_1_receive_InputVariable','ReceiverDeptCollection','/ns2:ReceiverDeptCollection/ReceiverDept/receiverEmpCollection/ReceiverEmp/someDate'), 4, 2), substring(bpws:getVariableData('Receive_1_receive_InputVariable','ReceiverDeptCollection','/ns2:ReceiverDeptCollection/ReceiverDept/receiverEmpCollection/ReceiverEmp/someDate'), 1, 2))
That worked in converting i.e. 01/05/2005 to 2005-01-05T00:00:00.
To convert DD-MON-YYYY that is tricky because you need to first convert DEC to 12, SEP to 09, and so on. I couldn't figure out how to do that but another on this forum may be able to help you out. If you are really stuck and you know the database accepts i.e DD-MON-YYYY, you could tell the adapter that the date field is a string, then it will simply pass the value as is which should work.
To do that please see chapter 20 of the bpel dev guide, and search for
Configuring Offline Database Tables
Use that to change the type to basic varchar2 in the BPEL designer so the dbadapter will think the column is a string and not convert it.
Thanks
Steve -
BPEL doesn't insert Date into BAM dataobjects
I have integrated BPEL process to send data into BAM data objects. I can insert data into BAM successfully when I don't map "PO Creation date" (one of the field of payload--variableData--data) but it doesn't insert data when I map PO creation date.
I am getting PO creation date in format "20080405 103354". I tried to use Date format but I got no success.
It takes Timestamp field under actionData-->header successfully without formating it.
So what I have to do to enter this date?Priyasagi wrote:
Hi,
Use to_date function to convert the charactor input as,
INSERT INTO L_EMPLOYEES VALUES (201, 'SUSAN', 'BROWN', 'EXE',CV, 30, '3484', NULL);
Hope it will help.
Your usage of to_date -- without supplying a specific format mask -- is still relying on NLS_DATE_FORMAT settings, just as the OP's original was with its implicit conversion. It's rather pointless to use to_date without a format mask.
The only difference between
insert .... to_date('12-Jun-1996')
and simply
insert .... '12-Jun-1996'
is that in the first you are explicitly telling oracle to do what it would implicitly do in the second. Either way, it is relying on the NLS_DATE_FOMAT that is in effect. -
Select from 2 tables and insert same data into 2 other tables(BPEL Process)
Hi All,
Please suggest me how to select from 2 tables and insert the same data into 2 tables. I am successful in selecting data from 2 tables, but i am not able to insert the same data into 2 other tables. There is foreign key constraint between 2 tables.
Thanks in Advance,
MAHI have created DB Adapter for selecting from 2 tables and also DB adapter for insert and i have created parent child relationship between 2 tables.
I am getting this error
<Faulthttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>env:Server</faultcode>
<faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is 6f3fe20c1b031057:-6cc7dfb5:11b8bf5fbe1:-7fa4. Please check the process instance for detail.</faultstring>
</Fault> -
Which is the best option to enter the data from BPEL to Oracle Apps.?
Hi all,
i have a little confusion. I want to enter sales order data into Oracle Apps
from BPEL.But there are two ways 1) API 2) Sales Import Interface ( concurrent program)
So Which option is better. can anyone plz explain.?
/mishit.Ther is a nice chapter in the BPEL cookbook on integrating Apps en PSoft. Maybe this helps you to understand in integration with BPEL.
http://www.oracle.com/technology/pub/articles/bpel_cookbook/pravin.html
Maybe you are looking for
-
Unable to upgrade to EFI 1.9 on MacBookPro6,2 model
I've downloaded the EFI Firmware Update 1.9 from support.apple.com/kb/DL1098 and verified that my main HD is GUID Partitioned and that I have the correct file for my model based on info in system profile. However, when I mount the disk image and try
-
Exchange 2010 System Public Folders trying to replicate to decommissioned Exchange 2003
I was checking the mail queue on Exchange 2010 and noticed several hundred messages in retry. Looking at the messages I found that they were all destined for an old 2003 exchange that has been decommissioned. I looked at the System Public Folders and
-
Question about overridden method error
Hello everyone, I have a silly problem which im sure is elementry, but alas still I cannot work it out. I have a test class as below import android.os.Handler; public class Test extends Handler{ @Override public void handleMessage(Messa
-
Ok, I created a .txt file with "Main-Class: MainClass" and save it as main.txt I put everything in the same folder, the main.txt and MainClass.class Then in command prompt I type.. cmf main.txt MainClass.jar MainClass.class everything was fine, no er
-
Recently my G4 has been taking forever to boot-up to the Login Screen. The gray screen sits for about a minute, then the clear blue screen is up for over 5 minutes, until it finally gets to the login screen. Also, in putting the computer to sleep, it