Export and Import Oracle BAM Projects

In the real world, you’ll create your Oracle BAM projects in a development environment, and when all is well, you will export it to a test or production environment. Export and import actions are easy to perform using BAMCommand command-line utility.

In this post, we will learn how to export Oracle BAM projects from a source environment and then import it to a target environment.
Download the sample application: BlogProject.zip.

I created an Oracle BAM project called Blog that has Data Object, Business Query, Business Views and Dashboard.

export-and-import-oracle-bam-projects1

First of all, edit the BAMCommand configuration file, defining the information about the source environment.
It is located at <FMW_HOME>/soa/bam/bin/BAMCommandConfig.xml.

export-and-import-oracle-bam-projects2

Now you can execute the BAMCommand command-line utility to export your BAM project artifacts.
I could export all Oracle BAM objects in the system, but I have other projects and I just want to export the project called Blog.

export-and-import-oracle-bam-projects3

Open Terminal and execute the following command to export the project called Blog.

bamcommand -cmd export -type project -name <PROJECT_NAME> -file "<ZIP_FILE>"

export-and-import-oracle-bam-projects4

I need to export an Enterprise Manager source called bamQueue.
Execute the following command to append the EMS file in the created file.

bamcommand -cmd export -type ems -name <EMS_NAME> -append 1 -file "<ZIP_FILE>"

export-and-import-oracle-bam-projects5

Now I have a zip file with my BAM project artifacts and I can import it into another environment.
Edit the BAMCommand configuration file again, but now, setting the information about the target environment.

export-and-import-oracle-bam-projects6

Execute the BAMCommand command-line utility to import your BAM project artifacts.
In Terminal, execute the following command to import the project called Blog.

bamcommand -cmd import -mode append -file "<ZIP_FILE>"

export-and-import-oracle-bam-projects7

Done!
Go to BAM Composer in the target environment to check if the import action worked.

export-and-import-oracle-bam-projects8

Waslley Souza

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

4 thoughts on “Export and Import Oracle BAM Projects”

Leave a Reply

Your email address will not be published. Required fields are marked *