- Developing SOA Applications with Oracle SOA Suite
- Sharing Functionality Across Service Components
- Working with Cross References
- Creating and Running the Cross Reference Use Case
- How to Create the Use Case
- Task 1: How to Configure the Oracle Database and Database Adapter
Task 1: How to Configure the Oracle Database and Database Adapter
To configure the Oracle database and database adapter:
- You need the
SCOTTdatabase account with passwordTIGERfor this use case. You must ensure that theSCOTTaccount is unlocked.You can log in as
SYSDBAand then run thesetup_user.sqlscript available in theXrefOrderApp1M/sqldirectory to unlock the account. - Run the
create_schema.sqlscript available in theXrefOrderApp1M/sqldirectory to create the tables required for this use case. - Run the
create_app_procedure.sqlscript available in theXrefOrderApp1M/sqldirectory to create a procedure that simulates the various applications participating in this integration. - Run the
createschema_xref_oracle.sqlscript available in theOH/rcu/integration/soainfra/sql/xref/directory to create a cross reference table to store runtime cross reference data. - Copy the
ra.xmlandweblogic-ra.xmlfiles from$BEAHOME/META-INFto the newly created directory calledMETA-INFon your computer. - Edit the
weblogic-ra.xmlfile available in the$BEAHOME/META-INFdirectory as follows:-
Modify the property to
xADataSourceNameas follows:<property> <name>xADataSourceName</name> <value>jdbc/DBConnection1</value> </property>
-
Modify the
jndi-nameas follows:<jndi-name> eis/DB/DBConnection1</jndi-name>
This sample uses
eis/DB/DBConnection1to poll the SAP table for new messages and to connect to the procedure that simulates Oracle EBS and Siebel instances. -
- Package the
ra.xmlandweblogic-ra.xmlfiles as a RAR file and deploy the RAR file by using Oracle WebLogic Server Administration Console. - Create a data source using the Oracle WebLogic Server Administration Console with the following values:
-
jndi-name=
jdbc/DBConnection1 -
user=
scott -
password=
tiger -
url=
jdbc:oracle:thin:@host:port:service -
connection-factory factory-class=
oracle.jdbc.pool.OracleDataSource
-
- Create a data source using the Oracle WebLogic Server Administration Console with the following values:
-
jndi-name=
jdbc/xref -
user=
scott -
password=
tiger -
url=
jdbc:oracle:thin:@host:port:service -
connection-factory factory-class=
oracle.jdbc.pool.OracleDataSource
-