|
pre-upgrade steps
- storage preparation: nfs mount ready
- backups
- database snapshot
- oci/voting disks backup
- ocrconfig -showbackup
- ls -l /export/home/orarac/oracle_base/oracle/product/10.2.0/crs/cdata/crs
- crsctl query css votedisk
- dd if=/oradata/ocfs1/voting1 of=/export/home/oracle/backup/voting1.bk bs=4k
- oracel homes: crs, asm, db
- Grid Infrastructure upgrade
- rolling upgrade not possible for production because of asm version <11.1
- swing upgrade might be necessary for production environment that requires minimum downtime
- test, stage environments can use the rolling upgrade if ASM is not used
- os upgrade/patches
- out of place installation/upgrade
- runcluvfy.sh
- /tmp/CVU_11.2.0.3.0_orarac/runfixup.sh
- sysctl -p
- runcluvfy.sh
- Verify that the upgrade has completed by using the command crsctl query crs activeversion.
- db software binary upgrade
- backups
- db snapshot
- oci/voting disks backup
- all configuration files
- database pre-upgrade steps
- run the pre-upgrade information tool @utlu112i.sql
- check the integrity of the source database with dbupgrdiag.sql
- optimizer statistics:
- dbms_stats.gather_dictionary_stats (This procedure gathers statistics for dictionary schemas 'SYS', 'SYSTEM' and schemas of RDBMS components.)
- backup the existing statistics for existing schemas to revert/import back the statistics once the upgrade is successful if necessary
- dictionary corruption checking
- ensure no media recovery is required
- ensure no files are in backup mode
- ensure no pending distributed transactions
- ensure aud$ owned by sys and in system tablespace (n/a)
- prepare pfile and other configuration files for the new Oracle home
database upgrade steps
- blackout start
- stop listener and disable all batch and cron jobs
- shutdown apps
- turn off cluster setting, archive logging
- shutdown db
- cold backup(take a sanpshot)
- update oratab to point to the new home and update environment variables
- startup upgrade
- run catupgrd.sql
- shutdown db (automatically)
- startup db
- migrate baseline data with catuppst.sql
- check the integrity of the source database with dbupgrdiag.sql again
- timezone upgrade to 14 (use DBMS_DST package)
- Actions For DST Updates When Upgrading To Or Applying The 11.2.0.3 Patchset[ID 1358166.1]
- instruction: Updating the RDBMS DST version in 11gR2 (11.2.0.1 and up) using DBMS_DST [ID 977512.1]
- it might be not necessary, if timezone is not used in apps
- turn on cluster setting, archive logging, adjust compatible
- create spfile
- Oracle Text upgrade (may be skipped or moved to post-upgrade, need verify)
- shutdown db
- upgrade the Oracle Clustware configuration
- startup db and services
- backup: snapshot
- start listener and enable all batch and cron jobs
- startup apps
- qa verification
- blackout end
post-upgrade tasks
- monitoring
- miscellaneous configuation upgrade
- cleanups
- unlock/uninstall previous clusterware installation
- uninstall previous asm/database installation
- remove old logs/obsolete backups
|