Showing posts with label Upgrade. Show all posts
Showing posts with label Upgrade. Show all posts

Wednesday, September 4, 2013

Upgrading Oracle Database 11203 to 12101.

Here I dint show the installation of Oracle 12c RDBMS. Please follow my previous post for the same.
http://dbarohit.blogspot.in/2013/08/installation-of-oracle-12c-cloud.html

You can upgrade the database to 12101 only when the existing database version is higher or equal than 11202.

Step 1.

Download the script dbupgdiag.sql from Oracle support Note. 556610.1
run that script to verify that all the components in dba_registry are valid.
And no invalid data dictionary objects exist in dba_objects.

SQL> @/u01/dbupgdiag.sql

Enter location for Spooled output:

Enter value for 1: /tmp

04_Sep_2013_0105 .log

db11g_



                          *** Start of LogFile ***

  Oracle Database Upgrade Diagnostic Utility       09-04-2013 01:05:36

===============
Hostname
===============

box1.oracle.com

===============
Database Name
===============

DB11G

===============
Database Uptime
===============

01:04 04-SEP-13

=================
Database Wordsize
=================

This is a 64-bit database

================
Software Version
================

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

=============
Compatibility
=============

Compatibility is set as 11.2.0.0.0

================
Archive Log Mode
================

Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     61
Current log sequence           63

================
Auditing Check
================
........
.......
.......


DOC>
DOC>#################################################################
DOC>
DOC> If the JAVAVM component is not installed in the database (for
DOC> example, after creating the database with custom scripts), the
DOC> next query will report the following error:
DOC>
DOC>   select dbms_java.longname('foo') "JAVAVM TESTING" from dual
DOC>   *
DOC>   ERROR at line 1:
DOC>   ORA-00904: "DBMS_JAVA"."LONGNAME": invalid identifier
DOC>
DOC> If the JAVAVM component is installed, the query should succeed
DOC> with 'foo' as result.
DOC>
DOC>#################################################################
DOC>#


JAVAVM TESTING
---------------
foo


                            *** End of LogFile ***



Upload db_upg_diag_db11g_04_Sep_2013_0105.log from "/tmp" directory

SQL>

Step 2.


Run the '$ORACLE_HOME/rdbms/admin/utlrp.sql' to validate the invalid objects in the database till the time all the invalid objects become valid.

[oracle@box1 u01]$ cd /u01/app/oracle/product/12.1.0/db_1/rdbms/admin/

SQL> @utlrp.sql

TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN  2013-09-04 01:07:34

DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC>   objects in the database. Recompilation time is proportional to the
DOC>   number of invalid objects in the database, so this command may take
DOC>   a long time to execute on a database with a large number of invalid
DOC>   objects.
DOC>
DOC>   Use the following queries to track recompilation progress:
DOC>
DOC>   1. Query returning the number of invalid objects remaining. This
DOC>      number should decrease with time.
DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC>   2. Query returning the number of objects compiled so far. This number
DOC>      should increase with time.
DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC>   This script automatically chooses serial or parallel recompilation
DOC>   based on the number of CPUs available (parameter cpu_count) multiplied
DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC>   On RAC, this number is added across all RAC nodes.
DOC>
DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC>   recompilation. Jobs are created without instance affinity so that they
DOC>   can migrate across RAC nodes. Use the following queries to verify
DOC>   whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC>   1. Query showing jobs created by UTL_RECOMP
DOC>         SELECT job_name FROM dba_scheduler_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC>   2. Query showing UTL_RECOMP jobs that are running
DOC>         SELECT job_name FROM dba_scheduler_running_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#

PL/SQL procedure successfully completed.


TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END  2013-09-04 01:07:36

DOC> The following query reports the number of objects that have compiled
DOC> with errors.
DOC>
DOC> If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#

OBJECTS WITH ERRORS
-------------------
                  0

DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#

ERRORS DURING RECOMPILATION
---------------------------
                          0


Function created.


PL/SQL procedure successfully completed.


Function dropped.


PL/SQL procedure successfully completed.

SQL>

Step 3.

Copy the 'preupgrd.sql' and 'utluppkg.sql' from the 12c Oracle_home/rdbms/admin to the temp directory and run those scripts from the sqlplus.
[oracle@box1 12c_upg]$ ls
preupgrd.sql  utluppkg.sql

SQL> @preupgrd.sql
Loading Pre-Upgrade Package...
Executing Pre-Upgrade Checks...
Pre-Upgrade Checks Complete.
      ************************************************************

Results of the checks are located at:
 /u01/app/oracle/cfgtoollogs/db11g/preupgrade/preupgrade.log

Pre-Upgrade Fixup Script (run in source database environment):
 /u01/app/oracle/cfgtoollogs/db11g/preupgrade/preupgrade_fixups.sql

Post-Upgrade Fixup Script (run shortly after upgrade):
 /u01/app/oracle/cfgtoollogs/db11g/preupgrade/postupgrade_fixups.sql

      ************************************************************

         Fixup scripts must be reviewed prior to being executed.

      ************************************************************

      ************************************************************
                   ====>> USER ACTION REQUIRED  <<====
      ************************************************************

 The following are *** ERROR LEVEL CONDITIONS *** that must be addressed
                    prior to attempting your upgrade.
            Failure to do so will result in a failed upgrade.

           You MUST resolve the above errors prior to upgrade

      ************************************************************

SQL> !more /u01/app/oracle/cfgtoollogs/db11g/preupgrade/preupgrade.log
Oracle Database Pre-Upgrade Information Tool 09-04-2013 00:28:56
Script Version: 12.1.0.1.0 Build: 006
**********************************************************************
   Database Name:  DB11G
         Version:  11.2.0.3.0
      Compatible:  11.2.0.0.0
       Blocksize:  8192
        Platform:  Linux x86 64-bit
   Timezone file:  V14
**********************************************************************
                          [Renamed Parameters]
                     [No Renamed Parameters in use]
**********************************************************************
**********************************************************************
                    [Obsolete/Deprecated Parameters]
             [No Obsolete or Desupported Parameters in use]
**********************************************************************
                            [Component List]
**********************************************************************
--> Oracle Catalog Views                   [upgrade]  VALID
--> Oracle Packages and Types              [upgrade]  VALID
--> JServer JAVA Virtual Machine           [upgrade]  VALID
--> Oracle XDK for Java                    [upgrade]  VALID
--> Oracle Workspace Manager               [upgrade]  VALID
--> OLAP Analytic Workspace                [upgrade]  VALID
--> Oracle Enterprise Manager Repository   [upgrade]  VALID
--> Oracle Text                            [upgrade]  VALID
--> Oracle XML Database                    [upgrade]  VALID
--> Oracle Java Packages                   [upgrade]  VALID
--> Oracle Multimedia                      [upgrade]  VALID
--> Oracle Spatial                         [upgrade]  VALID
--> Expression Filter                      [upgrade]  VALID
--> Rule Manager                           [upgrade]  VALID
--> Oracle Application Express             [upgrade]  VALID
--> Oracle OLAP API                        [upgrade]  VALID
**********************************************************************
                              [Tablespaces]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
     minimum required size: 1240 MB
--> SYSAUX tablespace is adequate for the upgrade.
     minimum required size: 1472 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
     minimum required size: 400 MB
--> TEMP tablespace is adequate for the upgrade.
     minimum required size: 60 MB
--> EXAMPLE tablespace is adequate for the upgrade.
     minimum required size: 78 MB

                      [No adjustments recommended]

**********************************************************************
**********************************************************************
                          [Pre-Upgrade Checks]
**********************************************************************
WARNING: --> Process Count may be too low

     Database has a maximum process count of 150 which is lower than the
     default value of 300 for this release.
     You should update your processes value prior to the upgrade
     to a value of at least 300.
     For example:
        ALTER SYSTEM SET PROCESSES=300 SCOPE=SPFILE
     or update your init.ora file.

WARNING: --> Enterprise Manager Database Control repository found in the database

     In Oracle Database 12c, Database Control is removed during
     the upgrade. To save time during the Upgrade, this action
     can be done prior to upgrading using the following steps after
     copying rdbms/admin/emremove.sql from the new Oracle home
   - Stop EM Database Control:
    $> emctl stop dbconsole

   - Connect to the Database using the SYS account AS SYSDBA:

   SET ECHO ON;
   SET SERVEROUTPUT ON;
   @emremove.sql
     Without the set echo and serveroutput commands you will not
     be able to follow the progress of the script.

