Contents
- Introduction
- Install 19c software on both primary and secondary
- Apply the latest OPatch utility RU/RUR
- Download and run the latest PreUpgrade tool
- Download and run the latest AutoUpgrade
- After Completing AutoUpgrade
- Final Checks
Introduction
This post demonstrates how to upgrade 18c database to 19c by using Oracle upgrade utility tool – AutoUpgrade.
Environment :
Primary Database Host / Database : oemnode1 / OEMREP
Standby Database Host / Database: stbnode1 / STBOEMREP
Subscribe to get access
Read more of this content when you subscribe today.
Final Checks
DGMGRL> show configuration; Configuration - dg_oemrep Protection Mode: MaxPerformance Members: oemrep - Primary database stboemrep - Physical standby database Fast-Start Failover: Disabled Configuration Status: SUCCESS (status updated 49 seconds ago) DGMGRL> show database stboemrep Database - stboemrep Role: PHYSICAL STANDBY Intended State: APPLY-ON Transport Lag: 0 seconds (computed 0 seconds ago) Apply Lag: 0 seconds (computed 0 seconds ago) Average Apply Rate: 30.00 KByte/s Real Time Query: OFF Instance(s): STBOEMREP Database Status: SUCCESS
[oracle@oemnode1 dbs]$ $ORACLE_HOME/OPatch/opatch lspatches 30894985;OCW RELEASE UPDATE 19.7.0.0.0 (30894985) 30869156;Database Release Update : 19.7.0.0.200414 (30869156) 30805684;OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684) OPatch succeeded.
SQL> set pagesize 200
SQL> set linesize 300
SQL> select CON_ID,
TO_CHAR(action_time, 'YYYY-MM-DD') AS action_time,
PATCH_ID,
PATCH_TYPE,
ACTION,
DESCRIPTION,
SOURCE_VERSION,
TARGET_VERSION
from CDB_REGISTRY_SQLPATCH
order by CON_ID, action_time, patch_id;
CON_ID ACTION_TIM PATCH_ID PATCH_TYPE ACTION DESCRIPTION SOURCE_VERSION TARGET_VERSION
---------- ---------- ---------- ---------- -------- ----------------------------------------------------- --------------- ---------------
1 2020-05-31 30805684 INTERIM APPLY OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684) 19.1.0.0.0 19.1.0.0.0
1 2020-05-31 30869156 RU APPLY Database Release Update : 19.7.0.0.200414 (30869156) 19.1.0.0.0 19.7.0.0.0
3 2020-05-31 30805684 INTERIM APPLY OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684) 19.1.0.0.0 19.1.0.0.0
3 2020-05-31 30869156 RU APPLY Database Release Update : 19.7.0.0.200414 (30869156) 19.1.0.0.0 19.7.0.0.0
SQL> select comp_name, status,version,VERSION_FULL from dba_registry COMP_NAME STATUS VERSION VERSION_FULL --------------------------------- --------- --------- ------------ Oracle Database Catalog Views VALID 19.0.0.0.0 19.7.0.0.0 Oracle Database Packages and TypesVALID 19.0.0.0.0 19.7.0.0.0 Oracle Real Application Clusters OPTION OFF 19.0.0.0.0 19.7.0.0.0 JServer JAVA Virtual Machine VALID 19.0.0.0.0 19.7.0.0.0 Oracle XDK VALID 19.0.0.0.0 19.7.0.0.0 Oracle Database Java Packages VALID 19.0.0.0.0 19.7.0.0.0 OLAP Analytic Workspace VALID 19.0.0.0.0 19.7.0.0.0 Oracle XML Database VALID 19.0.0.0.0 19.7.0.0.0 Oracle Workspace Manager VALID 19.0.0.0.0 19.7.0.0.0 Oracle Text VALID 19.0.0.0.0 19.7.0.0.0 Oracle Multimedia VALID 19.0.0.0.0 19.7.0.0.0 Spatial VALID 19.0.0.0.0 19.7.0.0.0 Oracle OLAP API VALID 19.0.0.0.0 19.7.0.0.0 Oracle Label Security VALID 19.0.0.0.0 19.7.0.0.0 Oracle Database Vault VALID 19.0.0.0.0 19.7.0.0.0 15 rows selected.
SQL> show con_name; CON_NAME ---------------- EMPDBREPOS SQL> select count(*) from dba_objects where status!='VALID'; COUNT(*) ---------- 0 SQL> connect / as sysdba Connected. SQL> select count(*) from dba_objects where status!='VALID'; COUNT(*) ---------- 0
Check TimeZone version has been upgraded to version 32 from version 31 in 18c.
SQL> SELECT * FROM v$timezone_file; FILENAME VERSION CON_ID -------------------- ------- ---------- timezlrg_32.dat 32 0 SQL> SELECT tz_version FROM registry$database; TZ_VERSION ---------- 32 SQL> SELECT property_name, property_value FROM database_properties WHERE property_name LIKE 'DST_%' ORDER BY property_name PROPERTY_NAME PROPERTY_VALUE ------------------------------ -------------------- DST_PRIMARY_TT_VERSION 32 DST_SECONDARY_TT_VERSION 0 DST_UPGRADE_STATE NONE SQL> SELECT DBMS_DST.get_latest_timezone_version from dual; GET_LATEST_TIMEZONE_VERSION --------------------------- 32
Drop GRP ( Guarantee Restore Point )
SQL> select name from v$restore_point; NAME -------------------------------------------- AUTOUPGRADE_221145114461854_OEMREP SQL> drop restore point AUTOUPGRADE_221145114461854_OEMREP; Restore point dropped.