In this article, we will upgrade Oracle database Container database(CDB) and Pluggable database from 12c to 19c using Database Upgrade Assistant(DBUA).
Upgrade to 19c is possible from 11.2.0.4,12.1.0.2,12.2.0.1 and 18c.
Pre-Upgrade Tasks
First of all you need to take the backup of your database before performing the upgrade task and make sure to check the application compatibility with the newer version of the Oracle Database.
Complete the pre-upgrade steps for Oracle and ensure that your system meets the installation prerequisites.
Run the 19c pre-installation package on your system to complete the all OS level pre-requisites.
yum install -y oracle-database-preinstall-19c
yum install -y
Upgrade using DBUA
Create the Oracle home directory for 19c.I am installing Oracle Database 19c on below location.
cd /appmkdir -p ./oracle19c/product/19.3.0.0/db_1
cd ./oracle19c/product/19.3.0.0/db_1
unzip /home/software/LINUX.X64_193000_db_home.zip
Run the the installer in GUI mode.
./runInstallerChoose Set Up Software Only option.
Pre-upgrade steps
Check for invalid objects.
select count(*) from dba_objects where status='INVALID';Run pre-upgrade script.
/app/oracle12c/product/12.2.0.1/db_1/jdk/bin/java -jar /app/oracle19c/product/19.3.0.0/db_1/rdbms/admin/preupgrade.jar FILE DIR /home/oracle/preupgradeView pre-upgrade logs
cat /home/oracle/preupgrade/preupgrade.logRun Oracle Generated FIXUP SCRIPT
@/home/oracle/preupgrade/preupgrade_fixups.sql;Gather DICTIONARY STATS
SET ECHO ON;SET SERVEROUTPUT ON;
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
PURGE DBA_RECYCLEBIN;
Verify archive log dest size and Create Flashback Guaranteed Restore Point.
archive log list
alter system set db_recovery_file_dest_size=30G;alter system set db_recovery_file_dest= '/app/oracle12c/FRA';
Create Flashback Guaranteed Restore Point
select flashback_on from v$database;select name,open_mode,log_mode from v$database;
show parameter compatible
show parameter recovery
select * from V$restore_point;
create restore point pre_upgrade guarantee flashback database;
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;
Run the DBUA
cd /app/oracle19c/product/19.3.0.0/db_1/bin/./dbua






























Comments
Post a Comment