3 Update the Oracle Fusion Applications and Oracle Identity Management Databases

This section describes how to update an Oracle Fusion Applications database and Oracle Identity Management database before an upgrade. The following topics are discussed:

The steps in this and the following sections are downtime activities and can be planned and performed in a separate downtime window prior to the upgrade.

3.1 Check Database Version

Before proceeding, ensure that the Oracle Database version is 11.2.0.4. All of the patches discussed in this section require this database version. If you are upgrading from Release 8 (11.1.8.0.0), you must upgrade the Fusion Applications and IDM databases from Oracle Database version 11.2.0.3 to 11.2.0.4. This is a pre-requisite to upgrade to Fusion Applications Release 12 (11.12.x.0.0).

It is a best practice to apply these patches on Identity Management databases to keep both the Oracle Fusion Application database and Identity Management database synchronized. It is also a best practice to back up both of these databases before patching. See Back Up and Recover Oracle Fusion Applications in the Oracle Fusion Applications Administrator's Guide.

3.2 Apply Database Patches for Release 12 (Solaris Only)

To apply the certified database (DB) bundle patch and to upgrade the fusionapps database on Solaris platforms, perform the following steps:

  1. Apply the version of OPatch that is delivered in the repository on the database host as follows:
    export  ORACLE_HOME=<Fusionapps DB oracle home >
    cd $ORACLE_HOME 
    mv -f  OPatch OPatch_orig 
    unzip 
    <REPOSITORY>/installers/database_upgrade/opatch/p6880880_112000_SOLARIS64.zip 
    
  2. Execute catsem.sql as shown in the following example and confirm the MDSYS schema creation is successful:
     @$ORACLE_HOME/md/admin/catsem.sql 
    
    SQL> select namespace, attribute, value, description 
    from mdsys.rdf_parameter 
    where namespace = 'MDSYS' and attribute = 'SEM_VERSION';
    
            NAMESPACE                      ATTRIBUTE              VALUE             DESCRIPTION 
    -------------------------------------------------------------------------------------------------------- 
            MDSYS                          SEM_VERSION            11204             VALID
    
  3. Shutdown the Fusion Applications (FA) DB.
  4. Apply the DB patches as follows:
    cd <REPOSITORY>/installers/database_upgrade/psu  
    $ORACLE_HOME/OPatch/opatch napply
    
     cd  <REPOSITORY>/installers/database_upgrade/patch  
    $ORACLE_HOME/OPatch/opatch napply
    
  5. Restart the FA DB and perform the following post installation steps:
    1. Connect to the FA DB and execute the following sql script with the given arguments:
       @$ORACLE_HOME/rdbms/admin/catbundle.sql  exa apply
      
    2. Run the following sql script to recompile the invalid objects created in the DB:
      @$ORACLE_HOME/rdbms/admin/utlrp.sql
      
  6. Execute the following query to check if any invalid objects are present in the database after the upgrade:
    SELECT owner, object_type, object_name FROM dba_objects WHERE status = 'INVALID' ORDER BY owner, object_type, object_name;
    
    Proceed to Steps 7 and 8 only if the query returns any rows.
  7. Log in to the FA DB as sys user and execute the following grants:
    GRANT SELECT ON CRM_FUSION_SOAINFRA.WFTASK TO FUSION; 
    GRANT SELECT ON CRM_FUSION_SOAINFRA.WFMESSAGEATTRIBUTE TO FUSION; 
    GRANT SELECT ON CRM_FUSION_SOAINFRA.WFASSIGNEE TO FUSION; 
    GRANT SELECT ON CRM_FUSION_SOAINFRA.WFTASK TO FUSION_RUNTIME; 
    GRANT SELECT ON CRM_FUSION_SOAINFRA.WFMESSAGEATTRIBUTE TO FUSION_RUNTIME; 
    GRANT SELECT ON CRM_FUSION_SOAINFRA.WFASSIGNEE TO FUSION_RUNTIME; 
    
  8. Run the following script to re-compile the invalid objects:
    @$ORACLE_HOME/rdbms/admin/utlrp.sql
    

3.3 Apply Exadata Patches for Release 12

To upgrade to Oracle Fusion Applications Release 12 (11.12.x.0.0), use the certified RDBMS patch 11.2.0.4.160811FA-DBBP (11gR2).

