Vous êtes sur la page 1sur 3

Applying Patch Sets / Interim Patches with Physical Standby

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

4. Cancel managed recovery on the standby database.


SQL> recover managed standby database cancel;
5. Shutdown the standby instance on the standby host. 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
6. Run the Installer and install the patchset on both primary and standby host.
% ./runInstaller
If this is an interim patch, run opatch per the patch README.
If using Real Application Clusters, be sure the install has propagated to
the other nodes if using private ORACLE_HOMEs. Please see the Patch
Set readme for specific instructions.
7. Once the patchset/patch has been installed on on all hosts / nodes startup
the standby listener standby host.
% lsnrctl start
8. Startup nomount the standby database.
% sqlplus "/ as sysdba"
SQL> startup nomount
9. Mount the standby database.
SQL> alter database mount standby database;
10. Place the standby database in managed recovery mode.
SQL> recover managed standby database nodelay disconnect;
11. Startup the primary instance on the primary host.
% sqlplus "/ as sysdba"
SQL> startup migrate
12. Ensure that remote archiving to the standby database is functioning correctly
by switching logfiles on the primary and verifying that v$archive_dest.status
is valid. If you are not performing remote archiving make note of the
current archive log sequence.
SQL> alter system archive log current;
SQL> select dest_id, status from v$archive_dest;
13. On the primary instance run the following script:

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

Vous aimerez peut-être aussi