WARNING: --> Existing DBMS_LDAP dependent objects

     Database contains schemas with objects dependent on DBMS_LDAP package.
     Refer to the Upgrade Guide for instructions to configure Network ACLs.
     USER APEX_030200 has dependent objects.

INFORMATION: --> OLAP Catalog(AMD) exists in database

     Starting with Oracle Database 12c, OLAP is desupported.
     If you are not using the OLAP Catalog component and want
     to remove it, then execute the
     ORACLE_HOME/oraolap/admin/catnoamd.sql script before or
     after the upgrade.

INFORMATION: --> Older Timezone in use

     Database is using a time zone file older than version 18.
     After the upgrade, it is recommended that DBMS_DST package
     be used to upgrade the 11.2.0.3.0 database time zone version
     to the latest version which comes with the new release.
     Please refer to My Oracle Support note number 977512.1 for details.


**********************************************************************
                      [Pre-Upgrade Recommendations]
**********************************************************************

                        *****************************************
                        ********* Dictionary Statistics *********
                        *****************************************

Please gather dictionary statistics 24 hours prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:
    EXECUTE dbms_stats.gather_dictionary_stats;

^^^ MANUAL ACTION SUGGESTED ^^^

**********************************************************************
                     [Post-Upgrade Recommendations]
**********************************************************************

                        *****************************************
                        ******** Fixed Object Statistics ********
                        *****************************************

Please create stats on fixed objects two weeks
after the upgrade using the command:
   EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

^^^ MANUAL ACTION SUGGESTED ^^^

**********************************************************************
                   ************  Summary  ************

 0 ERRORS exist in your database.
 3 WARNINGS that Oracle suggests are addressed to improve database performance.
 2 INFORMATIONAL messages that should be reviewed prior to your upgrade.

 After your database is upgraded and open in normal mode you must run
 rdbms/admin/catuppst.sql which executes several required tasks and completes
 the upgrade process.

 You should follow that with the execution of rdbms/admin/utlrp.sql, and a
 comparison of invalid objects before and after the upgrade using
 rdbms/admin/utluiobj.sql

 If needed you may want to upgrade your timezone data using the process
 described in My Oracle Support note 977512.1
                   ***********************************


The script 'preupgrd.sql' creates one log file and two scripts.

Read  the ' /u01/app/oracle/cfgtoollogs/db11g/preupgrade/preupgrade.log' file for any error or recommendation.

Step 4.

run the 'preupgrade_fixups.sql' script.
SQL> @/u01/app/oracle/cfgtoollogs/db11g/preupgrade/preupgrade_fixups.sql

Pre-Upgrade Fixup Script Generated on 2013-09-04 00:28:53  Version: 12.1.0.1 Build: 006
Beginning Pre-Upgrade Fixups...

**********************************************************************
Check Tag:     DEFAULT_PROCESS_COUNT
Check Summary: Verify min process count is not too low
Fix Summary:   Review and increase if needed, your PROCESSES value.
**********************************************************************
Fixup Returned Information:
WARNING: --> Process Count may be too low

     Database has a maximum process count of 150 which is lower than the
     default value of 300 for this release.
     You should update your processes value prior to the upgrade
     to a value of at least 300.
     For example:
        ALTER SYSTEM SET PROCESSES=300 SCOPE=SPFILE
     or update your init.ora file.
**********************************************************************


**********************************************************************
Check Tag:     EM_PRESENT
Check Summary: Check if Enterprise Manager is present
Fix Summary:   Execute emremove.sql prior to upgrade.
**********************************************************************
Fixup Returned Information:
WARNING: --> Enterprise Manager Database Control repository found in the database

     In Oracle Database 12c, Database Control is removed during
     the upgrade. To save time during the Upgrade, this action
     can be done prior to upgrading using the following steps after
     copying rdbms/admin/emremove.sql from the new Oracle home
   - Stop EM Database Control:
    $> emctl stop dbconsole

   - Connect to the Database using the SYS account AS SYSDBA:

   SET ECHO ON;
   SET SERVEROUTPUT ON;
   @emremove.sql
     Without the set echo and serveroutput commands you will not
     be able to follow the progress of the script.
**********************************************************************


**********************************************************************
Check Tag:     DBMS_LDAP_DEPENDENCIES_EXIST
Check Summary: Check for dependency on DBMS_LDAP package
Fix Summary:   Network Objects must be reviewed manually.
**********************************************************************
Fixup Returned Information:
WARNING: --> Existing DBMS_LDAP dependent objects

     Database contains schemas with objects dependent on DBMS_LDAP package.
     Refer to the Upgrade Guide for instructions to configure Network ACLs.
     USER APEX_030200 has dependent objects.
**********************************************************************


**********************************************************************
Check Tag:     AMD_EXISTS
Check Summary: Check to see if AMD is present in the database
Fix Summary:   Manually execute ORACLE_HOME/oraolap/admin/catnoamd.sql script to remove OLAP.
**********************************************************************
Fixup Returned Information:
INFORMATION: --> OLAP Catalog(AMD) exists in database

     Starting with Oracle Database 12c, OLAP is desupported.
     If you are not using the OLAP Catalog component and want
     to remove it, then execute the
     ORACLE_HOME/oraolap/admin/catnoamd.sql script before or
     after the upgrade.
**********************************************************************


**********************************************************************
                      [Pre-Upgrade Recommendations]
**********************************************************************

                        *****************************************
                        ********* Dictionary Statistics *********
                        *****************************************

Please gather dictionary statistics 24 hours prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:
    EXECUTE dbms_stats.gather_dictionary_stats;

^^^ MANUAL ACTION SUGGESTED ^^^


           **************************************************
                ************* Fixup Summary ************

 4 fixup routines generated INFORMATIONAL messages that should be reviewed.

**************** Pre-Upgrade Fixup Script Complete *********************






SQL> ALTER SYSTEM SET PROCESSES=300 SCOPE=SPFILE;
SQL> SET ECHO ON;
SQL> SET SERVEROUTPUT ON;
SQL> @/u01/app/oracle/product/12.1.0/db_1/rdbms/admin/emremove.sql
SQL> @?/olap/admin/catnoamd.sql
SQL> EXECUTE dbms_stats.gather_dictionary_stats;
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

Step 5.

Copy the parameter file and password file from old oracle home to new oracle home.

[oracle@box1 dbs]$ cp spfiledb11g.ora /u01/app/oracle/product/12.1.0/db_1/dbs/
[oracle@box1 dbs]$ cp orapwdb11g /u01/app/oracle/product/12.1.0/db_1/dbs/

make new oracle home entry in '/etc/oratab' file.
[oracle@box1 dbs]$ vim /etc/oratab

Update the oracle user .bash_profile for the new 12c Oracle home. 

Copy the listener and tnsnames file from old oracle network directory to new one and make an entry into listener file for new oracle home.
Start the listener once done with above.

[oracle@box1 admin]$ lsnrctl start

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 04-SEP-2013 01:17:54

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/12.1.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.1.0.1.0 - Production
System parameter file is /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/box1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=box1.oracle.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date                04-SEP-2013 01:17:54
Uptime                    0 days 0 hr. 0 min. 1 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/box1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=box1.oracle.com)(PORT=1521)))
The listener supports no services
The command completed successfully


Step 6.

Perform the database upgrade.

[oracle@box1 admin]$ echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0/db_1
[oracle@box1 admin]$ sqlplus "/as sysdba"

SQL*Plus: Release 12.1.0.1.0 Production on Wed Sep 4 01:19:13 2013

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup upgrade
ORACLE instance started.

Total System Global Area 2037673984 bytes
Fixed Size                  2290120 bytes
Variable Size            1325403704 bytes
Database Buffers          704643072 bytes
Redo Buffers                5337088 bytes
Database mounted.
Database opened.

Step 7.


Run the 'catctl.pl' script. 

In 12c the new upgrade utility 'catctl.pl' replaces 'catupgrd.sql' 

[oracle@box1 admin]$ /u01/app/oracle/product/12.1.0/db_1/perl/bin/perl catctl.pl -n 8 -l /u01/app/oracle/product/12.1.0/db_1/diagnostics/ catupgrd.sql

