1 2 Previous Next 19 Replies Latest reply: Nov 27, 2012 1:58 PM by 578233 RSS

    MDS NameError: sca_removeSharedData

    Tarak
      Hi All,

      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 ?
      NameError: sca_removeSharedData

      i run wslt.sh file from */u01/app/soadev/product/fmw11/middleware/oracle_common/common/bin* and gave below command

      sca_removeSharedData('http://Hostname:8001', 'apps/MDS/XSD').


      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.


      Tarak.
        • 1. Re: MDS NameError: sca_removeSharedData
          veejai24
          If you havent tried this,
          Instead of soa port, use admin port and try.

          Thanks,
          Vijay
          • 2. Re: MDS NameError: sca_removeSharedData
            Tarak
            Hi Vijay,

            I tryed with Admin port by changing the port to 7001 but ended up with same error.

            Regards,
            Tarak.
            • 3. Re: MDS NameError: sca_removeSharedData
              Tarak
              Hi Vijay,

              I tried with admin port but ended with same error.


              Regards,
              Tarak.
              • 4. Re: MDS NameError: sca_removeSharedData
                Tarak
                Hi,

                Can some one help me here?

                Regards,
                Tarak.
                • 5. Re: MDS NameError: sca_removeSharedData
                  Tarak
                  Hi All,

                  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.

                  Regards,
                  Tarak.
                  • 6. Re: MDS NameError: sca_removeSharedData
                    user9285225
                    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')

                    ex:
                    connect('weblogic', 'weblogic1', 't3://localhost:8001')

                    Remove Content from MDS

                    deleteMetadata(application='soa-infra',server='soa_server1',docs='/apps/common')
                    • 7. Re: MDS NameError: sca_removeSharedData
                      veejai24
                      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,
                      Vijay
                      • 8. Re: MDS NameError: sca_removeSharedData
                        Tarak
                        Hi Vijay/Eddie,

                        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

                        apps
                        deploy-composites
                        soa
                        xsd

                        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.

                        Regrads,
                        Tarak.

                        Edited by: Tarak on Aug 1, 2012 10:04 AM
                        • 9. Re: MDS NameError: sca_removeSharedData
                          veejai24
                          Try this as per your folder structure.

                          sca_removeSharedData('http://<HOST>:<SOA_Server_Port> ','xsd')

                          Thanks,
                          Vijay
                          • 10. Re: MDS NameError: sca_removeSharedData
                            Tarak
                            Hi Vijay,

                            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.

                            Regards,
                            Tarak.
                            • 11. Re: MDS NameError: sca_removeSharedData
                              veejai24
                              No documents was found under folder /apps/xsd.

                              Looks to me your path is wrong. Instead it should be '/xsd'

                              Otherwise you can delete from folder level, instead of script ?

                              Thanks,
                              Vijay
                              • 12. Re: MDS NameError: sca_removeSharedData
                                Tarak
                                Hi Vijay,

                                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.

                                Regards,
                                Tarak.
                                • 13. Re: MDS NameError: sca_removeSharedData
                                  veejai24
                                  Have you tried online commands, if not try that as shown in the blog

                                  http://oraclesoa.blogspot.co.uk/

                                  Thanks,
                                  Vijay
                                  • 14. Re: MDS NameError: sca_removeSharedData
                                    Tarak
                                    Hi Vijay,

                                    I tried online command and this deleteMetadata delete only content in the folder and i want to remove xsd folder which is outside apps folder structure.

                                    Regards,
                                    Tarak.
                                    1 2 Previous Next