3 Upgrading and Preparing Your Oracle Databases for 12c (12.2.1)

This chapter describes how to upgrade your database to a supported version prior to upgrade.

This chapter contains the following sections:

Note:

When upgrading to 12c (12.2.1), your existing database must be used for the upgrade. Do not create a new database.

3.1 Understanding the 12c (12.2.1) Database Requirements

Many Oracle Fusion Middleware products require database schemas prior to domain configuration.

To find a certified database for your operating system, see the certification document for your release on the Oracle Fusion Middleware Supported System Configurations page.

To make sure your database is properly configured for schema creation, see "Verifying Requirements for Oracle Repository Creation Utility" in the Oracle Fusion Middleware System Requirements and Specifications document.

Note:

Only a certified database can be used for the Oracle Fusion Middleware Infrastructure standard installation topology.

The Oracle Platform Security Services (OPSS) schema is not supported on third-party databases for this release.

For SOA Upgrades Only: When installing or identifying a database to use with Oracle SOA Suite, there are additional considerations, including the size and profile of the database and its ability to store data for large numbers of Oracle SOA Suite composite applications. For more information, see the following resources:

After your database is properly configured, you can create your product schemas:

  • The Repository Creation Utility (RCU) is the tool used to create schemas in your database. The Repository Creation Utility is included in each 12c distribution, unlike Fusion Middleware 11g, which required a separate download and installation of RCU. For more information, see Installing and Configuring the Oracle Fusion Middleware Infrastructure.

  • Refer to your product installation guides for the specific schemas (if any) required by your Oracle Fusion Middleware product along with instructions to create the schemas.

  • Refer to Creating Schemas with the Repository Creation Utility for more information about the Repository Creation Utility.

3.2 Understanding Database Certification Changes in 12c

It is important that you review the very latest information on certified databases for Oracle Fusion Middleware before proceeding with your database upgrade. For more information, see the Certification Matrix for 12c (12.2.1).

The certification matrix and system requirements documents should be used in conjunction with each other to verify that your environment meets the necessary requirements for installation. The Oracle Fusion Middleware 12c software requirements included in this guide were accurate at the time this manual was published.

Note the following important changes for 12c:

  • Oracle XE is not supported.

  • Oracle Database Users: Oracle Fusion Middleware only supports schemas in a byte-mode database. The NLS_LENGTH_SEMANTICS initialization parameter, on the database where the schemas reside, must be set to BYTE; setting this parameter to CHAR is not supported.

    If NLS_LENGTH_SEMANTICS is set to CHAR, then the Upgrade Assistant will report the following exception:

    JDBC SQLException - ErrorCode: 1450SQLState:72000 Message: ORA-01450: maximum key length (6398) exceeded
    

    To check the values of this parameter using SQL*Plus, you can use the show parameters command:

    SQL> sqlplus "sys/<password> as sysdba"
    SQL> show parameters nls_length_semantics
    

    Replace <password> with the actual password for the SYS user.

    Alternatively, you can check the values by querying the V$PARAMETER view:

    SQL> sqlplus "sys/password as sysdba"
    SQL> select name,value from v$parameter;
    

    For more information, refer to you database administration documentation.

Note:

The information provided in this chapter was accurate at time of publication. Always refer to the Oracle Fusion Middleware 12c Certifications Matrix for the latest information.

3.3 Determining the Upgrade Path for Upgrading Oracle Database

The path that you must take to upgrade to a new Oracle Database release depends on the release number of your current database. It might not be possible to directly upgrade from your current release of Oracle Database to the latest release. Depending on your current release, you might be required to upgrade through one or more intermediate releases to upgrade to the new Oracle Database.

For example, if the current database is running release 9i, then follow these steps:

  1. Upgrade release 9.0.1.4 to release 10.2.0.4 using the instructions in Oracle Database Upgrade Guide Release 2 (10.2).
  2. Upgrade release 10.2.0.4 to the new Oracle Database 11g release using the instructions in .

Table 3-1 contains the required upgrade path for each release of Oracle Database. Use the upgrade path and the specified documentation to upgrade your database. The information provided below was accurate at time of publication. Always refer to the Oracle Fusion Middleware 12c Certifications Matrix for the latest information.

Table 3-1 Supported Upgrade Paths for Upgrading Oracle Database

Current Release Upgrade Path

9.0.1.3 (or earlier)

Direct upgrade is not supported. Upgrade to an intermediate Oracle Database release before you can upgrade to the new Oracle Database 11g release, as follows:

  • 9.0.1.3 (or earlier) -> 9.0.1.4 -> 10.2.0.4 -> 11.2

When upgrading to an intermediate Oracle Database release, follow the instructions in the intermediate release's documentation. Then, upgrade the intermediate release database to the new Oracle Database 11g release using the instructions in "Upgrading to the New Release of Oracle Database..

9.2.0.8

10.1.0.5

10.2.0.2

11.1.0.6

12.1.0.1

Direct upgrade to Oracle Database 11g release is supported from 9.2.0.8 or higher, 10.1.0.5 or higher, 10.2.0.2 or higher, and 11.1.0.6 or higher.

For release 9.2.0.3, you must first upgrade to an intermediate Oracle Database release, as follows:

9.2.0.3 (or earlier) -> 9.2.0.8 -> 11.1.0.7

9.2.0.3 (or earlier) -> 9.2.0.8 -> 11.2

To upgrade to a new Oracle Database release, follow the instructions in "Upgrading to the New Release of Oracle Database.

3.4 Verifying Your Schemas Are Ready for Upgrade

Before running Upgrade Assistant, you should make sure that your supported database is up and running and that the schemas you want to upgrade are at versions that are supported for upgrade.

3.4.1 Task 1: Verifying Schema Versions

When the schemas are created in your database, RCU creates and maintains a table called schema_version_registry. This table contains schema information such as version number, component name and ID, date of creation and modification, and custom prefix.

Before you run the Upgrade Assistant, make sure that you have verified that the schemas you want to upgrade are supported for an upgrade to this version of Oracle Fusion Middleware. Complete instructions for verifying schema version information is described in "Identifying Schemas that Can be Upgraded with the Upgrade Assistant" in Upgrading with the Upgrade Assistant.

3.4.2 Task 2: Checking for Invalid Database Objects

If you are using an Oracle database, you should recompile database objects before running the Upgrade Assistant to check for invalid objects before the upgrade. Connect to the database as SYS and run the following from SQL*Plus:

SELECT owner, object_name FROM all_objects WHERE status='INVALID';

Take note of any invalid objects and run the following query for more information. The existence of invalid database objects may prevent the upgrade from completing successfully.

/rdbms/admin/utlrp.sql

To recompile just the objects that belong to a single Oracle Fusion Middleware schema, you can use the Oracle Database stored procedure dbms_utility.compile_schema as shown in the example below:

SQL> execute
dbms_utility.compile_schema('1213_IAU');
PL/SQL procedure successfully completed 

Note:

These procedures should be used again after running the Upgrade Assistant for verification.

3.5 Applying the Latest Patch Set Updates and Any Required Patches

Potential interoperability and upgrade issues can be avoided by making sure you have applied the latest patch sets, and that you have reviewed the list of recommended patches that are designed to help you avoid any problems during upgrade.

For more information, see the Upgrade chapter of the Release Notes for your platform. For example, if you are using a Linux operating system, refer to "Patches Required to Address Specific Upgrade and Compatibility Requirements" in the Oracle® Application Server Release Notes .

For additional information about database patching requirements, see "Review System Requirements and Specifications" in the Planning an Installation of Oracle Fusion Middleware.