Use WLST scripts
The WLST script is located at:
(UNIX) MIDDLEWARE_HOME/ORACLE_SOA1/common/bin/wlst.sh(Windows) MIDDLEWARE_HOME\Oracle_SOA1\common\bin\wlst.cmd
Once the scripting tool is initialized, Connect to the server
offline>connect(‘username,’pwd’, ‘hostname:7001’)
For running deleteMetada function you need a minimum of 3 inputs
- application - since we are deleting from shared artifacts of soa-infra, the value should be soa-infra
- server - value should be ‘soa_server1’ or the server u use for SOA other than admin server.
- docs – the folder path or artifact which you want to delete.
wls:/GEO_domain/serverConfig> deleteMetadata(application='soa-infra',server='soa
_server1',docs='/apps/dvm/oracle/dvm/*')
Executing operation: deleteMetadata.
Operation "deleteMetadata" completed. Summary of "deleteMetadata" operation is:
List of documents successfully deleted:
/apps/dvm/oracle/dvm/GeoXRef.dvm
Hope this helps :)
The WLST script is located at:
(UNIX) MIDDLEWARE_HOME/ORACLE_SOA1/common/bin/wlst.sh(Windows) MIDDLEWARE_HOME\Oracle_SOA1\common\bin\wlst.cmd
Once the scripting tool is initialized, Connect to the server
offline>connect(‘username,’pwd’, ‘hostname:7001’)
For running deleteMetada function you need a minimum of 3 inputs
- application - since we are deleting from shared artifacts of soa-infra, the value should be soa-infra
- server - value should be ‘soa_server1’ or the server u use for SOA other than admin server.
- docs – the folder path or artifact which you want to delete.
wls:/GEO_domain/serverConfig> deleteMetadata(application='soa-infra',server='soa
_server1',docs='/apps/dvm/oracle/dvm/*')
Executing operation: deleteMetadata.
Operation "deleteMetadata" completed. Summary of "deleteMetadata" operation is:
List of documents successfully deleted:
/apps/dvm/oracle/dvm/GeoXRef.dvm
Hope this helps :)
No comments:
Post a Comment