If you are using the Oracle Exadata Database Machine, download the latest P4FA from My Oracle Support to get the quarterly Exadata database patch as well as the one-off Exadata patches that are specifically required for your platform. After downloading the latest P4FA, it is possible to find these Exadata quarterly patches under the rdbms_version directory, where version is the database version. An example of the directory path is as follows:
rdbms_12.1.0.2.0/exadata

After downloading and unzipping the latest P4FA, perform the following steps:

The examples in this procedure use linux64 as the platform.

  1. Get opatch patch from the rdbms_12.1.0.2.0/exadata/linux64/opatch/ directory.

  2. Apply the Exadata bundle that is located under the rdbms_12.1.0.2.0/exadata/linux64/exadata_bundles/ directory.

  3. Apply the one-off patches from the generic and linux64 directories as shown in the following example:

    The one-off patches can be applied in any order.

    • rdbms_12.1.0.2.0/exadata/generic/one_off_patches/*

    • rdbms_12.1.0.2.0/exadata/linux64/one_off_patches/*

See Apply Technical Patch Bundles: P4FA in the Oracle Fusion Applications Patching Guide.

3.3.1 Tune Database Parameters Manually

This section provides the parameters that need to be manually tuned in both the Fusion Applications (FA) database and the Oracle Identity Manager (IDM) database.

FA Database

The following table displays the FA database parameters to be tuned manually. Update these parameters to the recommended values:

Table 3-1 Recommended Values for FA Database Parameters for Manual Tuning

Parameter Type Location Recommended Value

AUDIT_SYS_OPERATIONS

Initialization

Spfile/pfile

FALSE

DISK_ASYNCH_IO

Initialization

Spfile/pfile

TRUE

RESOURCE_MANAGER_PLAN

Disk IO

Spfile/pfile

FUSIONAPPS_PLAN

FILESYSTEMIO_OPTIONS

Disk IO

Spfile/pfile

Unset so the database chooses a default value based on the platform

INBOUND_CONNECT_TIMEOUT_listener_name

Connection timeout

TNS_ADMIN/listener.ora

120

SQLNET.INBOUND_CONNECT_TIMEOUT

Connection timeout

TNS_ADMIN/sqlnet.ora

130

PARALLEL_MAX_SERVERS

Initialization

Spfile/pfile

12

JOB_QUEUE_PROCESSES

Initialization

Spfile/pfile

12

AUDIT_TRAIL

Initialization

Spfile/pfile

DB, EXTENDED

SQL Tuning Advisor Job

Automated Maintenance Tasks

Database

Disable

Segment Advisor job

Automated Maintenance Tasks

Database

Disable

IDM Database

The following are the recommended redo log files sizes:
  • 11g Database: The default is 0.05GB but 2GB for each redo log file is recommended for improving the redo log performance.

  • 12c Database: The default is 0.05GB but 2GB for each redo log file is recommended for improving the redo log performance. The 12c database recommended parameters will apply after the upgrade to Release 12 is done and the 11g database is upgraded to 12c.

The following table displays the IDM database parameters to be tuned manually. Update these parameters to the recommended values:

Table 3-2 Recommended Values for IDM Database Parameters for Manual Tuning

Parameter Type Location Recommended Value

job_queue_processes

Initialization

Spfile

12

shared_servers 

Initialization

Spfile

0

_active_session_legacy_behavior

Initialization

Spfile

TRUE

3.4 Ensure FUSION_OTBI Schema Version Registry

Perform this step if you are upgrading from a Release 11.1.8.x.0 environment to Release 11.12.x.0.0.

Run the following command in your Oracle Fusion Database:
select * from schema_version_registry where 
OWNER='FUSION_OTBI' and COMP_ID='ATGLITE_OTBI';
The command should return records. If no records are returned, run the following SQL statement:
INSERT INTO SCHEMA_VERSION_REGISTRY 
(COMP_ID,COMP_NAME,MRC_NAME,MR_NAME,MR_TYPE,OWNER,VERSION,STATUS,UPGRADED,START_TIME,MODIFIED) values ('ATGLITE_OTBI','Oracle Transactional Business Intelligence- ATGLITE','FUSION_OTBI','ATGLITE_OTBI','ATGLITE_OTBI','FUSION_OTBI','11.1.1.7.0','VALID','N',null,null)

3.5 Install and Run Oracle Fusion Applications Repository Creation Utility (Release 8 Solaris Platforms Only) 

If Oracle Fusion Applications Release 8 is being run on a Solaris platform only, perform the following steps to add schemas that are introduced between Release 8 and Release 11 along with new schemas introduced in Release 12:

  1. Copy or mount the Oracle Fusion Applications Release 12 Repository on a Linux machine.

  2. Locate the rcuHome_fusionapps_linux.zip file in REPOSITORY_LOCATION/installers/apps_rcu_11g/linux and unzip its contents. This location is referred to as RCU_HOME.

  3. Run the following command from RCU_HOME to create the required schemas:

    RCU_HOME/bin/rcu -silent -createRepository -databaseType ORACLE -connectString db_server:db_port/db_sid -dbUser sys -dbRole 
    sysdba -schemaPrefix FUSION -component FUSION_EDQCONFIG2 -component FMW_RUNTIME  
    -component FUSION_EDQRESULTS1 -component FUSION_INTG_CURRENT -component FUSION_EDQRESULTS2 -component FUSION_RDF 
    -component LCM_SUPER_ADMIN -component DVACCTMGR -component FUSION_INTG_PREVIOUS -component FUSION_INTG_FINAL  
    -component FUSION_GRC -component DVOWNER -component FUSION_EDQCONFIG1 -component LCM_OBJECT_ADMIN -component LCM_EXP_ADMIN -component FUSION_EDQFUSION 
    -component FUSION_RO -component LCM_USER_ADMIN  -component FUSION_BIA_CLOUD 
    -component FUSION_ERO  -component HED_FUSION_MDS_SOA  -component FUSION_OPSS  -component HED_FUSION_SOAINFRA 
    
  4. Provide the passwords for the following components:

    Sys password 
    FUSION_EDQCONFIG2 password 
    FMW_RUNTIME password 
    FUSION_INTG_CURRENT password 
    FUSION_EDQRESULTS1 password 
    FUSION_EDQRESULTS2 password 
    FUSION_RDF password 
    LCM_SUPER_ADMIN password 
    DVACCTMGR password 
    FUSION_INTG_PREVIOUS password 
    FUSION_INTG_FINAL password 
    FUSION_GRC password 
    DVOWNER password 
    FUSION_EDQCONFIG1 password 
    LCM_OBJECT_ADMIN password 
    LCM_EXP_ADMIN password 
    FUSION_EDQFUSION password 
    FUSION_RO password 
    LCM_USER_ADMIN password 
    FUSION_BIA_CLOUD password 
    FUSION_ERO password 
    HED_FUSION_MDS_SOA password 
    FUSION_OPSS password 
    HED_FUSION_SOAINFRA password
    

3.6 Enable Oracle Java Virtual Machine in the Database

Enable Oracle Java Virtual Machine (OJVM) by performing the following steps:

  1. Download the ojvmctrl patch 23341410 from My Oracle Support.
  2. Unzip the patch to a stage directory, for example, STAGE_DIR.
  3. Run the following command:
    cd $STAGE_DIR/bin
    
  4. Enable JAVA Development by running the following command:
    sh ojvmctrl.sh -mode enable -appbase APPLICATIONS_BASE -stage
    

3.7 Enable RDF Option in the Database

Perform this step only after you complete the Enable Oracle Java Virtual Machine in the Database step and if the upgrade to Release 12 is from Release 8 or Release 9. Skip this step if the upgrade starting point is Release 10. OSN components introduced in 11.1.10.x.0 require the enablement of the Resource Description Framework (RDF) option in the database prior to the upgrade. This option must be enabled only in the Oracle Fusion Applications database.

To enable RDF, connect to the database as the SYS user with SYSDBA privileges (SYS AS SYSDBA, and enter the SYS account password when prompted). Then, start SQL*Plus, and enter the following statement:

Unix: @$ORACLE_HOME/md/admin/catsem.sql

For more information, see Enabling RDF Semantic Graph Support in a New Database Installation in the Oracle Spatial and Graph RDF Semantic Graph Developer's Guide.