Analyzing file catupgrd.sql
Log files in /u01/app/oracle/product/12.1.0/db_1/diagnostics/
14 scripts found in file catupgrd.sql
Next path: catalog.sql
32 scripts found in file catalog.sql
Next path: catproc.sql
37 scripts found in file catproc.sql
Next path: catptabs.sql
61 scripts found in file catptabs.sql
Next path: catpdbms.sql
205 scripts found in file catpdbms.sql
Next path: catpdeps.sql
77 scripts found in file catpdeps.sql
Next path: catpprvt.sql
260 scripts found in file catpprvt.sql
Next path: catpexec.sql
26 scripts found in file catpexec.sql
Next path: cmpupgrd.sql
16 scripts found in file cmpupgrd.sql

[Phase 0] type is 1 with 1 Files
catupstr.sql

[Phase 1] type is 1 with 3 Files
cdstrt.sql       cdfixed.sql      cdcore.sql

[Phase 2] type is 1 with 1 Files
ora_restart.sql

[Phase 3] type is 2 with 18 Files
cdplsql.sql      cdsqlddl.sql     cdmanage.sql     cdtxnspc.sql
cdenv.sql        cdrac.sql        cdsec.sql        cdobj.sql
cdjava.sql       cdpart.sql       cdrep.sql        cdaw.sql
cdsummgt.sql     cdtools.sql      cdexttab.sql     cddm.sql
catldr.sql       cdclst.sql

[Phase 4] type is 1 with 1 Files
ora_restart.sql

[Phase 5] type is 1 with 5 Files
cdoptim.sql      catsum.sql       catexp.sql       cddst.sql
cdend.sql

[Phase 6] type is 1 with 1 Files
catpstrt.sql

[Phase 7] type is 1 with 3 Files
catptyps.sql     catpgrants.sql   catgwm.sql

[Phase 8] type is 1 with 1 Files
ora_restart.sql

[Phase 9] type is 2 with 60 Files
catnodpt.sql     catbac.sql       prvtrctv.plb     catactx.sql
prvtuttv.plb     catsvrmg.sql     prvtlsis.plb     prvtlsss.plb
cattrans.sql     catrule.sql      catsnap.sql      catpitr.sql
catdip.sql       catrls.sql       catar.sql        catfga.sql
catamgt.sql      catidxu.sql      cattsm.sql       catchnf.sql
catodm.sql       catkppls.sql     catsscr.sql      catqueue.sql
cathae.sql       catadvtb.sql     catrm.sql        catsch.sql
catol.sql        catdpb.sql       catcrc.sql       dbmscr.sql
dbmsutil.sql     catdbfus.sql     catalrt.sql      catatsk.sql
catmntr.sql      catsqlt.sql      catawrtv.sql     catsmbvw.sql
catwrrtb.sql     catsumat.sql     catrep.sql       catlmnr.sql
catdef.sql       catadrvw.sql     catrepv.sql      catpexe.sql
cattlog.sql      catcapi.sql      catpspi.sql      catts.sql
catnacl.sql      catredact.sql    catproftab.sql   catpstdy.sql
catrupg.sql      catratmask.sql   catqitab.sql     catappcont.sql


[Phase 10] type is 1 with 1 Files
ora_restart.sql

[Phase 11] type is 1 with 1 Files
catpspec.sql

[Phase 12] type is 1 with 1 Files
ora_restart.sql

[Phase 13] type is 2 with 199 Files
utlinad.sql      utlsmtp.sql      utlurl.sql       utlenc.sql
utlgdk.sql       utlcstk.sql      utlcomp.sql      utli18n.sql
utllms.sql       dbmsplsw.sql     utlnla.sql       dbmspdb.sql
dbmstrns.sql     dbmsrwid.sql     dbmspclx.sql     dbmserlg.sql
dbmsspu.sql      dbmsapin.sql     dbmssyer.sql     dbmspipe.sql
dbmsalrt.sql     dbmsdesc.sql     dbmspexp.sql     dbmsjob.sql
..
....

Restart  Phase #:52 Files: 1      Time: 1s
Serial   Phase #:53 Files: 1      Time: 2s
Serial   Phase #:54 Files: 1

*** WARNING: ERRORS FOUND DURING UPGRADE ***

Due to errors found during the upgrade process, the post
upgrade actions in catuppst.sql have not been automatically run.

 *** THEREFORE THE DATABASE UPGRADE IS NOT YET COMPLETE ***

 1. Evaluate the errors found in the upgrade logs (*.log) and determine the proper action.
 2. Execute the post upgrade script as described in Chapter 3 of the Database Upgrade Guide.

     Time: 220s
Grand Total Time: 5021s

SQL> startup
ORACLE instance started.

Total System Global Area 2037673984 bytes
Fixed Size                  2290120 bytes
Variable Size            1342180920 bytes
Database Buffers          687865856 bytes
Redo Buffers                5337088 bytes
Database mounted.
Database opened.

Step 8.


Run the 'utlu121s.sql'  which display the status of the databse components in the upgraded database and the time required to complete each component upgrade.

SQL> @utlu121s.sql
.
Oracle Database 12.1 Post-Upgrade Status Tool           09-04-2013 20:45:43
.
Component                               Current         Version  Elapsed Time
Name                                    Status          Number   HH:MM:SS
.
Oracle Server
.                                      UPGRADED      12.1.0.1.0  00:21:16
JServer JAVA Virtual Machine
.                                         VALID      12.1.0.1.0  00:03:04
Oracle Workspace Manager
.                                         VALID      12.1.0.1.0  00:01:31
OLAP Analytic Workspace
.                                         VALID      12.1.0.1.0  00:00:26
Oracle OLAP API
.   SP2-0310: unable to open file "xoqsys.sql"
.   ORA-01917: user or role "OLAPSYS" does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.                                         VALID      12.1.0.1.0  00:00:25
Oracle XDK
.                                         VALID      12.1.0.1.0  00:01:12
Oracle Text
.                                         VALID      12.1.0.1.0  00:00:55
Oracle XML Database
.                                         VALID      12.1.0.1.0  00:06:06
Oracle Database Java Packages
.                                         VALID      12.1.0.1.0  00:00:22
Oracle Multimedia
.                                         VALID      12.1.0.1.0  00:03:36
Spatial
.                                         VALID      12.1.0.1.0  00:07:07
Oracle Application Express
.                                         VALID     4.2.0.00.27  00:33:31
Final Actions
.                                                                00:02:37
Total Upgrade Time: 01:22:36

PL/SQL procedure successfully completed.

Step 9

Run the 'catuppst.sql'.

SQL> @catuppst.sql

Session altered.


Session altered.


Session altered.


TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP POSTUP_BGN 2013-09-04 20:47:16


TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP CATREQ_BGN 2013-09-04 20:47:16


PL/SQL procedure successfully completed.

catrequtlmg: b_StatEvt     = TRUE
catrequtlmg: b_SelProps    = FALSE
catrequtlmg: b_UpgradeMode = FALSE
catrequtlmg: b_InUtlMig    = FALSE

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


TIMESTAMP
--------------------------------------------------------------------------------
COMP_TIMESTAMP CATREQ_END 2013-09-04 20:47:16

catuppst: Dropping library DBMS_DDL_INTERNAL_LIB

PL/SQL procedure successfully completed.
........
.......
SQL> ALTER SESSION SET current_schema = SYS;

Session altered.

SQL> PROMPT Updating registry...
Updating registry...
SQL> INSERT INTO registry$history
  2    (action_time, action,
  3     namespace, version, id,
  4     bundle_series, comments)
  5  VALUES
  6    (SYSTIMESTAMP, 'APPLY',
  7     SYS_CONTEXT('REGISTRY$CTX','NAMESPACE'),
  8     '12.1.0.1',
  9     0,
 10     'PSU',
 11     'Patchset 12.1.0.0.0');

1 row created.

SQL> COMMIT;

Commit complete.

SQL> SPOOL off
SQL> SET echo off
Check the following log file for errors:
/u01/app/oracle/cfgtoollogs/catbundle/catbundle_PSU_DB11G_APPLY_2013Sep04_20_50_07.log

Session altered.
Session altered.


Step 10.

Run the script '/u01/app/oracle/cfgtoollogs/db11g/preupgrade/postupgrade_fixups.sql' which was generated by 'preupgrd.sql'.


