You are on page 1of 2

DATABASE UPGRADE

Oracledbagirl

Pre-req tasks
1. Check to make sure Oracle Label Security and Oracle Database Vault are
not installed
select * from v$option where parameter in ('Oracle Label Security',
'Oracle Database Vault'); - both should be false
select tablespace_name, status from dba_tablespaces; - no tables
relating to reference options
2. Drop

AUDSYS user
drop user audsys cascade;
drop role audit_viewer;
drop role audit_admin;

3. Create Environment, Profile Install 12.1.0.2 binaries and get the


preupgrd.sql and utluppkg.sql script R12.1
Cp preugrd.sql script /tmp/.
cp utluppkg.sql /tmp/.
4. Go to /tmp directory and run preupgrd.sql
Cd /tmp
Sqlplus /as sysdba
@preupgrd.sql
Change all the things its telling you to change, takes notes
Change process to 300 spfile ALTER SYSTEM SET PROCESSES=300
SCOPE=SPFILE;
Stop dbconsole and remove it copying file from 12c
ORACLE_HOME/olap/admin/catnoamd.sql from 11g
Gather database statistics
Purge recycle bin
execute dbms_preup.purge_recyclebin_fixup;

select * from dba_recyclebin;

5. Run preupgrade_fixups script


cd $ORACLE_BASE/cfgtoollogs/testdb/preupgrade
@preupgrade_fixups.sql if any errors please fix
6. Checking invalids before This tool lists post-upgrade invalid objects that
were not invalid prior to upgrade (it ignores pre-existing pre-upgrade
invalid objects).
@$ORACLE_HOME/rdbms/admin/utluiobj
7. Make sure there is enough room for archive logs Optional if you are
doing rman backup
alter system set db_recovery_file_dest_size=30g;
8. Backup before upgrade - Optional
make sure no archive mode with archive log list
shutdowm immediate
startup mount
alter database archivelog;
alter database open;
rman target /
show all
configure controlfile autobackup on;
backup database plus archivelog
Completing Database Upgrade
Source 12C profile
Run dbua
Verify the upgrade
cat /etc/oratab |grep <sid> - ensure 12c has been added to
oratab
select substr(comp_id,1,15) comp_id, substr(comp_name,1,30)
comp_name, substr(version,1,10) version, status from
dba_registry; -make sure version is 12c

You might also like