Professional Documents
Culture Documents
Upgrade Oracle Database Manually From 12.2.0.1 To 19c - Bright DBA
Upgrade Oracle Database Manually From 12.2.0.1 To 19c - Bright DBA
____________________________________________________________________________
_______________________
PRE-UPGRADE TASKS
2. Backup
5. Minimum tablespace
sizes for upgrade
6. Update INITIALIZATION PARAMETERS
7. Gather DICTIONARY STATS
8. Purge Recyclebin
9. Refresh MVs
UPGRADE TASK
15. Copy init and password files from 12c to 19c dbs home
16. Startup DB in Upgrade mode
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 1/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
____________________________________________________________________________
_______________________
1. Environment
Hostname : RAC1.RAJASEKHAR.COM
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 2/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
DB VERSION : 12.2.0.1
DB Home Path :
/u01/app/oracle/product/12.2.0/dbhome_1
Target DB Path :
/u01/app/oracle/product/19.0.0/dbhome_1
PRE-UPGRADE TASKS
2. Backup
rmanbackup.sh
[oracle@rac1 CID]$
[oracle@rac1 CID]$
TNS Files
[oracle@rac1 ~]$ cd
u01/app/oracle/product/12.2.0/dbhome_1/network/admin/
/u01/app/oracle/product/12.2.0/dbhome_1/dbs
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 3/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
/u01/app/backup/
INVALID OBJECTS
COUNT(*)
----------
0 <----
SQL>
. oraenv (CID)
/u01/app/oracle/product/12.2.0/dbhome_1/jdk/bin/java -jar
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/preup
grade.jar TERMINAL TEXT
--- OR ---
/u01/app/oracle/product/12.2.0/dbhome_1/jdk/bin/java -jar
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/preup
grade.jar FILE DIR /home/oracle/CID/preupgrade
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
/u01/app/oracle/product/12.2.0/dbhome_1/jdk/bin/java -jar
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/preup
grade.jar FILE DIR /home/oracle/CID/preupgrade
==================
PREUPGRADE SUMMARY
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 4/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
==================
/home/oracle/CID/preupgrade/preupgrade.log
/home/oracle/CID/preupgrade/preupgrade_fixups.sql
/home/oracle/CID/preupgrade/postupgrade_fixups.sql
Before upgrade:
@/home/oracle/CID/preupgrade/preupgrade_fixups.sql
@/home/oracle/CID/preupgrade/postupgrade_fixups.sql
[oracle@rac1 ~]$
=======================================
=======================================
Container ID: 0
Version: 12.2.0.1.0
Compatible: 12.2.0
Blocksize: 8192
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 5/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Timezone File: 26
Readonly: FALSE
Edition: EE
---------------- --------------
--------------
==============
BEFORE UPGRADE
==============
REQUIRED ACTIONS
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 6/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
================
None
RECOMMENDED ACTIONS
===================
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
database upgrade.
INFORMATION ONLY
================
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 7/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
upgrade process.
Min Size
upgrade.
Parameter : LOG_ARCHIVE_DEST_1
Destination : /u01/app/archive/CID
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 8/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
catalog schema.
=============================
SQL>@/home/oracle/CID/preupgrade/preupgrade_fixups.sql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
RECOMMENDED ACTIONS
===================
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 9/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
command:
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 10/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
=============================
SQL>@/home/oracle/CID/preupgrade/postupgrade_fixups.sql
[oracle@rac1 ~]$
http://www.br8dba.com/asm-2/#tspace
23 5.08 31.9999847
4 .48 31.9999847
3 4.2 31.9999847
4 80 31.9999847
------ ----------
sum 1335
34 127.999939
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 11/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL>
SQL>
8. Purge Recyclebin
SQL>
9. Refresh MVs
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 12/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
no rows selected
SQL>
SQL> declare
list_failures integer(3) :=0;
begin
DBMS_MVIEW.REFRESH_ALL_MVIEWS(list_failures,'C','', TRUE,
FALSE);
end;
/
SQL>
SQL> @/home/oracle/CID/preupgrade/preupgrade_fixups.sql
SQL> REM
SQL> REM Oracle PRE-Upgrade Fixup Script
SQL> REM
SQL> REM Auto-Generated by: Oracle Preupgrade
Script
SQL> REM Version: 19.0.0.0.0
Build: 1
SQL> REM Generated on: 2020-01-28 20:45:02
SQL> REM
SQL> REM Source Database: CID
SQL> REM
SQL>
SQL> REM
SQL> REM Setup Environment
SQL> REM
SQL> SET ECHO OFF SERVEROUTPUT ON FORMAT WRAPPED TAB OFF
LINESIZE 200;
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 13/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Preup Preupgrade
Action Issue Is
3. tablespaces_info NO
Informational only.
Further
action is optional.
4. min_archive_dest_size NO
Informational only.
Further
action is optional.
5. rman_recovery_version NO
Informational only.
Further
action is optional.
The fixup scripts have been run and resolved what they
can. However,
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 14/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
of
the failed CHECK NAME or Preupgrade Action Number listed
above.
There you will find the original corresponding diagnostic
message
from the preupgrade which explains in more detail what
still needs
to be done.
SQL>
SQL>
SQL> !df -h /u01/app/archive/CID
SQL>
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 15/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=rac1.rajasekhar.com)(PORT=1524)))
[oracle@rac1 ~]$
[oracle@rac1 ~]$
FLASHBACK_ON
------------------
NO <-----
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 16/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL>
SQL> show parameter recovery
db_recovery_file_dest string
recovery_parallelism integer 0
remote_recovery_file_dest string
SQL>
SQL>!mkdir -p /u01/app/oracle/fast_recovery_area
System altered.
System altered.
db_recovery_file_dest string
/u01/app/oracle/fast_recovery_area
recovery_parallelism integer 0
remote_recovery_file_dest string
SQL>
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 17/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
no rows selected
SQL>
SQL>
SQL>
UPGRADE TASK
NAME OPEN_MODE
-------------------- --------------------
Database closed.
Database dismounted.
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 18/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL>
15. Copy init and password files from 12c to 19c dbs home
[oracle@rac1 ~]$ cd
/u01/app/oracle/product/12.2.0/dbhome_1/dbs
[oracle@rac1 dbs]$
[oracle@rac1 dbs]$
[oracle@rac1 ~]$
PATH=/u01/app/oracle/product/19.0.0/dbhome_1/bin:$PATH;
export PATH
/u01/app/oracle/product/19.0.0/dbhome_1/bin/sqlplus
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 19/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Version 19.4.0.0.0
Database mounted.
Database opened.
SQL>
SQL> select name,open_mode,cdb,version,status from
v$database,v$instance;
SQL>
[oracle@rac1 ~]$ cd
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 20/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
--- OR ---
# Shorthand command
[oracle@rac1 ~]$ cd
/u01/app/oracle/product/19.0.0/dbhome_1/bin/
[oracle@rac1 bin]$
[oracle@rac1 bin]$
[oracle@rac1 bin]$
[oracle@rac1 upgrade20200128213345]$ cd
/u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/CID/u
pgrade20200128213345
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 21/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
[oracle@rac1 upgrade20200128213345]$
tail -f catupgrd0.log
tail -f catupgrd1.log
tail -f catupgrd2.log
tail -f catupgrd3.log
[oracle@rac1 ~]$ cd
/u01/app/oracle/product/19.0.0/dbhome_1/bin/
Run in c = 0
Do not run in C = 0
Input Directory d = 0
Echo OFF e = 1
Simulate E = 0
Forced cleanup F = 0
Log Id i = 0
Child Process I = 0
Log Dir l = 0
Start Phase p = 0
End Phase P = 0
Reverse Order r = 0
AutoUpgrade Resume R = 0
Script s = 0
Serial Run S = 0
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 22/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
RO User Tablespaces T = 0
Display Phases y = 0
Debug catcon.pm z = 0
Debug catctl.pl Z = 0
STATUS: [Production]
BUILD:
[RDBMS_19.4.0.0.0DBRU_LINUX.X64_190626]
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/oraho
me = [/u01/app/oracle/product/19.0.0/dbhome_1]
/u01/app/oracle/product/19.0.0/dbhome_1/bin/orabasehome =
[/u01/app/oracle/product/19.0.0/dbhome_1]
catctlGetOraBaseLogDir =
[/u01/app/oracle/product/19.0.0/dbhome_1]
Analyzing file
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/catup
grd.sql
Number of Cpus = 1
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 23/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
will be written to
[/u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/CID/
upgrade20200128213345/catupgrd_cat
con_22589.lst]
scripts
Components in [CID]
------------------------------------------------------
------------------------------------------------------
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 24/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 25/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 26/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
------------------------------------------------------
------------------------------------------------------
LOG FILES:
(/u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/CID/
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 27/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
upgrade20200128213345/catupgrd*.log)
/u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/CID/u
pgrade20200128213345/upg_summary.log
[oracle@rac1 bin]$
/u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/CID/u
pgrade20200128213345
Component Current
Full Elapsed Time
Name Status
Version HH:MM:SS
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 28/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Spatial LOADING
19.4.0.0.0 00:07:19
Datapatch
00:08:34
Final Actions
00:08:43
Post Upgrade
00:00:12
[oracle@rac1 upgrade20200128213345]$
[oracle@rac1 ~]$
PATH=/u01/app/oracle/product/19.0.0/dbhome_1/bin:$PATH;
export PATH
/u01/app/oracle/product/19.0.0/dbhome_1/bin/sqlplus
Version 19.4.0.0.0
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 29/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL> startup;
ORACLE instance started.
Database mounted.
Database opened.
SQL>
SQL> col COMP_ID for a10
COMP_ID COMP_NAME
VERSION STATUS
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 30/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SDO Spatial
19.0.0.0.0 LOADING
15 rows selected.
SQL>
-- OR ---
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 31/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
cd /u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin
COUNT(*)
----------
1413 <----
COUNT(*)
----------
655 <----
SQL>
SQL>
@/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/utlr
p.sql
Session altered.
TIMESTAMP
---------------------------------------------------------
---------------------------------------------------------
---------------------------------------------------------
---------
COMP_TIMESTAMP UTLRP_BGN 2020-01-29 00:31:04
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 32/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
number of invalid
DOC> objects.
DOC>
DOC> Use the following queries to track recompilation
progress:
DOC>
DOC> 1. Query returning the number of invalid objects
remaining. This
DOC>
DOC> This script automatically chooses serial or
parallel recompilation
DOC>
DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for
parallel
DOC> recompilation. Jobs are created without instance
affinity so that they
DOC>
DOC> 2. Query showing UTL_RECOMP jobs that are running
DOC>#
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 33/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
TIMESTAMP
---------------------------------------------------------
---------------------------------------------------------
---------------------------------------------------------
---------
COMP_TIMESTAMP UTLRP_END 2020-01-29 00:36:03
DOC>#
-------------------
DOC>#
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 34/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
---------------------------
Function created.
Function dropped.
SQL>
COUNT(*)
----------
0
SQL>
SQL> @/home/oracle/CID/preupgrade/postupgrade_fixups.sql
Session altered.
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 35/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Package created.
No errors.
No errors.
Package created.
No errors.
No errors.
Executing Oracle POST-Upgrade Fixup Script
Preup Preupgrade
Action Issue Is
6. old_time_zones_exist NO Manual
fixup recommended.
8. post_fixed_objects NO
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 36/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Informational only.
Further
action is optional.
The fixup scripts have been run and resolved what they
can. However,
to be done.
Session altered.
SQL>
$ORACLE_HOME/rdbms/admin/utltz_countstats.sql
$ORACLE_HOME/rdbms/admin/utltz_countstar.sql
$ORACLE_HOME/rdbms/admin/utltz_upg_check.sql
$ORACLE_HOME/rdbms/admin/utltz_upg_apply.sql
[oracle@rac1 ~]$ cd
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/
[oracle@rac1 admin]$
VERSION
----------
26 <-----
SQL>
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 38/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL>
@/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/utlt
z_upg_check.sql
Session altered.
Session altered.
SQL>
SQL>
@/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/utlt
z_upg_apply.sql
Session altered.
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 39/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Database closed.
Database dismounted.
Database mounted.
Database opened.
Database closed.
Database dismounted.
Database mounted.
Database opened.
Table list:
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 40/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
"GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"
Number of failures: 0
Table list:
"GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
Number of failures: 0
Number of failures: 0
Number of failures: 0
Number of failures: 0
Session altered.
SQL>
SQL> SELECT version FROM v$timezone_file;
VERSION
----------
32 <----
1 row selected.
SQL>
components.
SQL>
@/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/utlu
sts.sql TEXT
Component Current
Full Elapsed Time
Name Status
Version HH:MM:SS
Spatial VALID
19.4.0.0.0 00:07:19
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 42/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Datapatch
00:08:34
Final Actions
00:08:43
Post Upgrade
00:00:12
Post Compile
00:04:58
SQL>
/*
In 12c:
https://docs.oracle.com/en/database/oracle/oracle-
database/12.2/upgrd/oracle-database-upgrade-
utilities.html#GUID-408F22C3-2AD6-4DA4-8015-F5C6149508F0
*/
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 43/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
/*
Rem catuppst.sql
Rem
Rem Copyright (c) 2006, 2018, Oracle and/or its
affiliates.
Rem
Rem NAME
Rem
Rem NOTES
TIMESTAMP
---------------------------------------------------------
-----------------------
*/
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 44/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
*** However can run one more time make sure no errors
during execution.
SQL>
@/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/catu
ppst.sql
TIMESTAMP
---------------------------------------------------------
-----------------------
TIMESTAMP
---------------------------------------------------------
-----------------------
TIMESTAMP
---------------------------------------------------------
-----------------------
TIMESTAMP
---------------------------------------------------------
-----------------------
TIMESTAMP
---------------------------------------------------------
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 45/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
-----------------------
TIMESTAMP
---------------------------------------------------------
-----------------------
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 46/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
TIMESTAMP
---------------------------------------------------------
-----------------------
SQL>
SQL> @/home/oracle/CID/preupgrade/postupgrade_fixups.sql
No errors.
No errors.
No errors.
No errors.
Executing Oracle POST-Upgrade Fixup Script
Preup Preupgrade
Action Issue Is
8. post_fixed_objects NO
Informational only.
Further
action is optional.
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 47/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
The fixup scripts have been run and resolved what they
can. However,
to be done.
SQL>
COUNT(*)
----------
0 <-----
SQL>
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 48/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL>
SQL> !ls -ltr
/u01/app/oracle/fast_recovery_area/CID/flashback
total 1433680
SQL>
SQL> drop restore point PRE_UPGRADE;
no rows selected
SQL>
SQL> !ls -ltr
/u01/app/oracle/fast_recovery_area/CID/flashback
total 0 <---
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 49/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
SQL>
SQL>
SQL> ALTER SYSTEM SET COMPATIBLE = '19.0.0' SCOPE=SPFILE;
System altered.
Database closed.
Database dismounted.
SQL>
SQL> startup;
ORACLE instance started.
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 50/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Database mounted.
Database opened.
SQL>
SQL> show parameter COMPATIBLE
SQL>
COMP_ID COMP_NAME
VERSION STATUS
19.0.0.0.0 VALID
SDO Spatial
19.0.0.0.0 VALID
15 rows selected.
SQL>
LISTENER_CID =
(DESCRIPTION_LIST =
(DESCRIPTION =
)
)
SID_LIST_LISTENER_CID =
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 52/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = CID.rajasekhar.com)
(ORACLE_HOME =
/u01/app/oracle/product/19.0.0/dbhome_1)
(SID_NAME = CID)
)
)
[oracle@rac1 admin]$
LISTENER_CID =
CID =
(DESCRIPTION =
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = CID.rajasekhar.com)
)
)
[oracle@rac1 admin]$
[oracle@rac1 admin]$
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 53/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
Starting
/u01/app/oracle/product/19.0.0/dbhome_1/bin/tnslsnr:
please wait...
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=rac1.rajasekhar.com)(PORT=1524)))
------------------------
Alias LISTENER_CID
SNMP OFF
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=rac1.rajasekhar.com)(PORT=1524)))
Services Summary...
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 54/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
[oracle@rac1 admin]$
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin/sql
net.ora
OK (0 msec)
[oracle@rac1 admin]$
*** REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
No action taken.
/u01/app/oracle/product/19.0.0/dbhome_1/dbs
----------------------
remote_login_passwordfile string
EXCLUSIVE
SQL>
SQL>
#CID:/u01/app/oracle/product/12.2.0/dbhome_1:N
CID:/u01/app/oracle/product/19.0.0/dbhome_1:N
[oracle@rac1 ~]$
cat rmanbackup_19c.sh
rmanbackup_19c.sh
allocated channel: t2
allocated channel: t3
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 56/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/database_CID
_02un5nen_2 tag=TAG20200129T034111 comment=NONE
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/database_CID
_01un5nen_1 tag=TAG20200129T034111 comment=NONE
piece
handle=/u01/app/oracle/fast_recovery_area/CID/autobackup/
2020_01_29/o1_mf_s_1030938097_h313ml67_.bkp comment=NONE
released channel: t1
released channel: t2
released channel: t3
RMAN>
sql statement: alter system archive log current
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 57/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
allocated channel: a1
allocated channel: a2
allocated channel: a3
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 58/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/arch_CID_04u
n5nfn_4 tag=TAG20200129T034143 comment=NONE
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 59/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/arch_CID_05u
n5nfn_5 tag=TAG20200129T034143 comment=NONE
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/arch_CID_06u
n5nfo_6 tag=TAG20200129T034143 comment=NONE
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/arch_CID_07u
n5nk1_7 tag=TAG20200129T034143 comment=NONE
piece
handle=/u01/app/oracle/fast_recovery_area/CID/autobackup/
2020_01_29/o1_mf_s_1030938246_h313rjrj_.bkp comment=NONE
released channel: a1
released channel: a2
released channel: a3
allocated channel: c1
piece
handle=/u01/app/backup/CID/AFTER_UPGRADE_19C/Control_CID_
09un5nkm_9 tag=TAG20200129T034422 comment=NONE
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 60/61
3/1/22, 3:08 PM Upgrade Oracle Database Manually from 12.2.0.1 to 19c - Bright DBA
piece
handle=/u01/app/oracle/fast_recovery_area/CID/autobackup/
2020_01_29/o1_mf_s_1030938266_h313rv5m_.bkp comment=NONE
released channel: c1
RMAN>
[oracle@rac1 AFTER_UPGRADE_19C]$
www.br8dba.com/upgrade-oracle-database-manually-from-12-2-0-1-to-19c/ 61/61