Oracle Database Upgrade To 11Gr2: From Etwiki
Oracle Database Upgrade To 11Gr2: From Etwiki
From ETWiki
(Redirected from SOP - Upgrading 10G,11g database's to 11.2.0.2 version)
Contents
[hide]
· 1 Check List
· Please ensure that latest package is pushed by Onsite Oracle DBA team.
DBA ADMIN Team Part: update the EM files (oratab, tnsnames.ora, listener.ora). Push the
package from adm0m3:
--For Linux: On Target Server install latest Packages : --
etrpmadd -f -p oracle -v 11.2.0.2.x86_64
etrpmadd -f -p oradba -v 1.0
etrpmadd -f -p oradiag -v 1.0
--FROM adm0m3
etupdate –fn <server_name>
etupdate –fn <server_name> -p /etrade/lib
etupdate –fn <server_name> -p /etrade/bin
· Step 2 :
Disable all batch and cron jobs.
Backup
Archive removal and rotation
Application jobs
Stats collection job
Netcheck Monitoring. (In Oracle CRON)
standby job at standby server and make sure all arch has been applied at DR/STANDBY
server side.
Make sure currently no backup is running for the database, if yes then end
backup using command.
2 rows selected.
=============================================================================
Oracle Database Catalog Views 11.2.0.1.0 VALID
Oracle Database Packages and Types 11.2.0.1.0 VALID
Note : If any component is invalid then you should work bringing them in valid
status to procees ahead.
Then, check the spool file and examine the output genrated by utlu102i.sql.
Grep the specific database entry and change the value to latest home.
###########################################
# Miscellaneous
###########################################
compatible = 11.2.0.1
· It is Assumed that database was shutdown cleanly using OLD Oracle_HOME at end
of Phase 1.
etcmd sqlplus " / as sysdba"
SQL> startup nomount;
SQL> shutdown
· Step 4 : Startup database in upgrade mode and run the upgrade script :
This time you will be login to database using 11202 ORACLE_HOME.
SQL*Plus: Release 11.2.0.2.0 Production on Tue Feb 1 14:00:11 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL*Plus: Release 11.2.0.2.0 Production on Tue Feb 1 14:00:11 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
SQL> spool $ET_INSTANCE_ROOT/bkup/upgrade/upgrade_to_11_2_0_2.log append
SQL> startup upgrade
SQL> @?/rdbms/admin/catupgrd.sql
Imp : -This script will take care of all required script execution for upgrade existing installed
packages.
Oracle Database Catalog Views
Oracle Database Packages and Types
Oracle Real Application Clusters -- For RAC database's.
Check the spool file and verify that the packages and procedures compiled successfully. Correct
any problems you find in this file and rerun the appropriate upgrade script if necessary. You can
rerun any of the scripts described in this note as many times as necessary.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DBA ADMIN ORACLE TEAM TASK : --- Ask to update all required file at admin
server adm0m3
Packages.linux.intel, oratab, tnsnames.ora, listener.ora
and Push to target server
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.
Oracle Database 11.2 Post-Upgrade Status Tool 01-28-2011 10:45:32
.
Component Status Version HH:MM:SS
.
Oracle Server
. VALID 11.2.0.2.0 00:10:43
Gathering Statistics
. 00:00:40
Total Upgrade Time: 00:12:03
Note - in RAC environments, this script may suggest that the status of the RAC
component is
INVALID when in actual fact it is VALID (as shown in the output from
DBA_REGISTRY)
FILENAME VERSION
-------------------- ----------
timezlrg_11.dat 11
SQL> startup;
SQL> spool invalid_objects_post_upgrade_11g.log
SQL> @${ET_ORADBA_ROOT}/sql/list_invalid_objects.sql
SQL> spool off