SQL> @/u01/app/oracle/cfgtoollogs/db11g/preupgrade/postupgrade_fixups.sql
Post Upgrade Fixup Script Generated on 2013-09-04 00:28:53  Version: 12.1.0.1 Build: 006
Beginning Post-Upgrade Fixups...

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     OLD_TIME_ZONES_EXIST
Check Summary: Check for use of older timezone data file
Fix Summary:   Update the timezone using the DBMS_DST package after upgrade is complete.
**********************************************************************
Fixup Returned Information:
INFORMATION: --> Older Timezone in use

     Database is using a time zone file older than version 18.
     After the upgrade, it is recommended that DBMS_DST package
     be used to upgrade the 12.1.0.1.0 database time zone version
     to the latest version which comes with the new release.
     Please refer to My Oracle Support note number 977512.1 for details.
**********************************************************************


PL/SQL procedure successfully completed.

**********************************************************************
                     [Post-Upgrade Recommendations]
**********************************************************************


PL/SQL procedure successfully completed.

                        *****************************************
                        ******** Fixed Object Statistics ********
                        *****************************************

Please create stats on fixed objects two weeks
after the upgrade using the command:
   EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

^^^ MANUAL ACTION SUGGESTED ^^^


PL/SQL procedure successfully completed.


           **************************************************
                ************* Fixup Summary ************

 1 fixup routine generated an INFORMATIONAL message that should be reviewed.


PL/SQL procedure successfully completed.

*************** Post Upgrade Fixup Script Complete ********************

PL/SQL procedure successfully completed.


follow the instruction given in the o/p.

SQL> EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
PL/SQL procedure successfully completed.

Step 11.

Recompile invalid object.
SQL> @utlrp.sql

TIMESTAMP
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN  2013-09-04 20:59:04

DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC>   objects in the database. Recompilation time is proportional to the
DOC>   number of invalid objects in the database, so this command may take
DOC>   a long time to execute on a database with a large number of invalid
DOC>   objects.
DOC>
DOC>   Use the following queries to track recompilation progress:
DOC>
DOC>   1. Query returning the number of invalid objects remaining. This
DOC>      number should decrease with time.
DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC>
DOC>   2. Query returning the number of objects compiled so far. This number
DOC>      should increase with time.
DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC>
DOC>   This script automatically chooses serial or parallel recompilation
DOC>   based on the number of CPUs available (parameter cpu_count) multiplied
DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC>   On RAC, this number is added across all RAC nodes.
DOC>
DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC>   recompilation. Jobs are created without instance affinity so that they
DOC>   can migrate across RAC nodes. Use the following queries to verify
DOC>   whether UTL_RECOMP jobs are being created and run correctly:
DOC>
DOC>   1. Query showing jobs created by UTL_RECOMP
DOC>         SELECT job_name FROM dba_scheduler_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>
DOC>   2. Query showing UTL_RECOMP jobs that are running
DOC>         SELECT job_name FROM dba_scheduler_running_jobs
DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC>#

PL/SQL procedure successfully completed.


TIMESTAMP
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END  2013-09-04 21:16:40

DOC> The following query reports the number of objects that have compiled
DOC> with errors.
DOC>
DOC> If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#

OBJECTS WITH ERRORS
-------------------
                  0

DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#

ERRORS DURING RECOMPILATION
---------------------------
                          0


Function created.


PL/SQL procedure successfully completed.


Function dropped.

...Database user "SYS", database schema "APEX_040200", user# "117" 21:17:13
...Compiled 0 out of 2998 objects considered, 0 failed compilation 21:17:14
...263 packages
...255 package bodies
...453 tables
...11 functions
...16 procedures
...3 sequences
...458 triggers
...1322 indexes
...207 views
...0 libraries
...6 types
...0 type bodies
...0 operators
...0 index types
...Begin key object existence check 21:17:14
...Completed key object existence check 21:17:15
...Setting DBMS Registry 21:17:15
...Setting DBMS Registry Complete 21:17:15
...Exiting validate 21:17:15

PL/SQL procedure successfully completed.

Step 12.

Check for newly invalid objects.

SQL> @utluiobj.sql
.
Oracle Database 12.1 Post-Upgrade Invalid Objects Tool 09-04-2013 21:21:37
.
This tool lists post-upgrade invalid objects that were not invalid
prior to upgrade (it ignores pre-existing pre-upgrade invalid objects).
.
                           Owner                     Object Name                     Object Type
.

PL/SQL procedure successfully completed.

Step 13.

Run to check the final outcome of the upgrade.

SQL> @utlu121s.sql
.
Oracle Database 12.1 Post-Upgrade Status Tool           09-04-2013 21:21:45
.
Component                               Current         Version  Elapsed Time
Name                                    Status          Number   HH:MM:SS
.
Oracle Server
.                                         VALID      12.1.0.1.0  00:21:16
JServer JAVA Virtual Machine
.                                         VALID      12.1.0.1.0  00:03:04
Oracle Workspace Manager
.                                         VALID      12.1.0.1.0  00:01:31
OLAP Analytic Workspace
.                                         VALID      12.1.0.1.0  00:00:26
Oracle OLAP API
.   SP2-0310: unable to open file "xoqsys.sql"
.   ORA-01917: user or role "OLAPSYS" does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.   ORA-00942: table or view does not exist
.                                         VALID      12.1.0.1.0  00:00:25
Oracle XDK
.                                         VALID      12.1.0.1.0  00:01:12
Oracle Text
.                                         VALID      12.1.0.1.0  00:00:55
Oracle XML Database
.                                         VALID      12.1.0.1.0  00:06:06
Oracle Database Java Packages
.                                         VALID      12.1.0.1.0  00:00:22
Oracle Multimedia
.                                         VALID      12.1.0.1.0  00:03:36
Spatial
.                                         VALID      12.1.0.1.0  00:07:07
Oracle Application Express
.                                         VALID     4.2.0.00.27  00:33:31
Final Actions
.                                                                00:02:37
Total Upgrade Time: 01:22:36

PL/SQL procedure successfully completed.


Check the database version.

SQL> SELECT name, open_mode FROM v$database;

NAME      OPEN_MODE
--------- --------------------
DB11G     READ WRITE

SQL> select version from v$instance;

VERSION
-----------------
12.1.0.1.0


Reference.

-->OTN Doc. 1503653.1: Complete Checklist for Manual Upgrades to Oracle Database 12c Release 1 (12.1)


-->http://www.oracle-base.com/articles/12c/upgrading-to-12c.php#manual-upgrades 

Tuesday, September 3, 2013

Update the RDBMS DST version in 11203.

In this post I'll complete the rest of the upgrading task by upgrading the RDBMS DST version by 11 to 14.

Please follow my previous post to upgrade the database version from 11201 to 11203.

http://dbarohit.blogspot.in/2013/09/upgrading-oracle-database-11201-to-11203.html

Step 1.

Check the current RDBMS DST version.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value

FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'
ORDER BY PROPERTY_NAME;  2    3    4

PROPERTY_NAME                  VALUE

------------------------------ ------------------------------
DST_PRIMARY_TT_VERSION         11
DST_SECONDARY_TT_VERSION       0
DST_UPGRADE_STATE              NONE

3 rows selected.


PROPERTY_NAME                   VALUE

------------------------------ -------------------------------- 
DST_PRIMARY_TT_VERSION         <the old DST version number>
DST_SECONDARY_TT_VERSION       0 <THIS NEEDS TO BE "0">
DST_UPGRADE_STATE NONE         <THIS NEEDS TO BE "NONE">


SQL> SELECT version FROM v$timezone_file;
VERSION

----------
 11

1 row selected.



Step 2.

Preparing for the DST update.

SQL> purge dba_recyclebin;
DBA Recyclebin purged.


SQL> alter session set "_with_subquery"=materialize;
Session altered.


SQL> alter session set "_simple_view_merging"=TRUE;
Session altered.


SQL> EXEC DBMS_APPLICATION_INFO.SET_CLIENT_INFO('upg_tzv');
PL/SQL procedure successfully completed.


SQL> EXEC DBMS_DST.BEGIN_PREPARE(14);

PL/SQL procedure successfully completed.


SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'ORDER BY PROPERTY_NAME; 

