Tuesday, October 7, 2014

Clearing data in DataObjects with BAM 12c

I was recently facing an issue in which I was not able to delete data within dataobjects in BAM due to BAM 12c bug.

BAM 12c provides BAMCommand utility, which is just like iCommand in 11g.

To delete data in data objects in BAM 12c, we to do following steps

1. Go to FMW_HOME/soa/bam/bin/
2. Edit BAMCommandConfig.xml with your BAM Configuration
3. Set Java_Home
4. Execute the below command to delete data within data object

 ./bamcommand -cmd clear -name "DataObjectName" -type dataobject


where DataObjectName is name of your data object. 

On Executing the above command, you would be promoted to provide server credentials.

Similarly you can also export BAM objects using the below command

./bamcommand -cmd export -type all -file "home/zzz/test.zip"

1 comment:

Lone Rider said...

Can you please elaborate the issue you run into?