There are various ways to remove files from MDS. How ever following is the simple and easy to remove..
Approach 1:
-----------------
1. Check whether the server is UP and Running or not. It should be Up and Running.
2. Go to the File directory in DOS / where the Oracle Home recited.
as an example, C:\Oracle\SOA\Oracle_SOA1\common\bin
if Unix machine then ./wlst.sh
Prompt will get changed to wls:/offline>
4. connect to the SOA Server with the below command
connect('username', 'password', 't3://Host :port')
Example:
connect('weblogic', 'welcome1', 't3://localhost:7001')
5. execute the below command
deleteMetadata(application='Application-Name', server='Soa Server-Name', docs='absolutePath')
Example:
deleteMetadata(application='XYZ_rev1.0',server='BPM1_domain',docs='/deployed-composites/xsl/*')
deleteMetadata(application='soa-infra',server='AAAServer',docs='/deployed-composites/default/XYZ_rev1.0/businessCatalog/ABCModule/**')
Once operation executed, you will see the prompt below:
Note: The asterisk (*) represents all documents under the current directory. The double asterisk (**) represents all documents under the current directory and also recursively includes all documents in subdirectories
Approach 2:
---------------
1. Follow steps from 1 to 3 from the above.
2. execute below command:
sca_removeSharedData('http:// SOA Host:Port', 'directory', 'User Name', 'password')
Example:sca_removeSharedData(‘http://localhost:7001’, ‘interfaces’, ‘weblogic’, ‘welcome1’)
Hope these approaches helps you!
Feel happy for the Issues. You are the Master tomorrow :)
No comments:
Post a Comment