You are on page 1of 18

Oracle Database upgrade from 10.2.0.4 to 11.2.0.

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

11g upgrade process:

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

1) Download the patchset from metalink for 11.2.0.4

2) Install the 11g home on same server

3) After installing 11g home:

There is one script i.e., utlu112i.sql(which is pre upgrade information tool)

Then run that script from Oracle 10g database

4) After that just export my new oracle home and run the :

@?/rdbms/admin/catupgrd.sql

@?/rdbms/admin/catuppst.sql

Find the status of above 2 commands

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

@?/rdbms/admin/catupgrd.sql

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

234 END;

235 /
.

Oracle Database 11.2 Post-Upgrade Status Tool 10-13-2014 12:45:55

Component Current Version Elapsed Time

Name Status Number HH:MM:SS

Oracle Server

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated


. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. VALID 11.2.0.4.0 00:31:39

JServer JAVA Virtual Machine

. VALID 11.2.0.4.0 00:00:00

Oracle Workspace Manager

. VALID 11.2.0.4.0 00:01:41

OLAP Analytic Workspace

. VALID 11.2.0.4.0 00:01:13

OLAP Catalog

. VALID 11.2.0.4.0 00:02:32

Oracle OLAP API

. VALID 11.2.0.4.0 00:01:22

Oracle Enterprise Manager

. VALID 11.2.0.4.0 00:27:13

Oracle XDK

. VALID 11.2.0.4.0 00:00:00

Oracle Text

. VALID 11.2.0.4.0 00:02:43

Oracle XML Database

. VALID 11.2.0.4.0 00:12:04

Oracle Database Java Packages

. VALID 11.2.0.4.0 00:00:55

Oracle Multimedia

. VALID 11.2.0.4.0 00:10:09

Spatial

. VALID 11.2.0.4.0 00:18:19


Oracle Expression Filter

. VALID 11.2.0.4.0 00:00:34

Oracle Rule Manager

. VALID 11.2.0.4.0 00:00:26

Final Actions

. 00:02:19

Total Upgrade Time: 01:53:37

PL/SQL procedure successfully completed.

SQL>

SQL> SET SERVEROUTPUT OFF

SQL> SET VERIFY ON

SQL> commit;

Commit complete.

SQL>

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL>

SQL>

SQL>

SQL> DOC

DOC>#######################################################################

DOC>#######################################################################
DOC>

DOC> The above sql script is the final step of the upgrade. Please

DOC> review any errors in the spool log file. If there are any errors in

DOC> the spool file, consult the Oracle Database Upgrade Guide for

DOC> troubleshooting recommendations.

DOC>

DOC> Next restart for normal operation, and then run utlrp.sql to

DOC> recompile any invalid application objects.

DOC>

DOC> If the source database had an older time zone version prior to

DOC> upgrade, then please run the DBMS_DST package. DBMS_DST will upgrade

DOC> TIMESTAMP WITH TIME ZONE data to use the latest time zone file shipped

DOC> with Oracle.

DOC>

DOC>#######################################################################

DOC>#######################################################################

DOC>#

SQL>

SQL> Rem Set errorlogging off

SQL> SET ERRORLOGGING OFF;

SQL>

SQL> REM END OF CATUPGRD.SQL

SQL>

SQL> REM bug 12337546 - Exit current sqlplus session at end of catupgrd.sql.

SQL> REM This forces user to start a new sqlplus session in order

SQL> REM to connect to the upgraded db.

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@prod 2014_10_13]$

2)

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

SQL> @?/rdbms/admin/catuppst.sql

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

TIMESTAMP

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

COMP_TIMESTAMP POSTUP_BGN 2014-10-13 13:01:56

PL/SQL procedure successfully completed.

This script will migrate the Baseline data on a pre-11g database

to the 11g database.

Move BL Data "SYS"."WRH$_FILESTATXS" (0 rows in 0 seconds)


Move BL Data "SYS"."WRH$_SQLSTAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_SYSTEM_EVENT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_WAITSTAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_LATCH" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_LATCH_CHILDREN" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_LATCH_PARENT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_LATCH_MISSES_SUMMARY" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_DB_CACHE_ADVICE" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_ROWCACHE_SUMMARY" (0 rows in 1 seconds)

Move BL Data "SYS"."WRH$_SGASTAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_SYSSTAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_PARAMETER" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_MVPARAMETER" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_SEG_STAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_DLM_MISC" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_SERVICE_STAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_TABLESPACE_STAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_OSSTAT" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_SYS_TIME_MODEL" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_SERVICE_WAIT_CLASS" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_INST_CACHE_TRANSFER" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_EVENT_HISTOGRAM" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_INTERCONNECT_PINGS" (0 rows in 0 seconds)

Move BL Data "SYS"."WRH$_ACTIVE_SESSION_HISTORY" (0 rows in 0 seconds)

... ...

... Completed Moving the Baseline Data ...

... ...

... If there are no Move BL Data messages ...


... above, then there are no renamed ...

... baseline tables in the system. ...

... ...

Drop Renamed Baseline Table SYS."WRH$_FILESTATXS_BR"

Drop Renamed Baseline Table SYS."WRH$_SQLSTAT_BR"

Drop Renamed Baseline Table SYS."WRH$_SYSTEM_EVENT_BR"

Drop Renamed Baseline Table SYS."WRH$_WAITSTAT_BR"

Drop Renamed Baseline Table SYS."WRH$_LATCH_BR"

Drop Renamed Baseline Table SYS."WRH$_LATCH_CHILDREN_BR"

Drop Renamed Baseline Table SYS."WRH$_LATCH_PARENT_BR"

