Académique Documents
Professionnel Documents
Culture Documents
Database in Place
Subject: Applying Patch Sets / Interim Patches with Physical Standby Database in Place
Doc ID: Note:187242.1 Type: REFERENCE
Last Revision Date: 09-FEB-2006 Status: PUBLISHED
PURPOSE
------The procedures below contain information about applying a patchset to
your current release of Oracle for a configuration that includes one or
more physical standby databases. This information only applies to release
9.0.1 and higher installations of Oracle on UNIX.
For logical standby, please refer to the following:
Note 210989.1 'Data Guard 9i Applying Patch Sets / Interim Patches
with Logical Standby Database in Place'
SCOPE & APPLICATION
------------------These procedures are to be used in conjunction with the ones contained within
the Patch Set readme. This document complements and supplements the existing
Patch Set readme; it does not replace the current documentation.
This instructions will also need to be used for interim patch installs
and de-installs IF the interim patch contains any SQL scripts that must
be run after the patch install.
If you are upgrading a system that has Real Application Clusters installed, then
most of the actions described should be performed on only one node of the
system. You should perform the actions described on only one node unless
instructed otherwise in a particular step.
Procedure to Apply a Patch Set with physical Standby Database in Place
========================================================================
1. Log in to the oracle account on both the primary and standby hosts and make
sure the environment is set to the correct ORACLE_HOME and ORACLE_SID.
2. On both the primary and standby host uncompress and untar the downloaded
patch set / interim patch file into a new directory.
3. Shut down the existing Oracle Server instance on the primary host with normal
or immediate priority. Stop all listeners, agents and other processes running
against the ORACLE_HOME. If using Real Application Clusters perform this step
on all nodes.
SQL> shutdown immediate
% agentctl stop
% lsnrctl stop
SQL> @?/rdbms/admin/catpatch.sql
For the interim patch, run any scripts as outlined in the README.
14. Once the catpatch.sql script / patch SQL scripts completes make note of the
current log sequence and issue the following command:
SQL> alter system archive log current;
15. Verify the standby database has been recovered to the log sequence from
step 12.
SQL> select max(sequence#) from v$log_history;
16. On the primary instance run the following command:
SQL> alter system disable restricted session;
17. Complete the remainder of the "Post Install Actions" from the Patch Set
readme on the primary host. Please note that it is not necessary to shudown
the standby in conjuction with the primary during the "Post Install Actions".
18. Once all "Post Install Actions" have been completed verify the standby
database has been recovered to the last archive log produced by the primary.
On the primary:
SQL> select max(sequence#) from v$archived_log;
On the standby:
SQL> select max(sequence#) from v$log_history;
Patrick said...
if you are using the ORACLE BROKER, you need to DISABLE the configuration on the broker
before ANYTHING..