0% found this document useful (0 votes)
244 views4 pages

Psu Patch Steps

The document provides instructions for patching Oracle Grid Infrastructure and database homes using the OPatch utility. It describes running commands like opatchauto apply to patch the GI home and all database homes together. For non-shared homes, it describes stopping processes, unmounting ACFS, patching each home individually, remounting ACFS, and restarting processes on each node. The document also lists 5 manual steps for applying the patch including running pre/post scripts.

Uploaded by

chandu518cse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
244 views4 pages

Psu Patch Steps

The document provides instructions for patching Oracle Grid Infrastructure and database homes using the OPatch utility. It describes running commands like opatchauto apply to patch the GI home and all database homes together. For non-shared homes, it describes stopping processes, unmounting ACFS, patching each home individually, remounting ACFS, and restarting processes on each node. The document also lists 5 manual steps for applying the patch including running pre/post scripts.

Uploaded by

chandu518cse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

-- 2.1.

1 OPatch Utility Information

-- 2.1.2 OCM Configuration

As the GI home owner execute:

$ <ORACLE_HOME>/OPatch/ocm/bin/emocmrsp

Note: as latest opatch doesn't contain OCM anymore, the option "-ocmrf" is
unnecessary if latest opatch is being used,
refer to the following for details:

-- 2.1.3 Validation of Oracle Inventory

$ <ORACLE_HOME>/OPatch/opatch lsinventory -oh <ORACLE_HOME>

-- 2.1.4 Unzipping the Patch

-- 2.1.5 One-off Patch Conflict Detection and Resolution

$GRID_HOME/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO% - analyze

-- OPatch Automation for GI

To patch GI home and all Oracle RAC database homes of the same version:

# opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO%


To patch only the GI home:

# opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO% -oh <GI_HOME>


To patch one or more Oracle RAC database homes:

# opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO% -oh


<oracle_home1_path>,<oracle_home2_path>
To roll back the patch from the GI home and each Oracle RAC database home:

# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/%BUGNO%

To roll back the patch from the GI home:

# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/%BUGNO% -oh <path to GI home>


To roll back the patch from the Oracle RAC database home:

# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/%BUGNO% -oh


<oracle_home1_path>,<oracle_home2_path>

--- Case 1.1.2B: Patching the GI Home and the Database Home Together, the GI Home
Is Not Shared, the Database Home Is Not Shared, ACFS May Be Used

For each node, perform the following steps:

1. On the local node, unmount the ACFS file systems. Use instructions in Section
2.6 for unmounting ACFS file systems.

2. On the local node, apply the patch to the GI home and to the Database home.
As root user, execute the following command:

# opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO%


This operation will patch both the CRS home and the Database home.

--- Case 3: Patching GI Home Alone

You should use the following instructions if you prefer to patch Oracle GI (Grid
Infrastructure) home alone with this patch.

Case 3.1: Non-Shared GI Home

If the GI home is not shared then use the following instructions to patch the home.

Case 3.1.1: ACFS File System Is Not Configured

Follow these instructions in this section if the GI home is not shared and none of
the Oracle database homes use ACFS file system for its software files.

Execute the following on each node of the cluster.

As root user execute:

# opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO% -oh <GI_HOME>


Case 3.1.2: ACFS File System Is Configured

Repeat Steps 1 through 6 for each node in the cluster:

1. From the Oracle database home, stop the Oracle RAC database running on that
node.

As the database home owner execute:

$ <ORACLE_HOME>/bin/srvctl stop instance -d <db-unique-name> -n <node_name>


2. Unmount all ACFS file systems on this node using instructions in Section 2.6.

3. Apply the patch to the GI home on that node using the opatchauto command.

Execute the following command on that node in the cluster.

As root user execute:

# opatchauto apply <UNZIPPED_PATCH_LOCATION>/%BUGNO% -oh <GI_HOME>


4. 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.

5. Remount ACFS file systems on that node. See Section 2.7 for instructions.

6. Restart the Oracle database on that node that you have previously stopped in
Step 1.

As the database home owner execute:

$ <ORACLE_HOME>/bin/srvctl start database -d <db-unique-name> -n <nodename>


** 5 Manual Steps for Apply:
===================================================================================
===========================

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>

2. Run the pre root script.

If this is a GI Home, as the root user execute:

# <GI_HOME>/crs/install/rootcrs.sh -prepatch

3. Patch GI home.

As the GI home owner execute:

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/


%BUGNO%/%OCW TRACKING BUG%

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/


%BUGNO%/%ACFS TRACKING BUG%

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/


%BUGNO%/%DB WLM TRACKING BUG%

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/


%BUGNO%/%DB RU TRACKING BUG%

$ <GI_HOME>/OPatch/opatch apply -oh <GI_HOME> -local <UNZIPPED_PATCH_LOCATION>/


%BUGNO%/%TOMCAT RU TRACKING BUG%
4. Patch DB home.

As the database home owner execute:

$ <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%/custom/scripts/prepatch.sh


-dbhome <ORACLE_HOME>

$ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local


<UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%

$ <ORACLE_HOME>/OPatch/opatch apply -oh <ORACLE_HOME> -local


<UNZIPPED_PATCH_LOCATION>/%BUGNO%/%DB RU TRACKING BUG%

$ <UNZIPPED_PATCH_LOCATION>/%BUGNO%/%OCW TRACKING BUG%/custom/scripts/postpatch.sh


-dbhome <ORACLE_HOME>

5. 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.sh -postpatch

6. 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.

7. 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>

8. For each database instance running on the Oracle home being patched, run the
datapatch utility as described in next table.

You might also like