PROPERTY_NAME                 VALUE
----------------------------- ------------------------------DST_PRIMARY_TT_VERSION         11
DST_SECONDARY_TT_VERSION       14
DST_UPGRADE_STATE              PREPARE

3 rows selected.

SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
Table truncated.


SQL> TRUNCATE TABLE sys.dst$affected_tables;
Table truncated.


SQL> TRUNCATE TABLE sys.dst$error_table;
Table truncated.


SQL> set serveroutput on
BEGIN
DBMS_DST.FIND_AFFECTED_TABLES(affected_tables => 'sys.dst$affected_tables',
log_errors => TRUE,
log_errors_table => 'sys.dst$error_table');
END;
/
SQL> 

PL/SQL procedure successfully completed.


SQL> SELECT * FROM sys.dst$affected_tables;
no rows selected


SQL> SELECT * FROM sys.dst$error_table;
no rows selected


SQL> EXEC DBMS_DST.END_PREPARE;A prepare window has been successfully ended.
PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'ORDER BY PROPERTY_NAME;

PROPERTY_NAME                  VALUE
-----------------------------------------------------------DST_PRIMARY_TT_VERSION         11
DST_SECONDARY_TT_VERSION       0
DST_UPGRADE_STATE              NONE
3 rows selected.
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.

Step 3.
Upgrading the RDBMS DST.
SQL> startup upgrade
ORACLE instance started.
Total System Global Area 2037673984 bytes

Fixed Size                  2229824 bytes
Variable Size            1342179776 bytes
Database Buffers          687865856 bytes
Redo Buffers                5398528 bytes
Database mounted.
Database opened.

SQL> set serveroutput on
SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'ORDER BY PROPERTY_NAME;
PROPERTY_NAME                  VALUE

------------------------------ ------------------------------DST_PRIMARY_TT_VERSION         11
DST_SECONDARY_TT_VERSION       0
DST_UPGRADE_STATE              NONE
3 rows selected.

SQL> purge dba_recyclebin;
DBA Recyclebin purged.


SQL> TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
Table truncated.


SQL> TRUNCATE TABLE sys.dst$affected_tables;
Table truncated.

SQL> TRUNCATE TABLE sys.dst$error_table;
Table truncated.


SQL> alter session set "_with_subquery"=materialize;
Session altered.


SQL> alter session set "_simple_view_merging"=TRUE;
Session altered.


SQL> EXEC DBMS_APPLICATION_INFO.SET_CLIENT_INFO('upg_tzv');
PL/SQL procedure successfully completed.


SQL> EXEC DBMS_DST.BEGIN_UPGRADE(14);An upgrade window has been successfully started.
PL/SQL procedure successfully completed.


SQL> SELECT * FROM sys.dst$error_table;
no rows selected


SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'ORDER BY PROPERTY_NAME;
PROPERTY_NAME                  VALUE
------------------------------ ------------------------------DST_PRIMARY_TT_VERSION         14
DST_SECONDARY_TT_VERSION       11
DST_UPGRADE_STATE              UPGRADE
3 rows selected.


SQL> select OWNER, TABLE_NAME, UPGRADE_IN_PROGRESS from ALL_TSTZ_TABLES where UPGRADE_IN_PROGRESS='YES';


OWNER        TABLE_NAME                     UPG

------------ ------------------------------ ---
SYSMAN       AQ$_MGMT_LOADER_QTABLE_L       YES
SYSMAN       AQ$_MGMT_LOADER_QTABLE_S       YES
SYSMAN       AQ$_MGMT_NOTIFY_QTABLE_L       YES
SYSMAN       AQ$_MGMT_NOTIFY_QTABLE_S       YES
SYSMAN       MGMT_PROV_ASSIGNMENT           YES
SYSMAN       MGMT_PROV_BOOTSERVER           YES
SYSMAN       MGMT_PROV_CLUSTER_NODES        YES
SYSMAN       MGMT_PROV_DEFAULT_IMAGE        YES
SYSMAN       MGMT_PROV_IP_RANGE             YES
SYSMAN       MGMT_PROV_NET_CONFIG           YES
SYSMAN       MGMT_PROV_OPERATION            YES
SYSMAN       MGMT_PROV_RPM_REP              YES
SYSMAN       MGMT_PROV_STAGING_DIRS         YES
SYSMAN       MGMT_PROV_SUITE_INST_MEMBERS   YES
IX           AQ$_ORDERS_QUEUETABLE_L        YES
IX           AQ$_ORDERS_QUEUETABLE_S        YES
IX           AQ$_STREAMS_QUEUE_TABLE_L      YES
IX           AQ$_STREAMS_QUEUE_TABLE_S      YES
18 rows selected.


SQL> shut immediate

Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup
ORACLE instance started.

Total System Global Area 2037673984 bytes

Fixed Size                  2229824 bytes
Variable Size            1342179776 bytes
Database Buffers          687865856 bytes
Redo Buffers                5398528 bytes
Database mounted.
Database opened.

SQL> alter session set "_with_subquery"=materialize;
Session altered.
SQL> alter session set "_simple_view_merging"=TRUE;
Session altered.
SQL> set serveroutput on

VAR numfail number
BEGINDBMS_DST.UPGRADE_DATABASE(:numfail,
parallel => TRUE,
log_errors => TRUE,
log_errors_table => 'SYS.DST$ERROR_TABLE',
log_triggers_table =>'SYS.DST$TRIGGER_TABLE',
error_on_overlap_time => FALSE,
error_on_nonexisting_time => FALSE);
DBMS_OUTPUT.PUT_LINE('Failures:'|| :numfail);
END;
/
Table list: "SYSMAN"."MGMT_PROV_SUITE_INST_MEMBERS"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_STAGING_DIRS"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_RPM_REP"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_OPERATION"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_NET_CONFIG"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_IP_RANGE"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_DEFAULT_IMAGE"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_CLUSTER_NODES"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_BOOTSERVER"
Number of failures: 0
Table list: "SYSMAN"."MGMT_PROV_ASSIGNMENT"
Number of failures: 0
Table list: "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_S"
Number of failures: 0
Table list: "SYSMAN"."AQ$_MGMT_NOTIFY_QTABLE_L"
Number of failures: 0
Table list: "SYSMAN"."AQ$_MGMT_LOADER_QTABLE_S"
Number of failures: 0
Table list: "SYSMAN"."AQ$_MGMT_LOADER_QTABLE_L"
Number of failures: 0
Table list: "IX"."AQ$_STREAMS_QUEUE_TABLE_S"
Number of failures: 0
Table list: "IX"."AQ$_STREAMS_QUEUE_TABLE_L"
Number of failures: 0
Table list: "IX"."AQ$_ORDERS_QUEUETABLE_S"
Number of failures: 0
Table list: "IX"."AQ$_ORDERS_QUEUETABLE_L"
Number of failures: 0
Failures:0

PL/SQL procedure successfully completed.

SQL> SELECT * FROM sys.dst$error_table;
no rows selected


SQL> VAR fail number

BEGINDBMS_DST.END_UPGRADE(:fail);
DBMS_OUTPUT.PUT_LINE('Failures:'|| :fail);
END;
/
An upgrade window has been successfully ended.
Failures:0
PL/SQL procedure successfully completed.

SQL> SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value

FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE 'DST_%'ORDER BY PROPERTY_NAME;

PROPERTY_NAME                  VALUE

------------------------------ ------------------------------DST_PRIMARY_TT_VERSION         14
DST_SECONDARY_TT_VERSION       0
DST_UPGRADE_STATE              NONE
3 rows selected.

Now cross check the RDBMS DST version.


SQL> SELECT * FROM v$timezone_file;


FILENAME                VERSION

-------------------- ----------
timezlrg_14.dat              14

1 row selected.

Reference.OTN DOC 977512.1: Updating the RDBMS DST version in 11gR2.

Upgrading Oracle Database 11201 to 11203

Patch set download.
1. 11203 patch 10404530 for Linux x86-64.
2. Latest CPU Patch 14275605 from OTN.
3. Latest OPatch 6880880 from OTN.


Step 1.
Install the 11020 RDBMS binaries into new Oracle_home.

































































































































































































































































































































Run the root.sh as as root user.




























Step 2. 

Unzip the downloaded Patches and Update the OPatch version and install the CPU patch .


