Oracle® Fusion Middleware User's Guide for Oracle B2B 11g Release 1 (11.1.1) Part Number E10229-01 |
|
|
View PDF |
B2B command line tools are available for a number of tasks.
Note:
Command line tools are for administrator use only.
Self-service APIs are not available in this release.
This chapter contains the following topics:
Do the following before using the command line tools:
Set ORACLE_HOME
to your Oracle Fusion Middleware installation directory and then set the following environment variables:
ANT_HOME - $ORACLE_HOME/.../modules/org.apache.ant_1.7.0
JAVA_HOME - $ORACLE_HOME/.../jdk160_11
Create jndi.properties
.
cd $ORACLE_HOME/bin
ant -f ant-b2b-util.xml b2bcreate-prop
Edit the jndi.properties
file to include the weblogic
password.
Note:
Before purging data, exporting or archiving data is recommended.Purges both design-time and run-time data and resets the environment to the installation time.
ant -f ant-b2b-util.xml b2bpurge
Table 18-1 Options for ant -f ant-b2b-util.xml b2bpurge
Option | Description | Domain | Required |
---|---|---|---|
mode |
Specifies purging design-time or run-time data. |
DT RT |
No |
msgState |
Deletes messages with the specified message state. Used for run-time data. |
MSG_COMPLETE MSG_ERROR MSG_WAIT_TRANSMIT MSG_WAIT_FA MSG_WAIT_BATCH |
No. If |
start |
Deletes messages that are created on or after the specified date. Used for run-time data. |
dd-MMM-yyyy |
No |
end |
Deletes messages that are created on or before the specified date. Used for run-time data. |
dd-MMM-yyyy |
No |
purgecontrolnumber |
Deletes control numbers. Used for run-time data. |
|
No |
host |
Used for design-time data. |
Imports a configuration ZIP file to the repository. Basic validation is performed, but it is not a complete validation as with deployment validation. No data is overwritten unless you use the overwrite
option.
ant -f ant-b2b-util.xml b2bimport -Dlocalfile=true -Dexportfile="/tmp/export.zip"
Table 18-2 Options for ant -f ant-b2b-util.xml b2bimport
Option | Description | Domain | Required |
---|---|---|---|
exportfile |
Location of the export (ZIP) file |
- |
Yes |
|
Overwrites the existing business elements. For example, an existing delivery channel with the same trading partner name as a delivery channel in the import file is replaced if this option is set to |
|
No |
|
If the export file location exists on the server, then set this option to true to improve performance. The export file must be on the server on which B2B is running. |
|
No |
Exports the entire repository (without policy details) if no other options are specified.
ant -f ant-b2b-util.xml b2bexport
Table 18-3 Options for ant -f ant-b2b-util.xml b2bexport
Option | Description | Domain | Required |
---|---|---|---|
exportfile |
Location of the ZIP file where the exported data is stored |
|
No |
tpname |
The trading partner name to be exported |
Name of the trading partner |
No |
tpanames |
One or more agreement names to be exported. If one agreement is exported, then the ZIP file contains the folder |
Agreement names must be separated by a comma |
No |
active |
Exports agreements that have been deployed and are in active state. |
|
No |
|
Set to true to export the entire repository with user and role details, which is needed for the policy store. A warning is displayed to remind you to export the policy store also. See "What Is Copied When You Import or Export from the Import/Export Tab" for more information. |
|
No |
Example 18-5 Exports the Trading Partner Acme to /tmp/Acme.zip
ant -f ant-b2b-util.xml b2bexport -Dtpname="Acme" -Dexportfile="/tmp/Acme.zip"
Validates and deploys all agreements in the repository. If an agreement is deployed, then it is deployed again. The older version of the agreement is then in an inactive state. This feature is in preview mode for this release.
Note:
Validation can be turned off by enabling the propertyoracle.tip.b2b.deploy.validation=false
in b2b-config.xml
, which is found in
DOMAIN_HOME/config/soa-infra/configuration/
Turning off validation is useful when deploying large numbers of agreements, where you are certain that the data is valid. It requires a SOA Server restart.
ant -f ant-b2b-util.xml b2bdeploy
Validates B2B metadata, including agreements, trading partners, and documents. All agreements are validated if no options are specified. This feature is in preview mode for this release.
ant -f ant-b2b-util.xml b2bvalidate
Table 18-5 Options for ant -f ant-b2b-util.xml b2bvalidate
Options | Description | Domain | Required |
---|---|---|---|
args |
File names of the trading partner, agreement, or document protocol |
File names must be separated by a comma |
Yes |
Creates a cpp_cpa.properties
template file, which is used in the propfile
option. This feature is in preview mode for this release.
ant -f ant-b2b-util.xml b2bcreate-cpaprop
Converts an ebXML standard cpa.xml
file to an Oracle B2B metadata file, which must then be imported into Oracle B2B. This feature is in preview mode for this release.
ant -f ant-b2b-util.xml b2bcpaimport propfile
Converts an Oracle B2B metadata file (data exported from Oracle B2B) to an ebXML standard cpa.xml
file (a CPA-ready configuration). This feature is in preview mode for this release.
ant -f ant-b2b-util.xml b2bcpaexport
If you get the following broken pipe error, use Oracle WebLogic Server Administration Console to increase Maximum Message Size to 200000000
[java] Exception in thread "main" java.lang.Exception: java.rmi.UnmarshalException: Broken pipe; nested exception is: [java] java.net.SocketException: Broken pipe [java] at oracle.tip.b2b.utility.B2BCommandLineUtility.upgradeRepository(B2BCommandLineUtility.java:548) [java] at oracle.tip.b2b.utility.B2BCommandLineUtility.main(B2BCommandLineUtility.java:601) [java] Caused by: java.rmi.UnmarshalException: Broken pipe; nested exception is: [java] java.net.SocketException: Broken pipe