Texture
Texture
Texture
txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Upgrade Oracle database from 10.2.0.x to 10.2.0.4
++++++++++++++++++++++++++++++++++++++++++++++++++:
Follow the simple steps to upgrade your database from 10.2.0.x to 10.2.0.4
If you have updated your Oracle version then you must upgrade your database using
any one of the below methods, otherwise you will get the following error during
Database startup.
Step1: Download the patch 6810189 from Metalink and extract the file.
$ unzip p6810189_10204_LINUX-x86-64.zip (ex:- for linux 64 bit)
Step2: - Set the ORACLE_HOME and ORACLE_SID and backup the database
$ ORACLE_SID=testdb; export ORACLE_SID
$ ORACLE_HOME=/oracle/v10201; export ORACLE_HOME
Backup the databases using RMAN or command line file level backup, if any
Step 3: Shutdown database and all other processes/services.
Shutdown listener, if running on same version
$ lnsrctl stop
Shutdown database
SQL> SHUTDOWN IMMEDIATE
Step 6: Set the ORACLE_HOME and ORACLE_SID and run Pre-upgrade checks
$ ORACLE_SID=testdb; export ORACLE_SID
$ ORACLE_HOME=/oracle/v10204; export ORACLE_HOME
Review the spool file and make the necessary database/parameter changes based on
the recommendation.
The status of all the components should be VALID for a successful upgrade
Step 1:
For example:
If you are upgrading from 11.2.0.1 or 11.1.0.6, then you must first upgrade to
Oracle Database 11g Release 2 (11.2.0.2).
If you are upgrading from 10.2.0.2, 10.2.0.3, 10.2.0.4, or 10.1.0.5, then you must
first upgrade to 10.2.0.5 or later.
For release 9.2.0.8, you must first upgrade to an intermediate Oracle Database
release, as follows: 9.2.0.8 -> 11.2.0.2 or 11.2.0.3 -> 12.1
Step 2 :
Either take a cold or hot backup of the source database (advisable to have cold
backup).
Step.3:
Step.4:
SQL> @/u01/app/oracle/product/12.1.0.2/rdbms/admin/preupgrd.sql
preupgrade.log
preupgrade_fixups.sql
postupgrade_fixups.sql
Step.5:
Verify the preupgrade.log and make necessary changes
Example of preupgrade.log:
-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.
Step.6:
Prepare spfile for the 12c upgrade according to the output from preupgrade.log:
(Please note: Best Practice would be to edit the init.ora for the upgrade manually.
You could do so � the way i propose here is just a shortcut avoiding manual edit
steps)
SQL> create pfile from spfile;
Step.7:
SQL>@ORACLE_HOME/cfgtoollogs/$SID/preupgrade/preupgrade_fixups.sql
Please note that the preupgrade_fixups.sql script will still complain about
PROCESSES being set too low. This is because I have used the ALTER SYSTEM command
to adjust the parameter, but that adjustment will not take effect until the
database is shutdown and restarted. Because I specified SCOPE=SPFILE, this
parameter will be set correctly for the upgrade.
Step.8:
Step.9:
Copy the passwordfile and pfile/spfile from the 11g home to the 12c home.
$ cp /u01/app/oracle/product/11.2.0/dbs/spfileUPGR.ora
/u01/app/oracle/product/12.1.0.2/dbs/
$ cp /u01/app/oracle/product/11.2.0/dbs/orapwUPGR
/u01/app/oracle/product/12.1.0.2/dbs/
Step.10:
Step.11:
Step.12:
Run catctl.pl
Go to $ cd $ORACLE_HOME/rdbms/admin
$ $ORACLE_HOME/perl/bin/perl catctl.pl catupgrd.sql
This will take some time depending on your system. If you wonder about the RESTART
phases: those happen if timing dependencies make it necessary to rerun a certain
action. The logfiles will be written by default into the directory from which you
started catctl.pl, $ORACLE_HOME/rdbms/admin Once the upgrade is finished it will
shutdown the database and in the next phase restart it in normal mode.
Step.13:
The database is using timezone datafile version 14 and the target 12.2.0.1.0
database ships with timezone datafile version 26. Oracle recommends using the most
recent timezone data. For further information, refer to My Oracle Support Note
1585343.1
Step.14
SQL> @?/rdbms/admin/utlu122s.sql
SQL> @?/rdbms/admin/catuppst.sql
Important: The catuppst.sql script is run as part of the upgrade process unless the
upgrade returns errors during the process. Check the log file for "BEGIN
catuppst.sql" to verify that catuppst.sql ran during the upgrade process. If
catuppst.sql has not run, then proceed to run catuppst.sql as shown in this step.
Warning messages are also displayed when running catctl.pl indicating that
catuppst.sql was not run during the upgrade.
SQL> @catuppst.sql
This script can be run concurrently with utlrp.sql.
Run utlrp.sql to recompile any remaining stored PL/SQL and Java code in another
session.
SQL> @utlrp.sql
SQL>@?/rdbms/admin/utlrp.sql
Step.15:
Set COMPATIBALE parameter value to 12.2.0, start the listener with new home and
count the invalid objects
Step.16:
Note:
The database is using timezone datafile version 14 and the target 12.2.0.1.0
database ships with timezone datafile version 26. Oracle recommends using the most
recent timezone data. For further information, refer to My Oracle Support Note
1585343.1
g:\prints\db_upgrade\catctl.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The catctl.pl Utility In 12c
=============================:
The catupgrd.sql script Upgrade Utility to process the upgrade singled threaded.
Now there is a faster way to upgrade your Oracle Database to 12c, you can use the
catctl.pl the Parallel Upgrade Utility � a perl script, which replaces catupgrd.sql
and provides both parallel processing mode and serial mode. This will greatly help
reduce downtime for a database upgrade to 12c and I highly recommend you use this
option.
The �n option Specifies the number of processes to use for parallel operations
(default = 4). The maximum is 8. Set this parameter to 0 to run catctl.pl in serial
mode.
The catctl.pl Parallel Upgrade Utility is integrated with DBUA the gui upgrade
utility. However, for manual, command line upgrades, you can run catctl.pl with
various parameters
cd $ORACLE_HOME/rdbms/admin
$ORACLE_HOME/perl/bin/perl catctl.pl -n 3 -l $ORACLE_HOME/diagnostics catupgrd.sql
Once you start the database in upgrade mode by issuing the following command:
SQL> STARTUP UPGRADE
Once the database is started in upgrade mode, only queries on fixed views execute
without errors until after the catctl.pl script is run. Before running catctl.pl,
queries on any other view or the use of PL/SQL returns an error.
g:\prints\db_upgrade\startup upgrade.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Startup Upgrade
What is happening inside the database when you are starting a database in startup
upgrade mode? What is the difference between normal startup and startup upgrade?
Basically startup upgrade will open the database by setting the below parameters in
memory.(not for spfile)
It will be just a normal database startup, but it will make an environment for
migrating the version.
g:\prints\db_upgrade\upg1.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
How long will it take to upgrade the database by running catupgrd.sql script ?
Independent of:
Size of the database
Used data types
Dependent on:
The number of objects needing upgrading and recompilation Thus: the number of
installed options/components (Spatial, APEX, etc.)
Number of synonyms - they will be recompiled
Valid and non-stale data dictionary statistics (make sure to gather schema stats
prior to upgrade)
At a very low rate:
a. Number of datafiles
b. Size of redo logs
DESCRIPTION
This script is to be used for downgrading your database from the current release
you have installed to the release from which you upgraded.
NOTES
* This script needs to be run in the current release environment (before installing
the release to which you want to downgrade).
catupgrd.sql
============:Upgrading script Provides a direct upgrade path to the new Oracle
Database 10g release
DESCRIPTION
This script is to be used for upgrading a 9.2, 10.1 or 10.2 database to the new
release. This script provides a direct upgrade path from these releases to the new
Oracle release.
STAGE 1: call the "i" script for the oldest supported release:this loads all tables
that are necessary to perform basic DDL commands for the new release
STAGE 3: Determine the original release and call the c0x0x0x0.sql for the release.
This performs all necessary dictionary upgrade actions to bring the database from
the original release to new release.
NOTES
utlu102s.SQL
============
This Post-Upgrade Script Displays the component upgrade status after an upgrade to
release 10.2
This article is a step by step guide to upgrade oracle database 10gR2 (10.2.0.4) to
11gR1 (11.1.0.6). The current environment is OEL 4.7
The first step is to stop all the components of the oracle 10g database.
� stop isqlplus
$ isqlplusctl stop
� stop listener
$ lsnrctl stop
Now take a cold backup of the database and the ORACLE_HOME directory.
$cd /u01/app/oracle/oradata/
$ tar -czf /home/oracle/PRODbackup.tar.gz PROD
$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0
/*
This is Home Directory for Oracle 10g so I would make a tar archive of �10.2.0�
directory.
*/
$ cd /u01/app/oracle/product/
$ tar czf /home/oracle/oraHomeBackup.tar.gz 10.2.0
$ ls /home/oracle/*.tar.gz
/home/oracle/PRODbackup.tar.gz /home/oracle/oraHomeBackup.tar.gz
Now is the time to install oracle 11g R1 in a separate home directory from the
oracle 10g.
Since Oracle 10g is already installed on this server so you may find some of the
pre-installation configurations already there.
I will go through the adjustments in the pre-installation configurations that I had
to make when preparing for 11gR1 install on a server where 10gR2 was
already installed.
# Oracle settings
fs.file-max = 65536
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
If any one of these exist already and value is higher then or equal to the above,
then don�t add the new value but if the value is lower remove the already existing
value and add the above.
Now we need to make sure we have all necessary packages for Oracle. Most of the rpm
packages listed in the article would be installed. However to verify you may go
ahead and issue the following command for each of them.
It will show you if the package is installed or not. Now which ever package you
find missing install them. Put your Linux Media into DVD and go to the �Server�
directory.
cd /media/cdrom/Enterprise/RPMS
and install all the missing packages. In my case the linux user that owns the
oracle software installation is oracle. Check for the existence of the groups it
needs.
� Group oper doesn�t exist. Create it and assign it to the user oracle as secondary
group.
groupadd oper
usermod -g oinstall -G dba,oper oracle
Allow the user oracle to use X server, which it will need to run Oracle Universal
Installer.
# xhost +
# su � oracle
Create a new directory for 11g Oracle Home under your Oracle Base directory.
$ echo $ORACLE_BASE
/u01/app/oracle
$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0/
$ cd /u01/app/oracle/product
$ mkdir -p 11.1.0/
$ mkdir -p 11.1.0/oraInventory
� We will use a separate inventory location for 11g installation
# .bash_profile
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
As you can see I have made two sections in the file. One to setup the Environemnt
for Oracle 11g and one for 10g. During the Upgrade we will need to switch
back and forth in the 10g and 11g environemnts, and these settings will make it
easy for us.
If we want to set the user environemnt to 11g Oracle Home we will edit the file and
uncomment 11g setting and comment out the 10g settings and will do the
vice versa to set the user environemnt to 10g.
Open another console and login as user root. Edit the file /etc/oraInst.loc to
change the Oracle Inventory location.
inventory_loc=/u01/app/oracle/product/11.1.0/oraInventory
inst_group=dba
$ unzip p6810189_10204_Linux-x86.zip
4)Set the oracle user environment to 11g using the way described above.
$ cd /home/oracle/database/
$ ./runInstaller -invPtrLoc /etc/oraInst.loc
5)Once DBCA has finished creating the database, it will show a page like this. It
is a summary of the database that has just been created.
Configure Security Updates
This is the first screen you should see when you run Installer. You may leave the
email field empty and uncheck the check box that says �I wish to receive
security updates via My Oracle Support�.
Node Selection
Select Product Languages
Choose the language.
Installation Summary
Install Product
Sit back and relax until the progress bar goes to 100%.
Install Product
Execute Configuration Scrips
This screen suggests the scripts that you need to run as root user.
#swapoff -a
#swapon -a
6)Open another console, log in as root and perform run the root.sh script suggested
by the Oracle installer.
# which dbhome
/usr/local/bin/dbhome
# cd /usr/local/bin/
# mv dbhome dbhome_10204
# mv oraenv oraenv_10204
# mv coraenv coraenv_10204
# /u01/apps/oracle/product/11.2.0/db_1/root.sh
Oracle 11g Release 2 ships a script utlu112i.sql aka Pre-Upgrade tool. This script
can be found in the ORACLE_HOME/rdbms/admin directory. This script
checks the current database which you are trying to upgrade to 11gR2 and display a
report, if there are any changes need to be done before and after the
upgrade. Besides its reporting nature, it is mandatory to run before starting the
upgrade itself. If you did not run the Pre-Upgrade Information Tool, the
catupgrd.sql (upgrade script) script will terminate with one of the following
errors:
To run the Pre-Upgrade tool the environment should be set like this:
$ORACLE_HOME = Oracle Home which you are planning to upgrade (Old Oracle Home).
$ORACLE_SID = SID of the database being upgraded.
$PATH = should point to the original/old Oracle Home.
$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0/
� Verify that this is the 10g ORACLE_HOME
$ cd /u01/app/oracle/product/11.2.0/rdbms/admin/
$ cp utlu112i.sql /tmp
$ cd /tmp
$ sqlplus / as sysdba
SQL> startup
SQL> spool pre_upgrade.log
SQL> @utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 01-22-2013 23:19:55
.
**********************************************************************
Database:
**********************************************************************
�> name: PROD
�> version: 10.2.0.4.0
�> compatible: 10.2.0.1.0
�> blocksize: 8192
�> platform: Linux IA (32-bit)
�> timezone file: V4
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
�> SYSTEM tablespace is adequate for the upgrade.
�. minimum required size: 741 MB
�. AUTOEXTEND additional space required: 241 MB
�> UNDOTBS1 tablespace is adequate for the upgrade.
�. minimum required size: 404 MB
�> SYSAUX tablespace is adequate for the upgrade.
�. minimum required size: 472 MB
�. AUTOEXTEND additional space required: 202 MB
�> TEMP tablespace is adequate for the upgrade.
�. minimum required size: 61 MB
�> EXAMPLE tablespace is adequate for the upgrade.
�. minimum required size: 69 MB
.
**********************************************************************
Flashback: OFF
**********************************************************************
**********************************************************************
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
**********************************************************************
WARNING: �> �java_pool_size� needs to be increased to at least 64 MB
.
**********************************************************************
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]
**********************************************************************
�> background_dump_dest 11.1 DEPRECATED replaced by
�diagnostic_dest�
�> user_dump_dest 11.1 DEPRECATED replaced by
�diagnostic_dest�
�> core_dump_dest 11.1 DEPRECATED replaced by
�diagnostic_dest�
.
**********************************************************************
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
�> Data Mining [upgrade] VALID
�> Expression Filter [upgrade] VALID
�> Rule Manager [upgrade] VALID
�> Oracle OLAP API [upgrade] VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: �> Database is using a timezone file older than version 11.
�. After the release migration, it is recommended that DBMS_DST package
�. be used to upgrade the 10.2.0.4.0 database timezone version
�. to the latest version which comes with the new release.
WARNING: �> Database contains schemas with stale optimizer statistics.
�. Refer to the Upgrade Guide for instructions to update
�. schema statistics prior to upgrading the database.
�. Component Schemas with stale statistics:
�. SYS
�. WMSYS
�. OLAPSYS
�. SYSMAN
�. CTXSYS
�. XDB
�. MDSYS
WARNING: �> Database contains INVALID objects prior to upgrade.
�. The list of invalid SYS/SYSTEM objects was written to
�. registry$sys_inv_objs.
�. The list of non-SYS/SYSTEM objects was written to
�. registry$nonsys_inv_objs.
�. Use utluiobj.sql after the upgrade to identify any new invalid
�. objects due to the upgrade.
�. USER PUBLIC has 1 INVALID objects.
�. USER SYS has 2 INVALID objects.
WARNING: �> Database contains schemas with objects dependent on network
packages.
�. Refer to the Upgrade Guide for instructions to configure Network ACLs.
WARNING: �> EM Database Control Repository exists in the database.
�. Direct downgrade of EM Database Control is not supported. Refer to the
�. Upgrade Guide for instructions to save the EM data prior to upgrade.
WARNING:�> recycle bin in use.
�. Your recycle bin is turned on and it contains
�. 53 object(s). It is REQUIRED
�. that the recycle bin is empty prior to upgrading
�. your database.
�. The command: PURGE DBA_RECYCLEBIN
�. must be executed immediately prior to executing your upgrade.
.
Fix the warnings reported by the Pre-Upgrade tool. The warnings about parameters
and tablespaces if there are any needs to be done before the database
upgrade. As far as the Miscellaneous Warnings are concerned some you have to fix
before the upgrade and some after the upgre.
I have fixed the following warnings prior to the upgrade with the help of the link
�Oracle 11g Release 2 Pre Upgrade tool utlu112i.sql�.
SQL>PURGE DBA_RECYCLEBIN;
SQL>select count(*) from dba_objects where status=�INVALID�;
COUNT(*)
���-
3
OBJECT_NAME
���������������������������
OWNER
����������
DBMS_REGISTRY
SYS
DBA_REGISTRY_DATABASE
SYS
DBA_REGISTRY_DATABASE
PUBLIC
Once the database is shutdown log in as sysdba and create a pfile from spfile, that
we will ship to the 11g ORACLE_HOME and make the changes suggested by
the Pre-Upgrade tool.
$ sqlplus / as sysdba
File created.
SQL> exit
Now copy the newly created pfile (init[SID].ora) and the password file (orapw[SID])
from oracle 10g ORACLE_HOME/dbs to oracle 11g ORACLE_HOME/dbs.
$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0
$ cd $ORACLE_HOME/dbs
$ cp initPROD.ora orapwPROD /u01/app/oracle/product/11.1.0/dbs/
Now edit the newly copied pfile 11g ORACLE_HOME/dbs/init[SID].ora and make
adjustments as suggested by the pre upgrade tool. In my case the changes will
be:
� Remove the obsolete parameters background_dump_dest, user_dump_dest ,
core_dump_dest from the parameter file.
Now open another console, log in as root and edit /etc/oratab to change the oracle
home with the sid ora10g to 11g ORACLE_HOME. After the change the
/etc/oratab should look like this.
PROD:/u01/app/oracle/product/10.2.0:N to PROD:/u01/app/oracle/product/11.1.0:N
Now set the oracle user environment to 11g Oracle Home using the way described
above in this article.
Once the environment is set to 11g ORACLE_HOME, open sqlplus and startup the
database in upgrade mode.
$ echo $ORACLE_HOME
/u01/app/oracle/product/11.1.0/
$ cd $ORACLE_HOME/rdbms/admin/
$ sqlplus / as sysdba
SQL> @catupgrd.sql
Archive logs will be generated more because it will update tables in database so
db_recovery_file_dest_size will be filled, so increase the destination
size using below command & run again scripts
SQL>@catupgrd.sql
When catupgrd.sql finishes it will automatically shutdown the database. Exit from
sqlplus and open the spool file for the upgrade process and see if there
were any errors during the upgrade. If you don�t see any errors proceed further
with the upgrade
Create the spfile from the pfile so that the system should use the spfile for next
startup.
$ sqlplus / as sysdba
Connected to an idle instance.
SQL> create spfile from pfile=�/u01/app/oracle/product/11.1.0/dbs/initPROD.ora�;
SQL> startup
ORACLE instance started.
Total System Global Area 535662592 bytes
Fixed Size 1337720 bytes
Variable Size 234882696 bytes
Database Buffers 293601280 bytes
Redo Buffers 5840896 bytes
Database mounted.
Database opened.
SQL>spool off
Post-Upgrade Status Tool must shows all the components VALID or else you have to
troubleshoot it & run again the @utlu112s.sql
There are some further actions that need to be done, but they do not require the
database to be in upgrade mode. Now is the time to perform those action
via catuppst.sql script.
TIMESTAMP
���������������������������
COMP_TIMESTAMP POSTUP_END 2013-01-23 17:27:31
SQL>SPOOL OFF
Now run the utlrp.sql script to compile the objects which were invalidated during
the upgrade
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>#
SQL>SPOOL OFF
Now change the compatible initialization parameter to 11.2.0.1.0 to use all the
features of Oracle 11g Release 2.
SQL> startup
g:\prints\db_upgrade\upgrade.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Upgrading database from 11.2.0.1 to 11.2.0.4
+++++++++++++++++++++++++++++++++++++++++++++:
Complete Checklist for out-of-Place Manual Upgrade from Previous 11.2.0.N Version
to the Latest 11.2.0.N
(Doc ID 1276368.1)
STEP 1
======
Download the 11.2.0.4 or RDBMS software.
STEP 2
======
Install the latest 11.2.0.4 RDBMS Software into a new ORACLE_HOME.
STEP 3
======
after installing the latest 11.2.0.4 RDBMS software, copy and run the Pre-upgrade
tool from 11.2.0.4 to 11.2.0.1 (utlu112i.sql) on database (11.2.0.1). You need to
run and review pre-upgrade output and fix if any issues before upgrading to the
latest release of 11.2.0.4.
-Database
shows global database information about the current database, such as the database
name, release number and compatibility level. A warning is displayed if you must
adjust the COMPATIBLE initialization parameter before the database is upgraded.
-Logfiles
shows list of redo log files in the current database whose size is less than 4 MB.
For each log file, the file name, group number and recommended size is displayed.
In a manual upgrade using SQL scripts and utilities, new files of at least 4 MB
(preferably 10 MB) must be created in the current database, and any redo log files
less than 4 MB must be dropped before the database is upgraded. These tasks are
performed automatically by the Database Upgrade Assistant.
-Tablespaces
shows list of tablespaces in the current database. For each tablespace, the
tablespace name and minimum required size is displayed. In addition, a message is
displayed if the tablespace is adequate for the upgrade.In a manual upgrade using
SQL scripts and utilities, space must be added to tablespaces that do not have
enough free space in the current database. These tablespace adjustments must be
made before the database is upgraded. This task is performed automatically by the
Database Upgrade Assistant.
-Flashback
flashback is on/off
-Update Parameters
shows list of initialization parameters in the parameter file of the current
database that must be adjusted before the database is upgraded. The adjustments
must be made to the parameter file after it is copied to the new Oracle Database
11g release.
-Deprecated Parameters
shows list of initialization parameters in the parameter file of the current
database that are deprecated in the new Oracle Database 11g release.Obsolete
Parameters This section displays a list of initialization parameters in the
parameter file of the current database that are obsolete in the new Oracle Database
11g release2 (11.2). Obsolete initialization parameters must be removed from the
parameter file before the database is upgraded.
-Obsolete Parameters:
shows list of initialization parameters in the parameter file of the current
database that are obsolete in the new Oracle Database 11g release 2 (11.2).
Obsolete parameters need to be removed from the parameter file before the database
is upgraded. Obsolete parameters' means parameters which are no longer valid (or)
in use.
-Components
shows db components in the new Oracle Database 11g release 2 (11.2) that are
upgraded or installed when the current database is upgraded.
-Miscellaneous Warnings
shows warnings about specific situations that might require attention before or
after the upgrade.
-SYSAUX Tablespace
This section displays the minimum required size for the SYSAUX tablespace which is
required in the new Oracle Database 11g release 2 (11.2). The SYSAUX tablespace
must be created if it does not exist (in Oracle 9i ) after the new release is
started and before the upgrade scripts are invoked.
Note : If SYSAUX was created in 9i then it must be dropped and re-created after
starting in the new release. If created in 10g or later then it can be left there
and used.
STEP 4
======
Download dbupgdiag.sql script from the MOS to verify that all the components in
dba_registry are valid and no invalid data dictionary objects exist in dba_objects.
$ sqlplus / as sysdba
SQL> spool upgrade_info1.log
sql> @dbupgdiag.sql
sql> exit
dbupgdiag.sql
The above will create logfile and it will ask for location of the log
If the dbupgdiag.sql script reports any invalid objects, run
$ORACLE_HOME/rdbms/admin/utlrp.sql (multiple times) to validate the invalid objects
in the database, until there is no change in the number of invalid objects.
After validating the invalid objects, re-run dbupgdiag.sql in the upgraded database
once again and make sure that everything is fine
Step 5
======
Back up the Database
1. Perform Cold Backup
(or)
2. Take a backup using RMAN
STEP 6
=======
Shut down the database cleanly
STEP 8
=====
Configure the target 11.2.0.4 ORACLE_HOME.
STEP 9
======
Upgrade the database manually.
1) Start sqlplus and run catupgrd.sql script from the newly installed (Target)
$ORACLE_HOME/rdbms/admin
catupgrd.sql:
It drops all data dictionary objects of previous versions, and creates all of new
version objects along with this, it will running lots of internal scripts to make
your software functionable in short.
Note: After catupgrd.sql Process completes, Oracle will shut down Database. You
need to start database manually.
catuppst.sql
located in @$ORACLE_HOME/rdbms/admin/catuppst.sql;
Both AWR and ADDM were first introduced in Oracle 10g release 1 (10.1.0.2)
4) SQL> @$ORACLE_HOME/rdbms/admin/catuppst.sql;
5) SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql;
6) Run dbupgdiag.sql script (See note: 556610.1) and verify that all the components
in dba_registry are valid and there are no invalid objects in dba_objects.
7) Upgrade Time Zone to latest version using DBMS_DST.
11.2.0.1 Uses Time Zone version 11 but 11.2.0.4 Uses Time Zone version 14. So, need
to upgrade time Zone after DB upgrade. In case of DBUA upgrade it will update
automatically.
Note 1201253.1 Actions For DBMS_DST Updates When Upgrading to 11.2.0.4.
utlu112i.sql
utlu112s.sql
http://oraclepoint.com/oralife/2010/08/19/points-of-oracle-database-manual-upgrade-
from-10g-to-11g/
https://taliphakanozturken.wordpress.com/tag/catupgrd-sql/
http://ranjaydba.blogspot.in/
http://ramoracleappsdba.blogspot.in/2011/05/upgrade-to-oracle-11202-from-
oracle.html