[oracle@box1 OPatch]$ pwd
/u01/app/oracle/product/11.2.0.3/db_1/OPatch
     
[oracle@box1 OPatch]$ cd /u01/11g_64_upg_patch/14275605/
[oracle@box1 14275605]$ echo $PATH
/u01/app/oracle/product/11.2.0.3/db_1/bin:/usr/sbin:/u01/app/oracle/product/12.1.0/db_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
[oracle@box1 14275605]$ export PATH=/u01/app/oracle/product/11.2.0.3/db_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/u01/app/oracle/product/11.2.0.3/db_1/OPatch
[oracle@box1 14275605]$ echo $PATH
/u01/app/oracle/product/11.2.0.3/db_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/u01/app/oracle/product/11.2.0.3/db_1/OPatch


[oracle@box1 14275605]$ opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.5
Copyright (c) 2013, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/11.2.0.3/db_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/11.2.0.3/db_1/oraInst.loc
OPatch version    : 11.2.0.3.5
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/db_1/cfgtoollogs/opatch/opatch2013-09-03_01-14-26AM_1.log

Lsinventory Output file location : /u01/app/oracle/product/11.2.0.3/db_1/cfgtoollogs/opatch/lsinv/lsinventory2013-09-03_01-14-26AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.3.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

[oracle@box1 14275605]$ opatch apply
Oracle Interim Patch Installer version 11.2.0.3.5
Copyright (c) 2013, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/11.2.0.3/db_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/11.2.0.3/db_1/oraInst.loc
OPatch version    : 11.2.0.3.5
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/db_1/cfgtoollogs/opatch/opatch2013-09-03_01-24-57AM_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   13343438  13696216  13923374  14275605 

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  Y

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0.3/db_1')

Is the local system ready for patching? [y|n]
Y
User Responded with: Y
Backing up files...
Applying sub-patch '13343438' to OH '/u01/app/oracle/product/11.2.0.3/db_1'

Patching component oracle.rdbms.rsf, 11.2.0.3.0...

Patching component oracle.rdbms, 11.2.0.3.0...

Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...

Verifying the update...
Applying sub-patch '13696216' to OH '/u01/app/oracle/product/11.2.0.3/db_1'

Patching component oracle.rdbms.rsf, 11.2.0.3.0...

Patching component oracle.rdbms, 11.2.0.3.0...

Patching component oracle.sdo.locator, 11.2.0.3.0...

Patching component oracle.sysman.console.db, 11.2.0.3.0...

Patching component oracle.sysman.oms.core, 10.2.0.4.4...

Verifying the update...
Applying sub-patch '13923374' to OH '/u01/app/oracle/product/11.2.0.3/db_1'
ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.rdbms.rsf, 11.2.0.3.0...

Patching component oracle.rdbms, 11.2.0.3.0...

Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...

Patching component oracle.network.rsf, 11.2.0.3.0...

Patching component oracle.network.listener, 11.2.0.3.0...

Patching component oracle.sysman.console.db, 11.2.0.3.0...

Verifying the update...
Applying sub-patch '14275605' to OH '/u01/app/oracle/product/11.2.0.3/db_1'
ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.network.client, 11.2.0.3.0...

Patching component oracle.network.rsf, 11.2.0.3.0...

Patching component oracle.precomp.common, 11.2.0.3.0...

Patching component oracle.rdbms, 11.2.0.3.0...

Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...

Patching component oracle.rdbms.rman, 11.2.0.3.0...

Patching component oracle.rdbms.rsf, 11.2.0.3.0...

Patching component oracle.rdbms.util, 11.2.0.3.0...

Verifying the update...

OPatch found the word "warning" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/db_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/db_1/precomp/lib/ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'
/u01/app/oracle/product/11.2.0.3/db_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'

Composite patch 14275605 successfully applied.
OPatch Session completed with warnings.
Log file location: /u01/app/oracle/product/11.2.0.3/db_1/cfgtoollogs/opatch/opatch2013-09-03_01-24-57AM_1.log

OPatch completed with warnings.

[oracle@box1 14275605]$ opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.5
Copyright (c) 2013, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/11.2.0.3/db_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/11.2.0.3/db_1/oraInst.loc
OPatch version    : 11.2.0.3.5
OUI version       : 11.2.0.3.0
Log file location : /u01/app/oracle/product/11.2.0.3/db_1/cfgtoollogs/opatch/opatch2013-09-03_01-32-52AM_1.log

Lsinventory Output file location : /u01/app/oracle/product/11.2.0.3/db_1/cfgtoollogs/opatch/lsinv/lsinventory2013-09-03_01-32-52AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.3.0
There are 1 products installed in this Oracle Home.


Interim patches (1) :

Patch  14275605     : applied on Tue Sep 03 01:27:42 IST 2013
Unique Patch ID:  15367368
Patch description:  "Database Patch Set Update : 11.2.0.3.4 (14275605)"
   Created on 3 Oct 2012, 18:38:19 hrs PST8PDT
Sub-patch  13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)"
Sub-patch  13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)"
Sub-patch  13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)"
   Bugs fixed:
     14480676, 13566938, 13419660, 10350832, 13632717, 14063281, 12919564
     13624984, 13430938, 13467683, 13588248, 13420224, 14548763, 13080778
     12646784, 13804294, 12861463, 12834027, 13377816, 13036331, 12880299
     14664355, 13499128, 14409183, 12998795, 12829021, 13492735, 12794305
     13503598, 10133521, 12718090, 13742433, 12905058, 12401111, 13742434
     13257247, 12849688, 13362079, 12950644, 13742435, 13464002, 12917230
     13923374, 12879027, 14613900, 12585543, 12535346, 14480675, 12588744
     11877623, 14480674, 13916709, 12847466, 13773133, 14076523, 13649031
     13340388, 13366202, 13528551, 13981051, 12894807, 13343438, 12582664
     12748240, 12797765, 13385346, 12923168, 13384182, 13612575, 13466801
     13484963, 12971775, 11063191, 13772618, 13070939, 12797420, 13035804
     13041324, 12976376, 11708510, 13742437, 13737746, 14062795, 13035360
     12693626, 13742438, 13326736, 13332439, 14038787, 14062796, 12913474
     13001379, 14390252, 13099577, 13370330, 13059165, 14062797, 14275605
     9873405, 13742436, 9858539, 14062794, 13358781, 12960925, 13699124
     12662040, 9703627, 12617123, 13338048, 12938841, 12658411, 12620823
     12845115, 12656535, 14062793, 12678920, 12764337, 13354082, 13397104
     14062792, 13250244, 12594032, 9761357, 12612118, 13742464, 13550185
     13457582, 13527323, 12780983, 12583611, 13502183, 12780098, 13705338
     13696216, 13476583, 11840910, 13903046, 13572659, 13718279, 13554409
     13657605, 13103913, 14063280

--------------------------------------------------------------------------------

OPatch succeeded.

Step 3. Go under the New oracle home directory as below
'/u01/app/oracle/product/11.2.0.3/db_1/rdbms/admin/'
[oracle@box1 admin]$ pwd
/u01/app/oracle/product/11.2.0.3/db_1/rdbms/admin
[oracle@box1 admin]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0/db_1/
[oracle@box1 admin]$ sqlplus "/as sysdba"

SQL> @utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 09-03-2013 02:01:46
Script Version: 11.2.0.3.0 Build: 001
.
**********************************************************************
Database:
**********************************************************************
--> name:          DB11G
--> version:       11.2.0.1.0
--> compatible:    11.2.0.0.0
--> blocksize:     8192
--> platform:      Linux x86 64-bit
--> timezone file: V11
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 694 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 474 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
.... minimum required size: 400 MB
--> TEMP tablespace is adequate for the upgrade.
.... minimum required size: 60 MB
--> EXAMPLE tablespace is adequate for the upgrade.
.... minimum required size: 78 MB
.
**********************************************************************
Flashback: OFF
**********************************************************************
**********************************************************************
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
Note: Pre-upgrade tool was run on a lower version 64-bit database.
**********************************************************************
--> If Target Oracle is 32-Bit, refer here for Update Parameters:
-- No update parameter changes are required.
.

--> If Target Oracle is 64-Bit, refer here for Update Parameters:
-- No update parameter changes are required.
.
**********************************************************************
Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
-- No renamed parameters found. No changes are required.
.
**********************************************************************
Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
-- No obsolete parameters found. No changes are required
.

