You are on page 1of 2

Page 1 of 2

Upgrading Oracle Database with a Logical Standby Database In Place [ID 437276.1] Modified 01-JUN-2009 In this Document Goal Solution References Type HOWTO

Status PUBL

Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.3 to 11.1 Information in this document applies to any platform. The instructions within this document are supported for the following upgrade scenarios: 10.1.0.x => 10.1.0.x 10.1.0.x => 10.2.0.x 10.2.0.x => 10.2.0.x 10.x.x.x => 11.1.0.x

Goal

This document describes the traditional method for upgrading your Oracle Database software with a logical standby database in describes how to upgrade with a logical standby database in place in a rolling fashion to minimize downtime. Use the steps from o the upgrade process.

Solution

Perform the following steps to upgrade to the newest release of the Oracle Database when a logical standby database is present i

1. Review and perform the steps listed in the "Preparing to Upgrade" chapter of the Oracle Database Upgrade Guide or in the 2. Set the data protection mode to MAXIMUM PERFORMANCE at the primary database, if needed:
SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE PERFORMANCE;

3. On the primary database, stop all user activity and defer the remote archival destination associated with the logical standby
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=DEFER SCOPE=BOTH;

4. Stop SQL Apply on the standby database:


SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY;

5. On the primary database install the newer release of the Oracle software as described in the Oracle Database Upgrade Gui Rate this document

6. On the logical standby database, install the newer release of the Oracle software as described in Oracle Database Upgrade

Steps 5 and 6 can be performed concurrently (in other words, performed at the same time) to reduce downtime during the

7. On the upgraded logical standby database, restart the database and restart SQL Apply. If you are using Oracle RAC, start u If the upgrade was done to any release of 10.2.0.x, the following will need to be set on the logical standby to avoid ORA SQL> ALTER SYSTEM SET EVENTS '1348 trace name context forever, level 1073741824';

Once SQL apply has successfully started, this event will be unset on the next instance bounce or by stopping SQL apply a SQL> ALTER SYSTEM SET EVENTS '1348 trace name context off';

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=437276.1

21.04.2011

Page 2 of 2

SQL> STARTUP SQL> ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE;

If standby redo logs were not configured on the logical standby, the IMMEDIATE clause should be drop

8. Startup the upgraded primary database and allow users to connect. If you are using Oracle RAC, start up the other primary Also, enable archiving to the upgraded logical standby database, as follows:
SQL> STARTUP SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE;

9. Optionally, reset to the original data protection mode if you changed it in Step 2.

References

Related

Products Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition Errors ORA-1403

Back to top Copyright (c) 2007, 2010, Oracle. All rights reserved. Legal Notices and Terms of Use | Privacy Statement

https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=437276.1

21.04.2011

You might also like