Showing posts with label weblogic. Show all posts
Showing posts with label weblogic. Show all posts

Friday, August 7, 2015

Fusion Middleware Home is corrupted (Common Env Script missing or Not executable)!

While running the opatch apply or opatch lsinventory we got below error.

Error :

/app/oracle/middleware/Oracle_SOA1/OPatch/opatch
Fusion Middleware Home is corrupted (Common Env Script missing or Not executable)!
/app/oracle/middleware/Oracle_SOA1/jdk/bin/java is not a valid executable for this platform.
OPatch cannot proceed!


./opatch lsinventory -invPtrLoc ../oraInst.loc
Fusion Middleware Home is corrupted (Common Env Script missing or Not executable)!
/app/oracle/middleware/Oracle_SOA1/jdk/bin/java is not a valid executable for this platform. OPatch cannot proceed!
OPatch returns with error code = 1


Solution :

1. Keep a backup of existing commEnv.sh file 
2. Restore from backup valid commEnv.sh file
3.Change the file permission of commEnv.sh file
4. Execute the opatch commands again to confirm everything works fine.

Thanks,
Arihant




Thursday, July 9, 2015

OIM 11G R2 PS3 Lab 11: Three ways to export OIM Metadata (MDS)

We can export complete OIM MDS in 3 different ways.

1) MDS Export  from Weblogic EM Console

2) MDS Export  from wlst.sh script

3) MDS Export  from weblogicExportMetadata.sh

---------------------------------------------------------------------------------------------------------------

1) MDS Export  from Weblogic EM Console

* Login to Weblogic EM console > Expand Identity and Access > OIM > oim



* Expand  Application Defined Mbean > oracle.mds.lcm > server :oim_server1


* Expand Application : OIMAPPMetadata > MDSAppRuntime > MDSAppRuntime  on right hand      side click on Operations tab >> Click on exportMetadata


* In to Location give path where you want to export (No need to create directory manually, It will automatically create the directory) > Click on docs


* Click on Add