Drop Renamed Baseline Table SYS."WRH$_LATCH_MISSES_SUMMARY_BR"

Drop Renamed Baseline Table SYS."WRH$_DB_CACHE_ADVICE_BR"

Drop Renamed Baseline Table SYS."WRH$_ROWCACHE_SUMMARY_BR"

Drop Renamed Baseline Table SYS."WRH$_SGASTAT_BR"

Drop Renamed Baseline Table SYS."WRH$_SYSSTAT_BR"

Drop Renamed Baseline Table SYS."WRH$_PARAMETER_BR"

Drop Renamed Baseline Table SYS."WRH$_MVPARAMETER_BR"

Drop Renamed Baseline Table SYS."WRH$_SEG_STAT_BR"

Drop Renamed Baseline Table SYS."WRH$_DLM_MISC_BR"

Drop Renamed Baseline Table SYS."WRH$_SERVICE_STAT_BR"

Drop Renamed Baseline Table SYS."WRH$_TABLESPACE_STAT_BR"

Drop Renamed Baseline Table SYS."WRH$_OSSTAT_BR"

Drop Renamed Baseline Table SYS."WRH$_SYS_TIME_MODEL_BR"

Drop Renamed Baseline Table SYS."WRH$_SERVICE_WAIT_CLASS_BR"

Drop Renamed Baseline Table SYS."WRH$_INST_CACHE_TRANSFER_BR"

Drop Renamed Baseline Table SYS."WRH$_EVENT_HISTOGRAM_BR"

Drop Renamed Baseline Table SYS."WRH$_INTERCONNECT_PINGS_BR"

Drop Renamed Baseline Table SYS."WRH$_ACTIVE_SESSION_HISTORY_BR"


... ...

... Completed the Dropping of the ...

... Renamed Baseline Tables ...

... ...

... If there are no Drop Table messages ...

... above, then there are no renamed ...

... baseline tables in the system. ...

... ...

PL/SQL procedure successfully completed.

0 rows created.

Commit complete.

Table created.

3 rows created.

1 row updated.

3 rows updated.
0 rows updated.

Table dropped.

Commit complete.

0 rows updated.

Commit complete.

0 rows updated.

Commit complete.

0 rows updated.

Commit complete.
0 rows created.

Commit complete.

0 rows created.

Commit complete.

PL/SQL procedure successfully completed.

TIMESTAMP

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

COMP_TIMESTAMP POSTUP_END 2014-10-13 13:02:23

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Generating apply and rollback scripts...

Check the following file for errors:

/home/app/oracle/cfgtoollogs/catbundle/
catbundle_PSU_ORCL_GENERATE_2014Oct13_13_02_42.log

Apply script:
/home/app/oracle/product/11.2.0/db_1//rdbms/admin/catbundle_PSU_ORCL_APPLY.sql

Rollback script:
/home/app/oracle/product/11.2.0/db_1//rdbms/admin/catbundle_PSU_ORCL_ROLLBACK.sql
PL/SQL procedure successfully completed.

Executing script file...

SQL> COLUMN spool_file NEW_VALUE spool_file NOPRINT

SQL> SELECT '/home/app/oracle/cfgtoollogs/catbundle/' || 'catbundle_PSU_' || name || '_APPLY_'


|| TO_CHAR(SYSDATE, 'YYYYMonDD_hh24_mi_ss',

'NLS_DATE_LANGUAGE=''AMERICAN''') || '.log' AS spool_file FROM v$database;

SQL> SPOOL &spool_file

SQL> exec dbms_registry.set_session_namespace('SERVER')

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 '11.2.0.4',

9 0,

10 'PSU',

11 'Patchset 11.2.0.2.0');

1 row created.

SQL> COMMIT;

Commit complete.

SQL> SPOOL off

SQL> SET echo off

Check the following log file for errors:

/home/app/oracle/cfgtoollogs/catbundle/catbundle_PSU_ORCL_APPLY_2014Oct13_13_02_47.log

SQL>
SQL> @?/rdbms/admin/utlu112s.sql

Oracle Database 11.2 Post-Upgrade Status Tool 10-13-2014 13:03:42

Component Current Version Elapsed Time

Name Status Number HH:MM:SS

Oracle Server

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated


. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. ORA-00001: unique constraint (SYS.I_SYSTEM_PRIVILEGE_MAP) violated

. VALID 11.2.0.4.0 00:31:39

JServer JAVA Virtual Machine

. VALID 11.2.0.4.0 00:00:00

Oracle Workspace Manager

. VALID 11.2.0.4.0 00:01:41

OLAP Analytic Workspace

. VALID 11.2.0.4.0 00:01:13

OLAP Catalog

. VALID 11.2.0.4.0 00:02:32

Oracle OLAP API

. VALID 11.2.0.4.0 00:01:22

Oracle Enterprise Manager

. VALID 11.2.0.4.0 00:27:13

Oracle XDK

. VALID 11.2.0.4.0 00:00:00

Oracle Text

. VALID 11.2.0.4.0 00:02:43

Oracle XML Database

. VALID 11.2.0.4.0 00:12:04

Oracle Database Java Packages

. VALID 11.2.0.4.0 00:00:55

Oracle Multimedia

. VALID 11.2.0.4.0 00:10:09


Spatial

. VALID 11.2.0.4.0 00:18:19

Oracle Expression Filter

. VALID 11.2.0.4.0 00:00:34

Oracle Rule Manager

. VALID 11.2.0.4.0 00:00:26

Final Actions

. 00:02:19

Total Upgrade Time: 01:53:37

PL/SQL procedure successfully completed.

SQL>

[oracle@prod ~]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.4.0 Production on Mon Oct 13 13:17:05 2014

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

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

You might also like