This content has been marked as final. Show 3 replies
I haven't done this on R2, however this is what I did for OAM 126.96.36.199
Use wlst.sh > connect to Admin Server > run exportPolicy(pathTempOAMPolicyFile="/anytmpfolder/my_policies1.xml")
Access WLS admin console > Access the datasource pointers > modify jdbc config
Run wlst.sh and run importPolicy(pathTempOAMPolicyFile="/anytempfolder/my_policies1.xml")
Restart OAM managed instance
Try this in your lab environment. Hope this helps.
Please correct be if i am wrong,
exportPolicy command will export all configuration data to a temp xml file, and then we modify the jdbc data source to point to new db instance and import back policy.
Do we need to change any anything in oam-config files as we have modify the data source ?
Another we have successfully exported the data from db but while we are importing it back to new db we are having issue saying IMP-00015: following statement failed because the object already exists
Did you face any error like this.
You don't need to touch oam-config.xml. After reconfiguring the JDBC source in WebLogic, you can run the import command and start the OAM managed instance. I assume you ran rcu to create the OAM schema on the new database before you did the import. I didn't encournter the error you see. Mine was a clean database with schema created by RCU and the import went through fine.