Sun Cluster Data Service for Oracle Application Server Guide for Solaris OS

Verifying the Installation and Configuration of Oracle Application Server

This section contains the procedure you need to verify the installation and configuration.

ProcedureHow to Verify the Installation and Configuration of Oracle Application Server

This procedure does not verify that your application is highly available because you have not yet installed your data service.

Perform this procedure on one node or zone of the cluster unless a specific step indicates otherwise.


Note –

This procedure assumes that you have completed the infrastructure install and have included ORACLE_HOME and ORCALE_SID within the profile for the oracle-application-server-userid.


  1. On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. If a zone is being used for Oracle Application Server, ensure the zone is booted.

    Repeat this step on all nodes on the cluster if a zone is being used.

    Boot the zone if it is not running.


    # zoneadm list -v
    # zoneadm -z zonename boot
    
  3. Mount the highly available local file system.

    Perform this step from the global zone on one node of the cluster.

    1. If a non ZFS highly available local file system is being used for the Oracle Application Server files.

      Ensure the node has ownership of the disk set or disk group.

      For Solaris Volume Manager.


      # metaset -s disk-set -t
      

      For Veritas Volume Manager.


      # vxdg -C import disk-group
      # vxdg -g disk-group startall
      
      1. If the global zone is being used for Oracle Application Server.


        # mount highly-available-local-file-system
        
      2. If a zone is being used for Oracle Application Server.

        Mount the highly available local file system on one of the zones being used .


        # mount -F lofs highly-available-local-file-system \
        > /zonepath/root/highly-available-local-file-system
        
    2. If a ZFS highly available file system is being used for Oracle Application Server.

      1. If the global zone is being used for Oracle Application Server.


        # zpool import -R / HAZpool
        
      2. If a zone is being used for Oracle Application Server.


        # zpool import -R /zonepath/root HAZpool
        
  4. Plumb the Oracle Application Server logical hostname.

    1. If the global zone is being used for Oracle Application Server.


      #  ifconfig interface addif logical-hostname up
      
    2. If a zone is being used for Oracle Application Server.


      #  ifconfig interface addif logical-hostname up zone zonename
      
  5. Login to the zone, if a zone is being used.


    # zlogin zonename
    
  6. Start the Oracle Database and Listener


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/lsnrctl start
    $ $ORACLE_HOME/bin/sqlplus "/ as sysdba"
    SQL> startup
    SQL> quit
    $ exit
    
  7. Start the Oracle Application Server Infrastructure.

    For Oracle Application Server 9iAS Infrastructure


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/oidmon start
    $ $ORACLE_HOME/bin/oidctl server=oidldapd configset=0 instance=1 start
    $ $ORACLE_HOME/opmn/bin/opmnctl startall
    $ $ORACLE_HOME/bin/emctl start
    $ $ORACLE_HOME/bin/lsnrctl start
    $ exit
    

    For Oracle Application Server 10g AS Infrastructure


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/opmn/bin/opmnctl startall
    $ $ORACLE_HOME/bin/emctl start iasconsole
    $ exit
    
  8. Verify the Oracle 9iAS Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/emctl status 
    EMD is up and running : 200 OK
    $ $ORACLE_HOME/dcm/bin/dcmctl getstate -v 
      
    Current State for Instance:iasdb1.psemea14.uk.sun.com
     
        Component               Type          Up Status     In Sync Status
    =======================================================================
    1   HTTP Server             ohs           Up            True
    2   OC4J_DAS                oc4j          Up            True
    3   OC4J_Demos              oc4j          Down          True
    4   home                    oc4j          Down          True
    $ exit
    
  9. Verifying the Oracle Application Server 10g Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/emctl status iasconsole
    TZ set to GB
    
    Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.2
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://oas10g.uk.sun.com:1156/emd/console/aboutApplication
    Oracle Enterprise Manager 10g Application Server Control is running.
    ------------------------------------------------------------------
    Logs are generated in directory /ZFSoracle/oraInfra/sysman/log
    $ $ORACLE_HOME/opmn/bin/opmnctl status
    
    Processes in Instance: IAS.oas10g.uk.sun.com
    -------------------+--------------------+---------+---------
    ias-component      | process-type       |     pid | status
    -------------------+--------------------+---------+---------
    LogLoader          | logloaderd         |     N/A | Down
    dcm-daemon         | dcm-daemon         |    6135 | Alive
    DSA                | DSA                |     N/A | Down
    OC4J               | OC4J_SECURITY      |    4781 | Alive
    HTTP_Server        | HTTP_Server        |    4546 | Alive
    OID                | OID                |    4558 | Alive
    
    $ exit
    
  10. Stop the Oracle 9iAS Application Server or Oracle Application Server 10g Infrastructure.

    Perform this step from the global zone or zone where you installed Oracle 9iAS Application Server Infrastructure or Oracle Application Server 10g Infrastructure.

    For Oracle 9iAS Application Server Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/emctl stop
    $ $ORACLE_HOME/opmn/bin/opmnctl stopall
    $ $ORACLE_HOME/bin/oidctl server=oidldapd configset=0 instance=1 stop
    $ $ORACLE_HOME/bin/oidmon stop
    

    For Oracle Application Server 10g Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/emctl stop iasconsole
    $ $ORACLE_HOME/opmn/bin/opmnctl stopall
    
  11. Stop the Oracle Database and Listener.

    Perform this step from the global zone or zone where you installed Oracle 9iAS Application Server Infrastructure or Oracle Application Server 10g Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/lsnrctl stop
    $ $ORACLE_HOME/bin/sqlplus "/ as sysdba"
    SQL> shutdown immediate
    SQL> quit
    
  12. Logout from the zone, if a zone is being used.


    # exit
    
  13. Unmount the highly available local file system.

    Perform this step in the global zone only.

    1. If a non ZFS highly available local file system is being used for Oracle Application Server.

      1. If the global zone is being used for Oracle Application Server.


        # umount oracle-application-server-highly-available-local-file-system
        
      2. If a zone is being used for Oracle Application Server.

        Unmount the highly available local file system from the zone.


        # umount /zonepath/root/oracle-application-server-highly-available-local-file-system
        
    2. If a ZFS highly available file system is being used for Oracle Application Server.


      # zpool export -f HAZpool
      
  14. Unplumb the Infrastructure logical IP address.


    # ifconfig interface removeif logical-hostname
    
  15. Relocate the shared storage to another node and mount the highly available local file system.

    Perform this step on another node of the cluster.

    1. If a non ZFS highly available local file system is being used for the Oracle Application Server files.

      Ensure the node has ownership of the disk set or disk group.

      For Solaris Volume Manager.


      # metaset -s disk-set -t
      

      For Veritas Volume Manager.


      # vxdg -C import disk-group
      # vxdg -g disk-group startall
      
      1. If the global zone is being used for Oracle Application Server.


        # mount highly-available-local-file-system
        
      2. If a zone is being used for Oracle Application Server.

        Mount the highly available local file system on one of the zones being used .


        # mount -F lofs highly-available-local-file-system \
        > /zonepath/root/highly-available-local-file-system
        
    2. If a ZFS highly available file system is being used for Oracle Application Server.

      1. If the global zone is being used for Oracle Application Server.


        # zpool import -R / HAZpool
        
      2. If a zone is being used for Oracle Application Server.


        # zpool import -R /zonepath/root HAZpool
        
  16. Plumb the Oracle Application Server logical hostname.

    Perform this step on another node of the cluster.

    1. If the global zone is being used for Oracle Application Server.


      # ifconfig interface addif logical-hostname up
      
    2. If a zone is being used for Oracle Application Server.


      # ifconfig interface addif logical-hostname up zone zonename
      
  17. Login to the zone, if a zone is being used.


    # zlogin zonename
    
  18. Start the Oracle Database and Listener


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/lsnrctl start
    $ $ORACLE_HOME/bin/sqlplus "/ as sysdba"
    SQL> startup
    SQL> quit
    
  19. Start the Oracle Application Server Infrastructure.

    For Oracle 9iAS Application Server Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/oidmon start
    $ $ORACLE_HOME/bin/oidctl server=oidldapd configset=0 instance=1 start
    $ $ORACLE_HOME/opmn/bin/opmnctl startall
    $ $ORACLE_HOME/bin/emctl start
    $ exit
    

    For Oracle Application Server 10g AS Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/opmn/bin/opmnctl startall
    $ $ORACLE_HOME/bin/emctl start iasconsole
    $ exit
    
  20. Verify the Oracle Application Server 9i Infrastructure.


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/emctl status 
    EMD is up and running : 200 OK
    $ $ORACLE_HOME/dcm/bin/dcmctl getstate -v 
      
    Current State for Instance:iasdb1.psemea14.uk.sun.com
     
        Component               Type          Up Status     In Sync Status
    =======================================================================
    1   HTTP Server             ohs           Up            True
    2   OC4J_DAS                oc4j          Up            True
    3   OC4J_Demos              oc4j          Down          True
    4   home                    oc4j          Down          True
    $ exit
    
  21. Verifying the Oracle Application Server 10g Infrastructure


    # su - oracle-application-server-userid
    $ $ORACLE_HOME/bin/emctl status iasconsole
    TZ set to GB
    
    Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.2
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    http://oas10g.uk.sun.com:1156/emd/console/aboutApplication
    Oracle Enterprise Manager 10g Application Server Control is running.
    ------------------------------------------------------------------
    Logs are generated in directory /ZFSoracle/oraInfra/sysman/log
    $ $ORACLE_HOME/opmn/bin/opmnctl status
    
    Processes in Instance: IAS.oas10g.uk.sun.com
    -------------------+--------------------+---------+---------
    ias-component      | process-type       |     pid | status
    -------------------+--------------------+---------+---------
    LogLoader          | logloaderd         |     N/A | Down
    dcm-daemon         | dcm-daemon         |    6135 | Alive
    DSA                | DSA                |     N/A | Down
    OC4J               | OC4J_SECURITY      |    4781 | Alive
    HTTP_Server        | HTTP_Server        |    4546 | Alive
    OID                | OID                |    4558 | Alive
    
    $ exit
    
  22. Logout from the zone, if a zone is being used.


    # exit
    
  23. Unmount the highly available local file system.

    Perform this step in the global zone only.

    1. If a non ZFS highly available local file system is being used for Oracle Application Server.

      1. If the global zone is being used for Oracle Application Server.


        # umount oracle-application-server-highly-available-local-file-system
        
      2. If a zone is being used for Oracle Application Server.

        Unmount the highly available local file system from the zone.


        # umount /zonepath/root/oracle-application-server-highly-available-local-file-system
        
    2. If a ZFS highly available file system is being used for Oracle Application Server.


      # zpool export -f HAZpool
      
  24. Unplumb the Oracle Application Server logical hostname.


    # ifconfig interface removeif logical hostname