* In this lab we are exporting complete MDS that we enter /**. If you want to export any specific file you can do that. Ex -/file/User.xml ( For export User.xml)


* After setting the to location and docs, click on Invoke


* Check the status after clicking Invoke. It should be operation executed successfully.


* Check the export in to location.


2) MDS Export  from wlst.sh script


 * Go to /app/oracle/middleware/oracle_common/common/bin/ location and run wlst.sh conmand
     Enter the below Parameters manually.

  •  connect()
  •  Weblogic 
  •  Weblogic user password
  • t3://localhost:7001 (Server URL with admin port)
  • exportMetadata(application='OIMMetadata', server='oim_server1', toLocation='/tmp/mds1') (If you want to export the MDS in specific location you can set that in toLocation)   
  • If you want to export any specific file run below command
  • exportMetadata(application='OIMAppMetadata',server='oim_server1',toLocation='/tmp/export',docs='/db/oim-config.xml',applicationVersion='*')


* Check the successfully transferred messages at the end.


*  Check the export in to location.



3) MDS Export  from weblogicExportMetadata.sh

* Go to /app/oracle/middleware/Oracle_IDM1/server/bin location and edit weblogic.properties



* Enter below Parameter


  • application_name=OIMMetadata
  • metadata_to_loc=/tmp/mds2 
  • metadata_files=/**  



  • * From the same location set the OIM_ORACLE_HOME ,run weblogicExportMetadata.sh command and enter below parameters manually.

         export OIM_ORACLE_HOME=/app/oracle/middleware/Oracle_IDM1
    •  connect()
    •  Weblogic 
    •  Weblogic user password
    • t3://localhost:7001 (Server URL with admin port)


    * Check the export in to location.


    Regards,
    Arihant Baid

    Tuesday, December 16, 2014

    How to install XIMDD Diagnostic Dashboard in OIM for Monitoring

    Steps for installing XIMDD

    1) Go to below Location and verify the ear file is available. After OIM  installation you will find the        ear file in below location.

    /app/oracle/middleware/Oracle_IDM1/server/webapp/optional

    2) Login to weblogic console and click on deployment


    3) Click on install


    4) Select the patch ,ear file and click on next


    5)  Click on next


     6) Select OIM server from server list and click on next


    7) Click on Finish    


    8) Now try accessing the below dashboard URL

    http://OIM_server_host_ip:port/XIMDD

    EX: http://arihant:14000/XIMDD


    8)  Login with your xelsysadmin credentials




    Thank you.

    Arihant Baid

    Tuesday, July 15, 2014

    OIM 11G R2 PS2 Lab 2: OID,OVD and ODSM Installation and configuration

    OIM 11GR2 PS2 Installation steps - High Level

    1)  WebLogic 10.3.6 Installation
    2)  IAM 11.1.1.7.0 Installation and configuration

    Weblogic 10.3.6 installers can be downloaded from :
    http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html

    IAM 11.1.1.7.0 installer can be downloaded from:
    http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/downloads/bi-downloads-1923016.html

    Identity and Access Management 11g R2 PS2 documents can be access from:
    http://docs.oracle.com/cd/E40329_01/index.htm

    Identity and Access Management 11g R2 PS2 Matrix can be downloaded from :
    OLD Matrix
    http://www.oracle.com/technetwork/middleware/id-mgmt/documentation/identity-access-111220certmatrix-2105036.xlsx

    New Matrix
    https://support.oracle.com/epmos/main/kmservlet?documentUrl=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fmiddleware%2Fid-mgmt%2Fidentity-accessmgmt-11gr2certmatrix-1714221.xls&operation=docRedirection&docTitle=identity-accessmgmt-11gr2certmatrix-1714221.xls&type=WEB&displayIndex=

    1)  WebLogic 10.3.6 Installation

    • Go to weblogic installer and run "java -jar wls1036_generic.jar"
     
    • Click on next
    •  Create Middleware directory and locate to that directory
    • Click on Next
    • Select the check box and click on Continue 
    • Click on next
    • Select your JDK and click on next
    • Click on next
    • Click on next
    • Unchecked the check box and click on Done.


     2)  IAM 11.1.1.7.0 Installation and configuration

    • Go to IAM installer and run "./runInstaller -jreLoc /app/java6u31/jre"

    • Click on Next

    • Select the Skip software updates and click on Next
    • Select Install and configure then hit next
    • Click on Next
    • Select Create New Domain and give weblogic User Name and Password then hit next
    • Click on Next
    • Click on Next
    • Select OID,OVD,DIP components and click on Next
    • Click on Next
    • Give the domain name and Password of Orcladmin then hit next
    • Select Create Schema connect sting . Give database hostname:portno:servicename
      • Username=sys
      • Password=

    • Give password for ODS and ODSSM schema
    • Give the domain name and Administrator password
    • Click on Install
    • Login to root user and run the below scripts
    • Run ./oracleRoot.sh script
    • Verify the the status and click on next
    •  Click on finish


        1) Weblogic,ODSM URL's

              http://arihant.tdc.com:7003/console (I am using 7001 for OIM weblogic)
              Admin User: weblogic

               http://arihant.tdc.com:7003/em (I am using 7001 for OIM weblogic)
               Admin User: weblogic
               
               http://arihant.tdc.com:7005/odsm
               Admin User: cn=orcladmin

         
      Starting and stopping the servers


        2) Weblogic Admin server Start/Stop


        Locate to /app/oracle/BI/user_projects/domains/bifoundation_domain/bin/
            ./startWebLogic.sh  (Start)
            ./stopWebLogic.sh  (Stop) 

        3) ODSM Console Start/Stop

        Locate to /app/oracle/BI/user_projects/domains/bifoundation_domain/bin/
            ./startManagedWebLogic.sh wls_ods1  (Start)
            ./stopManagedWebLogic.sh wls_ods1   (Stop)
           
        4) OID,OVD start/stop/staus
       
        Locate to /app/oracle/BI/instances/instance1/bin
       
            ./opmnctl startall     (Start)
            ./opmnctl stopall     (Stop)
            ./opmnctl status      (Status)