Databases Reference
In-Depth Information
icommand -CMD IMPORT -FILE <EXPORT_FILE>
The following example demonstrates how to use a sh script to import BAM data:
#!/bin/sh
MW_HOME=/u03/app/ofm11114/Middleware export MW_HOME
BAM_HOME=$MW_HOME/Oracle_SOA1/bam export BAM_HOME
JAVA_HOME=$MW_HOME/jdk160_21 export JAVA_HOME
EXPORT_FILE=/home/oracle/mybook/samples/icommand/files/ch7export.xml export EXPORT_FILE
#Clean the environment
$BAM_HOME/bin/icommand -CMD DELETE -TYPE EMS -ALL 1
$BAM_HOME/bin/icommand -CMD DELETE -TYPE DATAOBJECT -NAME "/public/DataObject/BookstoreDemo/Order"
$BAM_HOME/bin/icommand -CMD DELETE -TYPE DATAOBJECT -NAME "/public/DataObject/BookstoreDemo/Order_Item"
$BAM_HOME/bin/icommand -CMD DELETE -TYPE DATAOBJECT -NAME "/public/DataObject/BookstoreDemo/Order_Status"
$BAM_HOME/bin/icommand -CMD DELETE -TYPE DATAOBJECT -NAME "/public/DataObject/BookstoreDemo/Customer"
$BAM_HOME/bin/icommand -CMD DELETE -TYPE FOLDER -NAME "/public/DataObject/BookstoreDemo"
$BAM_HOME/bin/icommand -CMD DELETE -TYPE REPORT -NAME "/public/Report/BookstoreDemo/OrderTrackingReport"
#Import BAM artifacts
$BAM_HOME/bin/icommand -CMD IMPORT -FILE "$EXPORT_FILE"
As you can see in this example, the DELETE commands are executed before
the IMPORT command to clean the environment. Due to the dependencies, it
is best practice to order the DELETE commands in the sequence of EMS, Data
Objects, lookup Data Objects, folders, and reports.
Performing additional configurations
After importing an EMS or External Data Sources (EDS) to a new environment,
it is required to review and change its configuration accordingly through the BAM
Architect web application.
Search WWH ::




Custom Search