**********************************************************************
Components: [The following database components will be upgraded or installed]
**********************************************************************
--> Oracle Catalog Views         [upgrade]  VALID
--> Oracle Packages and Types    [upgrade]  VALID
--> JServer JAVA Virtual Machine [upgrade]  VALID
--> Oracle XDK for Java          [upgrade]  VALID
--> Oracle Workspace Manager     [upgrade]  VALID
--> OLAP Analytic Workspace      [upgrade]  VALID
--> OLAP Catalog                 [upgrade]  VALID
--> EM Repository                [upgrade]  VALID
--> Oracle Text                  [upgrade]  VALID
--> Oracle XML Database          [upgrade]  VALID
--> Oracle Java Packages         [upgrade]  VALID
--> Oracle interMedia            [upgrade]  VALID
--> Spatial                      [upgrade]  VALID
--> Expression Filter            [upgrade]  VALID
--> Rule Manager                 [upgrade]  VALID
--> Oracle Application Express   [upgrade]  VALID
... APEX will only be upgraded if the version of APEX in
... the target Oracle home is higher than the current one.
--> Oracle OLAP API              [upgrade]  VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: --> Database is using a timezone file older than version 14.
.... After the release migration, it is recommended that DBMS_DST package
.... be used to upgrade the 11.2.0.1.0 database timezone version
.... to the latest version which comes with the new release.
WARNING: --> Your recycle bin is turned on and currently contains no objects.
.... Because it is REQUIRED that the recycle bin be empty prior to upgrading
.... and your recycle bin is turned on, you may need to execute the command:
        PURGE DBA_RECYCLEBIN
.... prior to executing your upgrade to confirm the recycle bin is empty.
WARNING: --> Database contains schemas with objects dependent on DBMS_LDAP package.
.... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs.
.... USER APEX_030200 has dependent objects.
.
**********************************************************************
Recommendations
**********************************************************************
Oracle recommends gathering dictionary statistics prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:

    EXECUTE dbms_stats.gather_dictionary_stats;

**********************************************************************
Oracle recommends reviewing any defined events prior to upgrading.

To view existing non-default events execute the following commands
while connected AS SYSDBA:
  Events:
    SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2
      WHERE  UPPER(name) ='EVENT' AND  isdefault='FALSE'

  Trace Events:
    SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2
      WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'

Changes will need to be made in the init.ora or spfile.

**********************************************************************

Check the database timezone.
SQL> select version from v$timezone_file;
        11 

SQL> PURGE DBA_RECYCLEBIN;
SQL> EXECUTE dbms_stats.gather_dictionary_stats;
 
SQL> SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2
  2   WHERE  UPPER(name) ='EVENT' AND  isdefault='FALSE';
SQL> SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2
  2  WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE';


Step 5.
Download the script dbupgdiag.sql from Oracle support Note. 556610.1
run that script to verify that all the components in dba_registry are valid.
And no invalid data dictionary objects exist in dba_objects.

SQL> @/u01/dbupgdiag.sql

Enter location for Spooled output:

Enter value for 1: /tmp

03_Sep_2013_0451 .log

db11g_



                          *** Start of LogFile ***

  Oracle Database Upgrade Diagnostic Utility       09-03-2013 16:51:14

===============
Hostname
===============

box1.oracle.com

===============
Database Name
===============

DB11G

===============
Database Uptime
===============

16:27 03-SEP-13

=================
Database Wordsize
=================

This is a 64-bit database

================
Software Version
================

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

=============
Compatibility
=============

Compatibility is set as 11.2.0.0.0

================
Archive Log Mode
================

Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     52
Current log sequence           54

================
Auditing Check
================


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest                      string      /u01/app/oracle/admin/db11g/ad
                                                 ump
audit_sys_operations                 boolean     FALSE
audit_syslog_level                   string
audit_trail                          string      DB

================
Cluster Check
================

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cluster_database                     boolean     FALSE
cluster_database_instances           integer     1

DOC>################################################################
DOC>
DOC> If CLUSTER_DATABASE is set to TRUE, change it to FALSE before
DOC> upgrading the database
DOC>
DOC>################################################################
DOC>#

===========================================
Tablespace and the owner of the aud$ table
===========================================

OWNER        TABLESPACE_NAME
------------ ------------------------------
SYS          SYSTEM

============================================================================
count of records in the sys.aud$ table where dbid is null- Standard Auditing
============================================================================


         0


============================================================================================
count of records in the system.aud$ when dbid is null, Std Auditing with OLS or DV installed
============================================================================================
select count(*) from system.aud$ where dbid is null
                            *
ERROR at line 1:
ORA-00942: table or view does not exist




=============================================================================
count of records in the sys.fga_log$ when dbid is null, Fine Grained Auditing
=============================================================================

         0



==========================================
Oracle Label Security is installed or not
==========================================

Oracle Label Security is NOT installed at database level

================
Number of AQ Records in Message Queue Tables
================

SYS - ALERT_QT - 3
SYS - AQ$_MEM_MC - 0
SYS - AQ_EVENT_TABLE - 0
SYS - AQ_PROP_TABLE - 0
SYS - KUPC$DATAPUMP_QUETAB - 0
SYS - SCHEDULER$_EVENT_QTAB - 0
SYS - SCHEDULER$_REMDB_JOBQTAB - 0
SYS - SCHEDULER_FILEWATCHER_QT - 0
SYS - SYS$SERVICE_METRICS_TAB - 0
SYSMAN - MGMT_LOADER_QTABLE - 0
SYSMAN - MGMT_NOTIFY_INPUT_QTABLE - 0
SYSMAN - MGMT_NOTIFY_QTABLE - 0
SYSMAN - MGMT_PAF_MSG_QTABLE_1 - 0
SYSMAN - MGMT_PAF_MSG_QTABLE_2 - 0
SYSMAN - MGMT_TASK_QTABLE - 28
SYSTEM - DEF$_AQCALL - 0
SYSTEM - DEF$_AQERROR - 0
WMSYS - WM$EVENT_QUEUE_TABLE - 0

================
Time Zone version
================


        11

================
Local Listener
================




================
Default and Temporary Tablespaces By User
================


USERNAME                     TEMPORARY_TABLESPACE   DEFAULT_TABLESPACE
---------------------------- ---------------------- ----------------------
MGMT_VIEW                    TEMP                   SYSTEM
SYS                          TEMP                   SYSTEM
SYSTEM                       TEMP                   SYSTEM
DBSNMP                       TEMP                   SYSAUX
SYSMAN                       TEMP                   SYSAUX
OUTLN                        TEMP                   SYSTEM
FLOWS_FILES                  TEMP                   SYSAUX
MDSYS                        TEMP                   SYSAUX
ORDSYS                       TEMP                   SYSAUX
EXFSYS                       TEMP                   SYSAUX
WMSYS                        TEMP                   SYSAUX
APPQOSSYS                    TEMP                   SYSAUX
APEX_030200                  TEMP                   SYSAUX
OWBSYS_AUDIT                 TEMP                   SYSAUX
ORDDATA                      TEMP                   SYSAUX
CTXSYS                       TEMP                   SYSAUX
ANONYMOUS                    TEMP                   SYSAUX
XDB                          TEMP                   SYSAUX
ORDPLUGINS                   TEMP                   SYSAUX
OWBSYS                       TEMP                   SYSAUX
SI_INFORMTN_SCHEMA           TEMP                   SYSAUX
OLAPSYS                      TEMP                   SYSAUX
SCOTT                        TEMP                   USERS
ORACLE_OCM                   TEMP                   USERS
XS$NULL                      TEMP                   USERS
BI                           TEMP                   USERS
PM                           TEMP                   USERS
MDDATA                       TEMP                   USERS
IX                           TEMP                   USERS
SH                           TEMP                   USERS
DIP                          TEMP                   USERS
OE                           TEMP                   USERS
APEX_PUBLIC_USER             TEMP                   USERS
HR                           TEMP                   USERS
SPATIAL_CSW_ADMIN_USR        TEMP                   USERS
SPATIAL_WFS_ADMIN_USR        TEMP                   USERS


================
Component Status
================

