Database Upgrade - DBUA
Database Upgrade - DBUA
======
https://dbvisit.com/blog/database-upgrade-methods-oracle-19c
https://www.br8dba.com/tag/steps-for-upgrading-oracle-database-to-19c-using-dbua/
PRE_INSTALLATION STEPS
======================
--> Run the 19c pre-install package on Linux to complete all OS level pre-
requisites.
yum install -y oracle-database-preinstall-19c
yum update -y
--> Create a backup dir and back up important files like listener.ora, sqlnet.ora,
tnsnames.ora and spfile.
mkdir /u01/backup
cd $ORACLE_HOME/network/admin
cp -p listener.ora sqlnet.ora tnsnames.ora /u01/backup/
cd $ORACLE_HOME/dbs
cp -p spfiletest.ora orapwtest /u01/backup/
--> Copy 19c software into new db home and install Oracle 19c software.
mkdir -p /u02/app/oracle/product/19c/db_1
chown -R oracle:oinstall /u02/
unzip
./runInstaller
--> Make a dir for the pre-upgrade script, then run the script
mkdir -p /home/oracle/preupgrade
/u01/app/oracle/product/12c/db_1/jdk/bin/java -jar
/u02/app/oracle/product/19c/db_1/rdbms/admin/preupgrade.jar FILE DIR
/home/oracle/preupgrade
==================
PREUPGRADE SUMMARY
==================
/home/oracle/preupgrade/preupgrade.log
/home/oracle/preupgrade/preupgrade_fixups.sql
/home/oracle/preupgrade/postupgrade_fixups.sql
Before upgrade:
INFORMATION ONLY
================
3. To help you keep track of your tablespace allocations, the following
AUTOEXTEND tablespaces are expected to successfully EXTEND during the
upgrade process.
Min Size
Tablespace Size For Upgrade
-
SYSAUX 470 MB 500 MB
SYSTEM 800 MB 912 MB
TEMP 32 MB 150 MB
UNDOTBS1 70 MB 439 MB
--> When such is flagged, the datafiles sizes should be adjusted in size to either
match or exceed recommendatiod as shown below;
Database altered.
Database altered.
Database altered.
Database altered.
P.S: If Tablespace auto extend is ON and max size also set, no action is taken.
====
SQL>
col name for a20
col GUARANTEE_FLASHBACK_DATABASE for a10
col TIME for a60
set lines 190
select NAME,GUARANTEE_FLASHBACK_DATABASE,TIME from V$restore_point;
UPGRADE
========
--> From 19c home dir, run the dbua
/u01/app/oracle/product/19.0.0/dbhome_1/bin/dbua
POST UPGRADE
=============
END
=======
Errors
=======
--> During the upgrade, I was having issues trying to resize the temp datafile as
seen below;
FILE_NAME
--> I had to create a new tempspace tablespace and create a new one
SQL> CREATE TEMPORARY TABLESPACE temp2 TEMPFILE
'/u01/app/oracle/oradata/test/temp02.dbf' SIZE 1G;
Tablespace created.
Database altered.
Tablespace dropped.