I am trying to delete a folder from MDS using sca_removeSharedData in offline mode and ending with below error.
Traceback (innermost last):
File "<console>", line 1, in ?
i run wslt.sh file from */u01/app/soadev/product/fmw11/middleware/oracle_common/common/bin* and gave below command
8001- SOA port
apps/MDS/XSD-- my folder structure in MDS.
could some once please let me know where i went wrong.
Even i try wslt.sh from this path */u01/app/soadev/product/fmw11/middleware/wlserver_10.3/common/bin* but ended with same problem
Thanks in Advance.
Now i am able to access the command from this path */u01/app/soadev/product/fmw11/middleware/Oracle_SOA1/common/bin*
But this command is looking for documents in the MDS folder. Below is the response message i received.
INFO: Creating HTTP connection to host:sasoah91.corp.gdglobal.ca, port:8001
INFO: Received HTTP response from the server, response code=500
---->Response code=500, error:There was an error removing shared data on soa_server1: No documents was found under folder /apps/MDS. Please make sure this folder exists and/or there are documents under this folder.
the current direction apps/MDS contains XSD folder which is empty and i want to remove it .
Can some one please tell me how to go with this.
Can u try in online mode ?
Goto YOUR_MIDDLEWARE_HOME/Oracle_SOA1/common/bin and execute wlst.sh
At wlst command prompt (wls:/offline>) execute the following
connect('adminuser', 'adminpassword', 't3://hostname:port')
connect('weblogic', 'weblogic1', 't3://localhost:8001')
Remove Content from MDS
Check the below post.
https://kr.forums.oracle.com/forums/thread.jspa?threadID=2389661 - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
Thanks a ton for responding.
Now i am able to delete folder and files using both function. Now while deploying one of my xsd folder deployed wrongly and resulted in the below structure
Now i want to remove xsd folder.
Using deleteMetadata i can delete only files in xsd and using this function sca_removeSharedData i am not able to remove folder xsd because by default it is looking into apps folder and here xsd folder is outside the apps folder.
Can you guys please suggest me how can i remove the folder.
Edited by: Tarak on Aug 1, 2012 10:04 AM
earlier i tried this one and now once again i tried it but no luck. Below is the response form the server
Response code=500, error:There was an error removing shared data on soa_server1: No documents was found under folder /apps/xsd. Please make sure this folder exists and/or there are documents under this folder.
As sca_removeSharedData by default looking into apps folder and current xsd is outside this one.
Please let me know if i am going wrong.
As per your suggestion i tried removing with below command
sca_removeSharedData('http://localhost:8001','/xsd') and below is the response.
Response code=500, error:There was an error removing shared data on soa_server1: No documents was found under folder /apps//xsd. Please make sure this folder exists and/or there are documents under this folder. Otherwise you can delete from folder level, instead of script ?
Could you please let me know how to go with this one.