Comp ID Component                          Status    Version        Org_Version    Prv_Version
------- ---------------------------------- --------- -------------- -------------- --------------
AMD     OLAP Catalog                       VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
APEX    Oracle Application Express         VALID     3.2.1.00.10
APS     OLAP Analytic Workspace            VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
CATALOG Oracle Database Catalog Views      VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
CATJAVA Oracle Database Java Packages      VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
CATPROC Oracle Database Packages and Types VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
CONTEXT Oracle Text                        VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
EM      Oracle Enterprise Manager          VALID     11.2.0.3.0     11.2.0.1.0
EXF     Oracle Expression Filter           VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
JAVAVM  JServer JAVA Virtual Machine       VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
ORDIM   Oracle Multimedia                  VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
OWB     OWB                                VALID     11.2.0.1.0
OWM     Oracle Workspace Manager           VALID     11.2.0.3.0     11.2.0.1.0
RUL     Oracle Rules Manager               VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
SDO     Spatial                            VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
XDB     Oracle XML Database                VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
XML     Oracle XDK                         VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0
XOQ     Oracle OLAP API                    VALID     11.2.0.3.0     11.2.0.1.0     11.2.0.1.0



======================================================
List of Invalid Database Objects Owned by SYS / SYSTEM
======================================================


Number of Invalid Objects
------------------------------------------------------------------
There are no Invalid Objects

DOC>################################################################
DOC>
DOC> If there are no Invalid objects below will result in zero rows.
DOC>
DOC>################################################################
DOC>#


no rows selected


================================
List of Invalid Database Objects
================================


Number of Invalid Objects
------------------------------------------------------------------
There are no Invalid Objects

DOC>################################################################
DOC>
DOC> If there are no Invalid objects below will result in zero rows.
DOC>
DOC>################################################################
DOC>#


no rows selected


======================================================
Count of Invalids by Schema
======================================================

==============================================================
Identifying whether a database was created as 32-bit or 64-bit
==============================================================

DOC>###########################################################################
DOC>
DOC> Result referencing the string 'B023' ==> Database was created as 32-bit
DOC> Result referencing the string 'B047' ==> Database was created as 64-bit
DOC> When String results in 'B023' and when upgrading database to 10.2.0.3.0
DOC> (64-bit) , For known issue refer below articles
DOC>
DOC> Note 412271.1 ORA-600 [22635] and ORA-600 [KOKEIIX1] Reported While
DOC>               Upgrading Or Patching Databases To 10.2.0.3
DOC> Note 579523.1 ORA-600 [22635], ORA-600 [KOKEIIX1], ORA-7445 [KOPESIZ] and
DOC>              OCI-21500 [KOXSIHREAD1] Reported While Upgrading To 11.1.0.6
DOC>
DOC>###########################################################################
DOC>#


Metadata Initial DB Creation Info
-------- -----------------------------------
B047     Database was created as 64-bit

===================================================
Number of Duplicate Objects Owned by SYS and SYSTEM
===================================================

Counting duplicate objects ....


  COUNT(1)
----------
         4

=========================================
Duplicate Objects Owned by SYS and SYSTEM
=========================================

Querying duplicate objects ....


OBJECT_NAME                              OBJECT_TYPE                              SUBOBJECT_NAME                  OBJECT_ID
---------------------------------------- ---------------------------------------- ------------------------------ ----------
AQ$_SCHEDULES                            TABLE                                                                         5612
AQ$_SCHEDULES_PRIMARY                    INDEX                                                                         5613
DBMS_REPCAT_AUTH                         PACKAGE                                                                       8435
DBMS_REPCAT_AUTH                         PACKAGE BODY                                                                 11896

DOC>
DOC>################################################################################
DOC>
DOC> If any objects found please follow below article.
DOC> Note 1030426.6 How to Clean Up Duplicate Objects Owned by SYS and SYSTEM schema
DOC> Read the Exceptions carefully before taking actions.
DOC>
DOC>################################################################################
DOC>#

========================
Password protected roles
========================

DOC>
DOC>################################################################################
DOC>
DOC> In version 11.2 password protected roles are no longer enabled by default so if
DOC> an application relies on such roles being enabled by default and no action is
DOC> performed to allow the user to enter the password with the set role command, it
DOC> is recommended to remove the password from those roles (to allow for existing
DOC> privileges to remain available). For more information see:
DOC>
DOC> Note 745407.1 : What Roles Can Be Set as Default for a User?
DOC>
DOC>################################################################################
DOC>#

Querying for password protected roles ....


Password protected Role        Assigned by default to user
------------------------------ ------------------------------
OWB$CLIENT                     OWBSYS
SPATIAL_CSW_ADMIN              SPATIAL_CSW_ADMIN_USR

================
JVM Verification
================


================================================
Checking Existence of Java-Based Users and Roles
================================================

DOC>
DOC>################################################################################
DOC>
DOC> There should not be any Java Based users for database version 9.0.1 and above.
DOC> If any users found, it is faulty JVM.
DOC>
DOC>################################################################################
DOC>#


User Existence
---------------------------
No Java Based Users

DOC>
DOC>###############################################################
DOC>
DOC> Healthy JVM Should contain Six Roles.
DOC> If there are more or less than six role, JVM is inconsistent.
DOC>
DOC>###############################################################
DOC>#


Role
------------------------------
There are 6 JAVA related roles

Roles


ROLE
------------------------------
JAVA_DEPLOY
JAVAUSERPRIV
JAVAIDPRIV
JAVASYSPRIV
JAVADEBUGPRIV
JAVA_ADMIN

=========================================
List of Invalid Java Objects owned by SYS
=========================================

There are no SYS owned invalid JAVA objects

DOC>
DOC>#################################################################
DOC>
DOC> Check the status of the main JVM interface packages DBMS_JAVA
DOC> and INITJVMAUX and make sure it is VALID.
DOC>
DOC> If there are no Invalid objects below will result in zero rows.
DOC>
DOC>#################################################################
DOC>#


no rows selected


DOC>
DOC>#################################################################
DOC>
DOC> If the JAVAVM component is not installed in the database (for
DOC> example, after creating the database with custom scripts), the
DOC> next query will report the following error:
DOC>
DOC>   select dbms_java.longname('foo') "JAVAVM TESTING" from dual
DOC>   *
DOC>   ERROR at line 1:
DOC>   ORA-00904: "DBMS_JAVA"."LONGNAME": invalid identifier
DOC>
DOC> If the JAVAVM component is installed, the query should succeed
DOC> with 'foo' as result.
DOC>
DOC>#################################################################
DOC>#


JAVAVM TESTING
---------------
foo


                            *** End of LogFile ***



Upload db_upg_diag_db11g_03_Sep_2013_0451.log from "/tmp" directory




Step 6.
Shutdown the database gracefully.

Step 7.

--> Copy the pfile/spfile , password file from old Oracle home to new Oracle home.
--> Copy the listener and tnsname file from old oracle network directory to new one. 
Also update the TNSname.ora file with the new Oracle_home.
--> Update the Oracle bash profile for the new Oracle_home.
--> Update the /etc/oratab with the new Oracle_home.

Start the listener under new Oracle home network directory.

Step 8.

Connect the database through sqlplus and issue the startup upgrade.
SQL> startup upgrade
ORACLE instance started.

Total System Global Area 2037673984 bytes                                      
Fixed Size                  2229824 bytes                                      
Variable Size            1224739264 bytes                                      
Database Buffers          805306368 bytes                                      
Redo Buffers                5398528 bytes                                      
Database mounted.
Database opened.

Go to the dir '/u01/app/oracle/product/11.2.0.3/rdbms/admin'

and run the catupgrd.sql script.

sql>@catupgrd.sql

And Check the script output for any error. If there is any then try to fix it.

Restart the database in normal mode.

sql>@catuppst.sql
sql>@utlrp.sql

Again run the downloaded dbupgdiag.sql script to crosscheck if there is any error left due to the database upgrade.
sql>@dbupgdiag.sql

SQL> select version from v$instance;

VERSION
-----------------
11.2.0.3.0

SQL> select name,open_mode from v$database;

NAME      OPEN_MODE
--------- --------------------
DB11G      READ WRITE
Now the database is upgraded to version 11203.

Next step is to upgrade the RDBMS DST version which I'll show you in my next thread.

References.
OTN Doc 1276368.1: Complete checklist for out-of-place manual upgrade...
OTN Doc 556610.1: Script to collect DB Upgrade/Migrate diagnostic information.