Wednesday, March 25, 2015

Patch apply manually rac (Doc ID 1641136.1)

5 Manual Steps for Apply/Rollback Patch

Steps for Applying the Patch

Note:
You must stop the EM agent processes running from the database home, prior to patching the Oracle RAC database or GI Home. Execute the following command on the node to be patched.
As the Oracle RAC database home owner execute:
$ <ORACLE_HOME>/bin/emctl stop dbconsole
Execute the following on each node of the cluster in non-shared CRS and DB home environment to apply the patch.
  1. Stop the CRS managed resources running from DB homes.
     
    If this is a GI Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>
    
    If this is an Oracle Restart Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location>
    

    Note:
     You need to make sure that the Oracle ACFS file systems are unmounted (see My Oracle Support document 1494652.1 How to Mount or Unmount ACFS File System While Applying GI Patches?) and all other Oracle processes are shutdown before you proceed.
  2. Run the pre root script.
     
    If this is a GI Home, as the root user execute:
    # <GI_HOME>/crs/install/rootcrs.pl -unlock
    
    If this is an Oracle Restart Home, as the root user execute:
    # <GI_HOME>/crs/install/roothas.pl -unlock
    
  3.  
    Apply the CRS patch using.
     
    As the GI home owner execute:
    $ <GI_HOME>/OPatch/opatch napply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>
    
    As the GI home owner execute:
    $ <GI_HOME>/OPatch/opatch napply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<ACFS Components_number>
    
    As the GI home owner execute:
    $ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<DB_PSU_number>
    
  4.  
    Run the pre script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>
    
  5.  
    Apply the DB patch.
     
    As the database home owner execute:
    $ <ORACLE_HOME>/OPatch/opatch napply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>
    $ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<DB_PSU_number>
    
  6.  
    Run the post script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>
    
  7. Run the post script.
     
    As the root user execute:
    # <GI_HOME>/rdbms/install/rootadd_rdbms.sh
    
    If this is a GI Home, as the root user execute:
    # <GI_HOME>/crs/install/rootcrs.pl -patch
    
    If this is an Oracle Restart Home, as the root user execute:
    # <GI_HOME>/crs/install/roothas.pl -patch
    
  8. If the message, "A system reboot is recommended before using ACFS� is shown, then a reboot must be issued before continuing. Failure to do so will result in running with an unpatched ACFS\ADVM\OKS driver.
  9. Start the CRS managed resources that were earlier running from DB homes.
     
    If this is a GI Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name>
    
    If this is an Oracle Restart Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> 
    
Steps for Rolling Back the Patch From a GI Home
Execute the following on each node of the cluster in non-shared CRS and DB home environment to rollback the patch.
  1. Stop the CRS managed resources running from DB homes.
     
    If this is a GI Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>
    
    If this is an Oracle Restart Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> 
    

    Note:
     You need to make sure that the Oracle ACFS file systems are unmounted (see My Oracle Support document 1494652.1 How to Mount or Unmount ACFS File System While Applying GI Patches?) and all other Oracle processes are shut down before you proceed.
  2. Run the pre root script.
     
    If this is a GI Home, as the root user execute:
    # <GI_HOME>/crs/install/rootcrs.pl -unlock
    
    If this is an Oracle Restart Home, as the root user execute:
    # <GI_HOME>/crs/install/roothas.pl -unlock
    
  3.  
    Roll back the CRS patch.
     
    As the GI home owner execute:
    $ <GI_HOME>/OPatch/opatch rollback -local -id <OCW Components_number> -oh <GI_HOME> 
    $ <GI_HOME>/OPatch/opatch rollback -local -id <ACFS Components_number> -oh <GI_HOME> 
    $ <GI_HOME>/OPatch/opatch rollback -local -id <DB_PSU_number> -oh <GI_HOME> 
    
  4.  
    Run the pre script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>
    
  5.  
    Roll back the DB patch from the database home.
     
    As the database home owner execute:
    $ <ORACLE_HOME>/OPatch/opatch rollback -local -id <OCW Components_number> -oh <ORACLE_HOME> 
    $ <ORACLE_HOME>/OPatch/opatch rollback -local -id <DB_PSU_number> -oh <ORACLE_HOME>
    
  6.  
    Run the post script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>
    
  7. Run the post script.
     
    As the root user execute:
    # <GI_HOME>/rdbms/install/rootadd_rdbms.sh
    
    If this is a GI Home, as the root user execute:
    # <GI_HOME>/crs/install/rootcrs.pl -patch
    
    If this is an Oracle Restart Home, as the root user execute:
    # <GI_HOME>/crs/install/roothas.pl -patch
    
  8. If the message, "A system reboot is recommended before using ACFS� is shown, then a reboot must be issued before continuing. Failure to do so will result in running with an unpatched ACFS\ADVM\OKS driver.
  9. Start the CRS managed resources that were earlier running from DB homes.
     
    If this is a GI Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name>
    
    If this is an Oracle Restart Home environment, as the database home owner execute:
    $ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> 
    
Patching an Oracle RAC Home Installation Manually
Note that USM only patches cannot be applied to a Database home.
  1. Run the pre script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>
    
  2. Apply the DB patch.
     
    As the database home owner execute:
    $ <ORACLE_HOME>/OPatch/opatch napply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>
    $ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<DB_PSU_number>
    
  3. Run the post script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>
    
Rolling Back the Patch from an Oracle RAC Home Installation Manually

  1. Run the pre script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/prepatch.sh -dbhome <ORACLE_HOME>
    
  2. Roll back the DB patch from the database home.
     
    As the database home owner execute:
    $ <ORACLE_HOME>/OPatch/opatch rollback -local -id <OCW Components_number> -oh <ORACLE_HOME>
    $ <ORACLE_HOME>/OPatch/opatch rollback -local -id <DB_PSU_number> -oh <ORACLE_HOME>
    
  3. Run the post script for DB component of the patch.
     
    As the database home owner execute:
    $ <UNZIPPED_PATCH_LOCATION>/<GI_PSU_number>/<OCW Components_number>/custom/server/<OCW Components_number>/custom/scripts/postpatch.sh -dbhome <ORACLE_HOME>

No comments:

Post a Comment

Featured Post

Apply Patch 22191577 latest GI PSU to RAC and DB homes using Opatch auto or manual steps

Patch 22191577: GRID INFRASTRUCTURE PATCH SET UPDATE 11.2.0.4.160119 (JAN2016) Unzip the patch 22191577 Unzip latest Opatch Version in or...