Oracle® Database Upgrade Guide 11 g Release 2 (11.2) E10819-02 August 2009 Oracle Database Upgrade Guide, 11 g Release 2 (11.2) E10819-02 Copyright © 2002, 2009, Oracle and/or its affiliates. All rights reserved. Primary Author: Tony Morales Contributors: Thomas Baby, Michael Brey, Bridget Burke, Rae Burns, Vickie Carbonneau, Sunil Chakkappen, Ramesh Chakravarthula, Alan Choi, George Claborn, Ian Dai, Mark Drake, Mohammad Faisal, Mark Fallon, Craig B. Foch, Steve Fogel, Leonidas Galanis, Shie-rei Huang, Pat Huey, John Hwee, Rich Long, Venkat Maddali, Matthew McKerley, Mughees Minhas, Wataru Miyoshi, Valarie Moore, Louise Morin, Carol Palmer, Satish Panchumarthy, Robert Pang, Ravi Pattabhi, Naga Prakash, Irfan Rafiq, Mark Ramacher, Kathy Rich, Tsuyoshi Sano, Viv Schupmann, Ranu Sharma, Janelle Simmons, Virender Singh, Jason Straub, Roy Swonger, Carol Tagliaferri, Venkateshwaran Venkataramani, Sam Wegner, Douglas Williams, Terri Winters, Mohamed Ziauddin This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. iii Contents Preface xi Audience xi Documentation Accessibility xii Related Documentation xii Conventions xiii 1 Introduction to the Database Upgrade Process Overview of the Database Upgrade Process 1-1 Oracle Release Numbers 1-5 Running Multiple Oracle Releases 1-5 Install Databases in Multiple Oracle Homes on the Same Computer 1-6 Install Databases in Multiple Oracle Homes on Separate Computers 1-6 Upgrade a Database to the Current Release 1-6 Upgrade Clients to the Current Release 1-6 Compatibility and Interoperability 1-6 What Is Compatibility? 1-7 The COMPATIBLE Initialization Parameter 1-7 What Is Interoperability? 1-8 Using Optimal Flexible Architecture (OFA) 1-9 Converting Databases to 64-bit Oracle Database Software 1-9 About Rolling Upgrades 1-10 Moving From the Standard Edition to the Enterprise Edition 1-11 Moving From the Enterprise Edition to the Standard Edition 1-12 Upgrading from Oracle Database Express Edition to Oracle Database 1-12 2 Preparing to Upgrade Prepare to Upgrade 2-1 Become Familiar with New Oracle Database Features 2-1 Determine the Upgrade Path 2-2 Choose an Upgrade Method 2-3 Database Upgrade Assistant 2-3 Manual Upgrade 2-3 Export/Import 2-4 Choose an Oracle Home Directory 2-5 Develop a Testing Plan 2-5 iv Upgrade Testing 2-5 Minimal Testing 2-6 Functional Testing 2-6 High Availability Testing 2-6 Integration Testing 2-6 Performance Testing 2-6 Volume and Load Stress Testing 2-9 Prepare a Backup Strategy 2-9 Test the Upgrade Process 2-10 Test the Upgraded Test Database 2-10 3 Upgrading to the New Release System Considerations and Requirements 3-1 Oracle ASM is Installed with Oracle Grid Infrastructure 3-2 Upgrading Oracle Clusterware and Automatic Storage Management (ASM) Databases 3-2 Upgrading an Oracle Real Application Clusters (Oracle RAC) Database 3-2 Upgrading System Authentication for Oracle ASM Instances 3-3 Upgrading with Read-Only and Offline Tablespaces 3-3 Upgrading Using Standby Databases 3-4 Upgrading Your Operating System 3-4 Migrating Data to a Different Operating System 3-5 Upgrading Databases That Use Oracle Streams Downstream Capture 3-6 Upgrading Databases That Use Oracle Database Vault 3-6 Install the New Oracle Database Software 3-6 Install the Latest Available Patchset Release and Any Required Patches 3-7 Run the Pre-Upgrade Information Tool 3-8 Pre-Upgrade Information Tool Miscellaneous Warnings 3-12 Deprecated CONNECT Role 3-12 Access Control to Network Utility Packages 3-13 Database Links with Passwords 3-14 TIMESTAMP WITH TIME ZONE Data Type 3-14 Optimizer Statistics 3-14 Invalid Objects 3-15 Save Oracle Enterprise Manager Database Control Data 3-15 Complete Materialized View Refreshes 3-17 Ensure No Files Need Media Recovery 3-18 Ensure No Files Are in Backup Mode 3-18 Resolve Outstanding Distributed Transactions 3-18 Sync Standby Database with the Primary Database 3-18 Purging the Database Recycle Bin 3-18 Run the Oracle Net Configuration Assistant 3-18 Upgrade a Database Using Database Upgrade Assistant 3-19 Using the DBUA Graphical User Interface 3-20 Using DBUA in Silent Mode 3-31 Upgrade a Database Manually 3-34 Back Up the Database 3-35 Prepare the New Oracle Home 3-35 v Upgrade the Database 3-37 Troubleshoot the Upgrade 3-43 Resource Limits 3-43 Manual Workaround for ORA-01408 3-44 Running the DBMS_DST Package After Upgrade Can Result in ORA-01822 3-45 Component Status 3-45 Rerunning the Upgrade 3-45 Cancel the Upgrade 3-46 Upgrade an ASM Instance 3-46 Upgrade an ASM Instance Manually 3-47 Reconfigure Oracle Cluster Synchronization Services 3-47 Prepare the New ASM Oracle Home 3-47 Upgrade ASM 3-48 Troubleshoot the ASM Upgrade 3-50 Cancel the ASM Upgrade 3-51 4 After Upgrading to the New Release Required Tasks After Database Upgrades 4-1 Update Environment Variables (Linux and UNIX Systems Only) 4-1 Upgrade the Recovery Catalog 4-2 Upgrade the Time Zone File Version 4-2 Upgrade Statistics Tables Created by the DBMS_STATS Package 4-2 Upgrade Externally Authenticated SSL Users 4-2 Install Oracle Text Supplied Knowledge Bases 4-3 Update Your Oracle Application Express Configuration 4-3 Configure Fine-Grained Access to External Network Services 4-3 Enable Oracle Database Vault and Revoke the DV_PATCH_ADMIN Role 4-4 Recommended Tasks After Database Upgrades 4-4 Recommended Tasks After All Database Upgrades 4-5 Back Up the Database 4-5 Reset Passwords to Enforce Case-Sensitivity 4-5 Upgrade Automatic Storage Management (ASM) 4-6 Add New Features as Appropriate 4-6 Develop New Administrative Procedures as Needed 4-6 Set Threshold Values for Tablespace Alerts 4-6 Migrate From Rollback Segments to Automatic Undo Mode 4-6 Configure Oracle Data Guard Broker 4-7 Migrate Tables from the LONG Data Type to the LOB Data Type 4-8 Test the Upgraded Production Database 4-8 Recommended Tasks After Upgrading an Oracle Database 10g Release 1 (10.1) Database 4-8 Upgrade Change Data Capture 4-8 Configure Secure HTTP 4-9 Provide Anonymous Access to XML DB Repository Data Through HTTP 4-9 Recommended Tasks After Upgrading an Oracle Express Edition Database 4-10 Tasks to Complete Only After Manual Database Upgrades 4-10 Change Passwords for Oracle-Supplied Accounts 4-10 Migrate Your Initialization Parameter File to a Server Parameter File 4-11 vi Upgrade Oracle Text 4-11 Upgrade the Oracle Cluster Registry (OCR) Configuration 4-12 Adjust the Initialization Parameter File for the New Release 4-12 Setting the COMPATIBLE Initialization Parameter 4-12 Configure Enterprise Manager 4-13 Set CLUSTER_DATABASE Initialization Parameter 4-14 Required Tasks After ASM Upgrades 4-14 Set Environment Variables 4-14 Single-Instance ASM Upgrade 4-14 Cluster ASM Upgrade 4-15 Recommended Tasks After ASM Upgrades 4-16 Reset ASM Passwords to Enforce Case-Sensitivity 4-16 Advance the ASM and Oracle Database Disk Group Compatibility 4-16 Set Up ASM Preferred Read Failure Groups 4-17 Optional Tasks After ASM Upgrades 4-17 Database Upgrade After ASM Upgrade 4-17 Keeping orauser as the Operating System User 4-17 Changing the Operating System User For a Single-Instance Database 4-18 Changing the Operating System User for an Oracle RAC Database 4-18 Tasks to Complete Only After Manual ASM Upgrades 4-18 Upgrade the Oracle Cluster Registry (OCR) Configuration for ASM 4-19 Adjust the ASM Initialization Parameter File for the New Release 4-19 Install and Configure Enterprise Manager Database Control for ASM 4-19 5 Upgrading Your Applications Overview of Upgrading Applications 5-1 Compatibility Issues for Applications 5-1 Upgrading Precompiler and OCI Applications 5-2 Understanding Software Upgrades and Your Client/Server Configuration 5-2 Types of Software Upgrades 5-2 Possible Client/Server Configurations 5-3 Compatibility Rules for Applications When Upgrading Client/Server Software 5-3 Upgrading the Oracle Database Server Software 5-3 Upgrading the Oracle Database Client Software 5-4 Upgrading Options for Your Precompiler and OCI Applications 5-5 Option 1: Leave the Application Unchanged 5-5 Option 2: Precompile or Compile the Application Using the New Software 5-5 Option 3: Change the Application Code to Use New Oracle Database 11g Features 5-6 Upgrading SQL*Plus Scripts and PL/SQL 5-7 Evaluation of Numeric Literals 5-7 Upgrading Oracle Forms or Oracle Developer Applications 5-7 6 Downgrading a Database Supported Releases for Downgrading 6-1 Check for Incompatibilities 6-2 Perform a Full Backup 6-2 Downgrade the Database 6-2 vii Perform Post-Downgrade Tasks 6-8 Downgrading Oracle Clusterware Configuration 6-8 Restoring Oracle Enterprise Manager 6-8 Enabling Oracle Database Vault 6-12 Reload Oracle Application Express 6-13 7 Moving Data Using Data Pump and Export/Import When to Use Data Pump Export/Import Versus Original Export/Import 7-1 Export and Import Requirements 7-2 Export and Import Requirements for Upgrades 7-2 Export and Import Requirements for Downgrades 7-3 Export/Import Usage on Data Incompatible with a Previous Release 7-4 Upgrade the Database Using Export/Import 7-4 Importing a Full Database Using a Network Link 7-5 A Behavior Changes Compatibility and Interoperability Issues in Oracle Database 11g Release 2 (11.2) A-1 Initialization Parameters Deprecated in Oracle Database 11g Release 2 (11.2) A-2 Initialization Parameters Obsolete in Oracle Database 11g Release 2 (11.2) A-2 Static Data Dictionary Views Deprecated in Oracle Database 11g Release 2 (11.2) A-2 Dynamic Performance Views Deprecated in Oracle Database 11g Release 2 (11.2) A-2 Deprecated Features in Oracle Database 11g Release 2 (11.2) A-3 LOG_ARCHIVE_DEST_n Parameters A-3 Compatibility and Interoperability Issues in Oracle Database 11g Release 1 (11.1) A-3 Initialization Parameters Deprecated in Oracle Database 11g Release 1 (11.1) A-4 Initialization Parameters Obsolete in Oracle Database 11g Release 1 (11.1) A-4 Static Data Dictionary Views with Dropped Columns in Oracle Database 11g Release 1 (11.1) A-4 Deprecated Features in Oracle Database 11g Release 1 (11.1) A-5 Automatic Maintenance Tasks Management A-5 New SYSASM Privilege and OSASM Group for ASM Administration A-5 ASM Disk Group Compatibility A-6 COMPUTE STATISTICS and ESTIMATE STATISTICS Clauses A-6 Oracle Data Mining Models and the DMSYS Schema Objects A-6 Oracle Data Mining Scoring Engine A-7 SQL Plan Management and Control of SQL Plan Baselines A-7 Binary XML Support for Oracle XML Database A-8 When Upgrading to Oracle Database 11g Release 1 (11.1) A-8 PL/SQL Native Compilation and Access Control for Network Utility Packages A-8 PL/SQL Native Compilation A-8 Access Control for Network Utility Packages A-9 PL/SQL Control Parameters A-9 Change in WebDAV ACL Evaluation Rules in Oracle XML DB A-9 Summary Management and SQL Access Advisor A-10 SQL Access Advisor Tasks A-10 Standard Edition Starter Database A-10 viii Core Dump Location A-10 New Default Value for UNDO_MANAGEMENT A-11 LOG_ARCHIVE_DEST_n Parameters A-11 SHARED_POOL_SIZE Parameter A-11 JOB_QUEUE_PROCESSES Parameter A-12 Automatic Diagnostic Repository A-12 Compatibility and Interoperability Issues in Oracle Database 10g Release 2 (10.2) A-12 Initialization Parameters Deprecated in Oracle Database 10g Release 2 (10.2) A-13 Initialization Parameters Obsolete in Oracle Database 10g Release 2 (10.2) A-13 Static Data Dictionary Views with Dropped Columns in Oracle Database 10g Release 2 (10.2) A-13 SQL A-13 CONNECT Role A-14 Time Zone Files A-14 New Limit for FAILED_LOGIN_ATTEMPTS A-14 Compatibility and Interoperability Issues in Oracle Database 10g Release 1 (10.1) A-14 Initialization Parameters Deprecated in Oracle Database 10g Release 1 (10.1) A-15 Initialization Parameters Obsolete in Oracle Database 10g Release 1 (10.1) A-15 Static Data Dictionary Views Deprecated in Oracle Database 10g Release 1 (10.1) A-16 Static Data Dictionary Views Obsolete in Oracle Database 10g Release 1 (10.1) A-16 Dynamic Performance Views Deprecated in Oracle Database 10g Release 1 (10.1) A-16 Dynamic Performance Views Obsolete in Oracle Database 10g Release 1 (10.1) A-17 SQL Optimizer A-17 Rule-Based Optimizer Desupported A-17 Optimizer Statistics A-17 COMPUTE STATISTICS Clause of CREATE INDEX A-17 SKIP_UNUSABLE_INDEXES A-18 SQL A-18 Invalid Synonyms After an Upgrade A-18 Manageability A-18 Transaction and Space A-18 Recovery and Data Guard A-19 RMAN A-19 CREATE DATABASE A-20 Oracle Real Application Clusters A-20 Materialized Views A-20 Change Data Capture A-20 Change in the Default Archival Processing to Remote Archive Destinations A-21 Limitations on NCHAR Data Types A-21 PL/SQL Native Compilation A-21 Evaluation of Numeric Literals A-22 Change in Behavior for SESSION_CACHED_CURSORS A-22 New Default Value for DB_BLOCK_SIZE A-23 OPTIMIZER_MAX_PERMUTATIONS and OPTIMIZER_FEATURES_ENABLE A-23 Change in Behavior for LOG_ARCHIVE_FORMAT A-23 New Default Value for PGA_AGGREGATE_TARGET A-23 Change in Behavior for SHARED_POOL_SIZE A-23 Shared Server Parameters A-23 ix New Default Value for DISPATCHERS A-24 New Default Value for SHARED_SERVERS A-24 New Default Value for MAX_SHARED_SERVERS A-24 New Default Value for SHARED_SERVER_SESSIONS A-25 New Default Value for CIRCUITS A-25 New Default Value for MAX_DISPATCHERS A-25 B Gathering Optimizer Statistics Collecting Statistics for System Component Schemas B-1 Creating a Statistics Table B-2 Index x [...]... illustrated in Figure 1–1 1-2 Oracle Database Upgrade Guide Overview of the Database Upgrade Process Figure 1–1 Upgrade Steps Step 1: Prepare to Upgrade Step 2: Test the Upgrade Process Step 3: Test the Upgraded Test Database Step 4: Prepare and Preserve the Production Database Step 5: Upgrade the Production Database Step 6: Tune and Adjust the New Production Database Note: The upgrade steps apply to all operating... Export/Import" Upgrading from Oracle Database Express Edition to Oracle Database To upgrade Oracle Database 10g Express Edition (Oracle Database XE) to Oracle Database 11g, you need to install Oracle Database 11g on the same system as Oracle Database XE and use the Database Upgrade Assistant to perform the upgrade 1-12 Oracle Database Upgrade Guide 2 2 Preparing to Upgrade This chapter describes the... Upgrade Guide Prepare to Upgrade Note: See "Supported Releases for Downgrading" on page 6-1 for information related to downgrading your database Choose an Upgrade Method The following sections describe the upgrade methods you can use to upgrade your database to the new Oracle Database 11g release: ■ Database Upgrade Assistant ■ Manual Upgrade ■ Export/Import Database Upgrade Assistant Database Upgrade. .. Oracle9i, Oracle Database 10g, and Oracle Database 11g databases in multiple (separate) Oracle homes on separate computers and have Oracle8i, Oracle9i, Oracle Database 10g, and Oracle Database 11g clients connecting to any or all of the databases Upgrade a Database to the Current Release You can upgrade an Oracle8i, Oracle9i, Oracle Database 10g, or Oracle Database 11g database to the new Oracle Database 11g... Oracle Database 10g, and Oracle Database 11g clients connecting to the upgraded database Upgrade Clients to the Current Release You can upgrade any or all of your Oracle8i, Oracle9i, Oracle Database 10g, or Oracle Database 11g clients to the new Oracle Database 11g release The new Oracle Database 11g release client can be used to access your Oracle8i, Oracle9i, Oracle Database 10g, and Oracle Database. .. example: CONNECT AS SYSDBA STARTUP UPGRADE Introduction to the Database Upgrade Process 1-9 About Rolling Upgrades CONNECT AS SYSDBA SPOOL UPGRADE. LOG @catupgrd.sql See Also: Your platform-specific installation guide for additional information about 64-bit software installations About Rolling Upgrades A rolling upgrade upgrades different databases, database instances of the same database, or ASM instances in... and Oracle Database 11g installed on the same computer, then the Oracle9i database server can access Oracle9i databases but not Oracle Database 11g databases, and the Oracle Database 11g database server can access Oracle Database 11g databases but not Oracle9i databases See Also: Your operating system-specific Oracle documentation for more information about running multiple releases of Oracle Database. .. to the Database Upgrade Process 1-3 Overview of the Database Upgrade Process Step 2: Test the Upgrade Process ■ Perform a test upgrade using a test database The test upgrade should be conducted in an environment created for testing and should not interfere with the actual production database Step 3: Test the Upgraded Test Database ■ ■ ■ ■ Perform the tests you planned in Step 1 on the test database. .. your database is protected against data loss Step 5: Upgrade the Production Database ■ ■ Upgrade the production database to the new Oracle Database 11g release After the upgrade, perform a full backup of the production database and perform other post -upgrade tasks Chapter 3 describes Steps 4 and 5 when using DBUA or when performing a manual upgrade Chapter 4 describes the backup procedure after the upgrade. .. before upgrading a database to the new Oracle Database 11g release This chapter covers in detail Steps 1 through 3 of the upgrade process that were outlined in "Overview of the Database Upgrade Process" on page 1-1 This chapter covers the following topics: ■ Prepare to Upgrade ■ Test the Upgrade Process ■ Test the Upgraded Test Database See Also: Oracle Database Net Services Administrator's Guide for information . Oracle® Database Upgrade Guide 11 g Release 2 (11.2) E10819-02 August 2009 Oracle Database Upgrade Guide, 11 g Release. release upgrade or patch release upgrade. Overview of the Database Upgrade Process Introduction to the Database Upgrade Process 1-3 Figure 1–1 Upgrade