0% found this document useful (0 votes)
374 views

Step by Step Manual Upgrade Oracle Database From 12c To 19c - DBsGuru

This document provides steps to manually upgrade an Oracle database from version 12c to 19c. It includes pre-upgrade checks like installing the 19c binaries and running the preupgrade tool. The manual upgrade steps are divided into 3 parts - pre-checks, upgrade commands, and post-upgrade steps. Key files generated by the preupgrade tool are reviewed.

Uploaded by

mvidal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
374 views

Step by Step Manual Upgrade Oracle Database From 12c To 19c - DBsGuru

This document provides steps to manually upgrade an Oracle database from version 12c to 19c. It includes pre-upgrade checks like installing the 19c binaries and running the preupgrade tool. The manual upgrade steps are divided into 3 parts - pre-checks, upgrade commands, and post-upgrade steps. Key files generated by the preupgrade tool are reviewed.

Uploaded by

mvidal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

This is Google's cache of https://dbsguru.com/step-by-step-manual-upgrade-oracle-database-from12c-to-19c/. It is a


snapshot of the page as it appeared on 25 Nov 2022 18:01:08 GMT. The current page could have changed in the
meantime. Learn more.

Full version Text-only version View source


Tip: To quickly find your search term on this page, press Ctrl+F or ⌘-F (Mac) and use the find bar.

[email protected]

+91-93101-67776

HOME RDBMS EXADATA WEBLOGIC APPSDBA OS OTHERS

SCRIPTS

Step by Step Manual Upgrade Oracle Database from 12c


to 19c
DBsGuru February 20, 2022 0 Comments
0(0)

Step by Step Manual Upgrade Oracle


Database from 12c to 19c

1 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

In a recent post, we demonstrated Step by Step Oracle Database Upgrade from 11g
(11.2.0.4) to 12c (12.2.0.1) using DBUA, click here to read more about it. In this
article, we are going to demonstrate Step by Step Manual Upgrade Oracle Database
from12c to 19c on Linux. Follow the below steps to perform a manual upgrade to 19c.

List of target upgrade versions from supported source version along with the
certificate, data source support.oracle.com.

Direct Upgrade List:

Source DB Version Target DB Version

18.1 19c

12.2.0.2 19c

12.1.0.2 19c

11.2.04 19c

Indirect Upgrade List:

Source DB Version Intermediate DB Version Target DB Version

2 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

12.1.0.1 12.1.0.2/12.2.0.1 19c

11.2.0.1/11.2.0.2/11.2.0.3 11.2.0.4 19c

11.1.0.6/11.1.0.7 11.2.0.4 19c

10.2.0.2/10.2.0.3/10.2.0.4/10.2.0.5 11.2.0.4/12.1.0.2 19c

10.1.0.5 11.2.0.4/12.1.0.2 19c

9.2.0.8 or earlier 11.2.0.4 19c

19c Certificate.

Below are the environmental details of this demonstration.

COMPONENTS SOURCE TARGET

Database Name &


LABDB03, Standalone LABDB03, Standalone
Type

Database Version 12.2.0.1 19.3.0.0

/u01/app/oracle/product /u01/app/oracle/product
Oracle Home
/12201/db_1 /1930/db_1

DB Server Type Linux, OEL 7.9 Linux, OEL 7.9

We will complete a manual upgrade from 12c to 19c in the below three-part followed by detailed
steps.

1. Pre-Checks / Pre-Steps

3 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

2. Manual Upgrade using command Steps


3. Post upgrade Steps

1. Pre-Checks / Pre-Steps

1.1: Install 19c Binary: Install Oracle 19c binary if it’s not already available on the DB server. Click
here to get 19c binary installation steps and follow the same.

1.2: Execute the pre-upgrade command: Execute the preupgrade tool from the source home
(12c).

$12C_ORACLE_HOME/jdk/bin/java -jar $19C_ORACLE_HOME/rdbms/admin/preupgrade.jar


FILE TEXT DIR output_dir

1 [oracle@DBsGuruN2 bkp]$ . oraenv


2 ORACLE_SID = [labdb03] ? labdb03
3 The Oracle base remains unchanged with value /u01/app/oracle
4 [oracle@DBsGuruN2 ~]$ /u01/app/oracle/product/12201/db_1/jdk/bin/java -ja
5 ==================
6 PREUPGRADE SUMMARY
7 ==================
8 /home/oracle/bkp/labdb03_upgrade/preupgrade.log
9 /home/oracle/bkp/labdb03_upgrade/preupgrade_fixups.sql
10 /home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql
11
12 Execute fixup scripts as indicated below:
13
14 Before upgrade:
15
16 Log into the database and execute the preupgrade fixups
17 @/home/oracle/bkp/labdb03_upgrade/preupgrade_fixups.sql
18
19 After the upgrade:
20
21 Log into the database and execute the postupgrade fixups
22 @/home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql
23
24 Preupgrade complete: 2022-02-08T18:02:01

Switch to the directory to review generated files and log by preupgrade tool as mentioned
in preupgrade.jar.

4 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN1 ~]$ cd /home/oracle/bkp/labdb03_upgrade


2 [oracle@DBsGuruN2 labdb03_upgrade]$ ls -lrt
3 total 728
4 drwxr-xr-x. 3 oracle oinstall 21 Feb 8 18:01 oracle
5 -rw-r--r--. 1 oracle oinstall 15085 Feb 8 18:01 dbms_registry_extended
6 -rw-r--r--. 1 oracle oinstall 7884 Feb 8 18:01 preupgrade_driver.sql
7 -rw-r--r--. 1 oracle oinstall 455876 Feb 8 18:01 preupgrade_package.sql
8 -rw-r--r--. 1 oracle oinstall 100166 Feb 8 18:01 preupgrade_messages.pr
9 -rw-r--r--. 1 oracle oinstall 14016 Feb 8 18:01 parameters.properties
10 drwxr-xr-x. 3 oracle oinstall 24 Feb 8 18:01 upgrade
11 -rw-r--r--. 1 oracle oinstall 41134 Feb 8 18:01 components.properties
12 -rw-r--r--. 1 oracle oinstall 2 Feb 8 18:01 checksBuffer.tmp
13 -rw-r--r--. 1 oracle oinstall 7734 Feb 8 18:02 preupgrade_fixups.sql
14 -rw-r--r--. 1 oracle oinstall 8618 Feb 8 18:02 postupgrade_fixups.sql
15 -rw-r--r--. 1 oracle oinstall 7079 Feb 8 18:02 preupgrade.log
16 -rw-r--r--. 1 oracle oinstall 1083 Feb 8 18:46 upgrade_initlabdb03.or
17 [oracle@DBsGuruN1 labdb03_upgrade]$ cat preupgrade.log
18 Report generated by Oracle Database Pre-Upgrade Information Tool Version
19 19.0.0.0.0 Build: 1 on 2022-02-08T18:02:01
20
21 Upgrade-To version: 19.0.0.0.0
22
23 =======================================
24 Status of the database prior to upgrade
25 =======================================
26 Database Name: LABDB03
27 Container Name: labdb03
28 Container ID: 0
29 Version: 12.2.0.1.0
30 DB Patch Level: No Patch Bundle applied
31 Compatible: 12.2.0
32 Blocksize: 8192
33 Platform: Linux x86 64-bit
34 Timezone File: 26
35 Database log mode: ARCHIVELOG
36 Readonly: FALSE
37 Edition: EE
38
39 Oracle Component Upgrade Action Current
40 ---------------- -------------- -------------
41 Oracle Server [to be upgraded] VALID
42 JServer JAVA Virtual Machine [to be upgraded] VALID
43 Oracle XDK for Java [to be upgraded] VALID
44 Real Application Clusters [to be upgraded] OPTION
45 Oracle Workspace Manager [to be upgraded] VALID
46 OLAP Analytic Workspace [to be upgraded] VALID
47 Oracle Label Security [to be upgraded] VALID
48 Oracle Database Vault [to be upgraded] VALID
49 Oracle Text [to be upgraded] VALID
50 Oracle XML Database [to be upgraded] VALID
51 Oracle Java Packages [to be upgraded] VALID
52 Oracle Multimedia [to be upgraded] VALID
53 Oracle Spatial [to be upgraded] VALID
54 Oracle OLAP API [to be upgraded] VALID
55
56 ==============
57 BEFORE UPGRADE
58 ==============

5 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

59
60 REQUIRED ACTIONS
61 ================
62 None
63
64 RECOMMENDED ACTIONS
65 ===================
66 1. (AUTOFIXUP) Gather stale data dictionary statistics prior to
67 upgrade in off-peak time using:
68
69 EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
70
71 Dictionary statistics do not exist or are stale (not up-to-
72
73 Dictionary statistics help the Oracle optimizer find efficient SQL
74 execution plans and are essential for proper upgrade timing. Oracl
75 recommends gathering dictionary statistics in the last 24 hours be
76 database upgrade.
77
78 For information on managing optimizer statistics, refer to
79 Oracle Database SQL Tuning Guide.
80
81 2. (AUTOFIXUP) Gather statistics on fixed objects prior the upgrade.
82
83 None of the fixed object tables have had stats collected.
84
85 Gathering statistics on fixed objects, if none have been gathered
86 recommended prior to upgrading.
87
88 For information on managing optimizer statistics, refer to
89 Oracle Database SQL Tuning Guide.
90
91 INFORMATION ONLY
92 ================
93 3. To help you keep track of your tablespace allocations, the followi
94 AUTOEXTEND tablespaces are expected to successfully EXTEND during
95 upgrade process.
96
97 Min Size
98 Tablespace Size For Upgrade
99 ---------- ---------- -----------
100 SYSAUX 450 MB 500 MB
101 SYSTEM 800 MB 912 MB
102 TEMP 32 MB 150 MB
103 UNDOTBS1 70 MB 439 MB
104
105 Minimum tablespace sizes for upgrade are estimates.
106
107 4. Check the Oracle Backup and Recovery User's Guide for information
108 to manage an RMAN recovery catalog schema.
109
110 If you are using a version of the recovery catalog schema that
111 than that required by the RMAN client version, then you must upgra
112 catalog schema.
113
114 It is good practice to have the catalog schema the same or
115 than the RMAN client version you are using.
116

6 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

117 ORACLE GENERATED FIXUP SCRIPT


118 =============================
119 All of the issues in database LABDB03
120 which are identified above as BEFORE UPGRADE "(AUTOFIXUP)" can be reso
121 executing the following
122
123 SQL>@/home/oracle/bkp/labdb03_upgrade/preupgrade_fixups.sql
124
125 =============
126 AFTER UPGRADE
127 =============
128
129 REQUIRED ACTIONS
130 ================
131 None
132
133 RECOMMENDED ACTIONS
134 ===================
135 5. Upgrade the database time zone file using the DBMS_DST package.
136
137 The database is using time zone file version 26 and the target 19
138 ships with time zone file version 32.
139
140 Oracle recommends upgrading to the desired (latest) version
141 zone file. For more information, refer to "Upgrading the Time Zon
142 and Timestamp with Time Zone Data" in the 19 Oracle Database
143 Globalization Support Guide.
144
145 6. To identify directory objects with symbolic links in the path
146 $ORACLE_HOME/rdbms/admin/utldirsymlink.sql AS SYSDBA after
147 Recreate any directory objects listed, using path names that conta
148 symbolic links.
149
150 Some directory object path names may currently contain symbolic li
151
152 Starting in Release 18c, symbolic links are not allowed in
153 object path names used with BFILE data types, the UTL_FILE package
154 external tables.
155
156 7. (AUTOFIXUP) Gather dictionary statistics after the upgrade using t
157 command:
158
159 EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
160
161 Oracle recommends gathering dictionary statistics after upgrade.
162
163 Dictionary statistics provide essential information to the Oracle
164 optimizer to help it find efficient SQL execution plans. After
165 upgrade, statistics need to be re-gathered as there can now be tab
166 that have significantly changed during the upgrade or new tables t
167 not have statistics gathered yet.
168
169 8. Gather statistics on fixed objects after the upgrade and when
170 representative workload on the system using the command:
171
172 EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
173
174 This recommendation is given for all preupgrade runs.

7 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

175
176 Fixed object statistics provide essential information to the Oracl
177 optimizer to help it find efficient SQL execution plans. Those
178 statistics are specific to the Oracle Database release that genera
179 them, and can be stale upon database upgrade.
180
181 For information on managing optimizer statistics, refer to
182 Oracle Database SQL Tuning Guide.
183
184 ORACLE GENERATED FIXUP SCRIPT
185 =============================
186 All of the issues in database LABDB03
187 which are identified above as AFTER UPGRADE "(AUTOFIXUP)" can be resol
188 executing the following
189
190 SQL>@/home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql
191 [oracle@DBsGuruN1 labdb03_upgrade]$
192 SQL> @/home/oracle/bkp/labdb03_upgrade/preupgrade_fixups.sql

NOTE: 1. Review log preupgrade.log and act if any action requires under “REQUIRED ACTIONS”
especially for tablespaces SYSTEM, SYAUX, UNDO, TEMP, and optionally “RECOMMENDED
ACTIONS“.

2. After taking action to fix issues as required, must execute again preupgrade tool and make sure
no action require in preupgrade.log.

3. preupgrade_fixups.sql command will be executed before the upgrade, here we will be doing
also manual execution of various SQLs and other commands which are the surety of success along
with the smooth upgrade.

1.3. Refresh Materialized Views if any: Wait for the completion of materialized views if exist in
the database.

1 SQL> declare
2 list_failures integer(3) :=0;
3 begin
4 DBMS_MVIEW.REFRESH_ALL_MVIEWS(list_failures,'C','', TRUE, FALSE);
5 end;
6 / 2 3 4 5 6
7
8 PL/SQL procedure successfully completed.
9
10 SQL> SELECT o.name FROM sys.obj$ o, sys.user$ u, sys.sum$ s WHERE
11
12 no rows selected

8 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1.4: Manually gather statistics: Execute the below commands to gather statistics which will
reduce the total time of upgrade.

1 SQL> exec dbms_stats.gather_fixed_objects_stats;


2
3 PL/SQL procedure successfully completed.
4
5 SQL> exec dbms_stats.gather_schema_stats ('SYSTEM');
6
7 PL/SQL procedure successfully completed.
8
9 SQL> exec dbms_stats.gather_schema_stats ('SYS');
10
11 PL/SQL procedure successfully completed.
12
13 SQL> exec dbms_stats.gather_dictionary_stats;
14
15 PL/SQL procedure successfully completed.

1.5: Active Backup Validation: Validate database for active-backup or if any datafiles are in
recovery mode.

1 SQL> SELECT * FROM v$recover_file;


2
3 no rows selected
4 SQL> SELECT * FROM v$backup WHERE status != 'NOT ACTIVE';
5
6 no rows selected

1.6: Default Tablespace for SYS & SYSTEM: Validate users SYS and SYSTEM have assigned default
tablespace SYSTEM.

1 SQL> SELECT * from dba_users where username in ('SYS','SYSTEM') and


2
3 no rows selected

1.7: Pending 2phase pending transactions: Validate any Pending 2phase Transactions active.

1 SQL> SELECT * FROM dba_2pc_pending;


2
3 no rows selected

In case the above command returns any selected rows with data, then run the below
following commands:

9 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> SELECT local_tran_id FROM dba_2pc_pending;


2 SQL> EXECUTE dbms_transaction.purge_lost_db_entry('');
3 SQL> COMMIT;

1.8: Invalid Objects compile: Execute the below command to validate invalid objects and
Recompile them if found any invalid objects, especially for database default users.

1 SQL> select owner, count(*) from dba_objects where status <> 'VALID'
2
3 no rows selected
4 SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql

1.9: Component’s version along with status: Validate components status and make sure none of
should be INVALID.

1 SQL> set lines 333 pages 111


2 SQL> col COMP_NAME form a55
3 SQL> select comp_name, version, status from dba_registry;
4
5 COMP_NAME VERSION
6 ------------------------------------------------------- -----------------
7 Oracle Database Catalog Views 12.2.0.1.0
8 Oracle Database Packages and Types 12.2.0.1.0
9 JServer JAVA Virtual Machine 12.2.0.1.0
10 Oracle XDK 12.2.0.1.0
11 Oracle Database Java Packages 12.2.0.1.0
12 OLAP Analytic Workspace 12.2.0.1.0
13 Oracle Real Application Clusters 12.2.0.1.0
14 Oracle XML Database 12.2.0.1.0
15 Oracle Workspace Manager 12.2.0.1.0
16 Oracle Text 12.2.0.1.0
17 Oracle Multimedia 12.2.0.1.0
18 Spatial 12.2.0.1.0
19 Oracle OLAP API 12.2.0.1.0
20 Oracle Label Security 12.2.0.1.0
21 Oracle Database Vault 12.2.0.1.0
22
23 15 rows selected.

1.10: Empty Database Recyclebin: Purge deleted objects from recyclebin.

10 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> purge DBA_RECYCLEBIN;


2
3 DBA Recyclebin purged.
4
5 SQL> select count(*) from DBA_RECYCLEBIN;
6
7 COUNT(*)
8 ----------
9 0

1.11: Validate value of parameter sec_case_sensitive_logon: If the value is FALSE then change
to TRUE.

1 SQL> alter system set sec_case_sensitive_logon=TRUE scope=both;


2
3 System altered.
4
5 SQL> show parameter sec_case_sensitive_logon
6
7 NAME TYPE VALUE
8 ------------------------------------ ----------- -------------------------
9 sec_case_sensitive_logon boolean TRUE

1.12: Timezone: Validate the timezone.

1 SQL> COL PROPERTY_NAME FOR A25


2 SQL> COL PROPERTY_VALUE FOR A21
3 SQL> Select version from v$timezone_file;
4
5 VERSION
6 ----------
7 26
8
9 1 row selected.
10
11 SQL> select PROPERTY_NAME,PROPERTY_VALUE from database_properties where
12
13 PROPERTY_NAME PROPERTY_VALUE
14 ------------------------- ---------------------
15 DST_PRIMARY_TT_VERSION 26
16
17 1 row selected.

1.13: Upgrade component APEX: If component APEX is installed in 12c then it’s recommended to
upgrade it prior to upgrading the database to 19c following doc ID 1088970.1.

11 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> select COMP_ID, VERSION, STATUS from DBA_REGISTRY where COMP_ID=


2
3 no rows selected

1.14: Execute dbupgdiag.sql: This is recommended to execute dbupgdiag.sql which captured


detailed information of installed COMPONENTS, INVALID OBJECTS along with much more detailed
information of database and also must fix if found any action prior to upgrade to 19c. Click here
to download dbupgdiag.sql.

12 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> @/home/oracle/bkp/labdb03_upgrade/dbupgdiag.sql
2
3 Enter location for Spooled output:
4
5 Enter value for 1: /home/oracle/bkp/labdb03_upgrade
6
7 09_Feb_2022_0556 .log
8
9 labdb03_
10
11
12
13 *** Start of LogFile ***
14
15 Oracle Database Upgrade Diagnostic Utility 02-09-2022 17:56:06
16
17 ===============
18 Hostname
19 ===============
20
21 DBsGuruN2.labdomain
22
23 ===============
24 Database Name
25 ===============
26
27 LABDB03
28
29 ===============
30 Database Uptime
31 ===============
32
33 17:14 09-FEB-22
34
35 =================
36 Database Wordsize
37 =================
38
39 This is a 64-bit database
40
41 ================
42 Software Version
43 ================
44
45 Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Produc
46 PL/SQL Release 12.2.0.1.0 - Production
47 CORE 12.2.0.1.0 Production
48 TNS for Linux: Version 12.2.0.1.0 - Production
49 NLSRTL Version 12.2.0.1.0 - Production
50
51 =============
52 Compatibility
53 =============
54
55 Compatibility is set as 12.2.0
56
57 ================
58 Archive Log Mode

13 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

59 ================
60
61 Database log mode Archive Mode
62 Automatic archival Enabled
63 Archive destination USE_DB_RECOVERY_FILE_DEST
64 Oldest online log sequence 9
65 Next log sequence to archive 11
66 Current log sequence 11
67
68 ================
69 Auditing Check
70 ================
71
72
73 NAME TYPE VALUE
74 ------------------------------------ ----------- -----------------------
75 audit_file_dest string /u01/app/oracle/admin/l
76 adump
77 audit_sys_operations boolean TRUE
78 audit_syslog_level string
79 audit_trail string DB
80 unified_audit_sga_queue_size integer 1048576
81
82 ================
83 Cluster Check
84 ================
85
86 NAME TYPE VALUE
87 ------------------------------------ ----------- -----------------------
88 cluster_database boolean FALSE
89 cluster_database_instances integer 1
90
91 DOC>################################################################
92 DOC>
93 DOC> If CLUSTER_DATABASE is set to TRUE, change it to FALSE before
94 DOC> upgrading the database
95 DOC>
96 DOC>################################################################
97 DOC>#
98
99 ===========================================
100 Tablespace and the owner of the aud$ table ( IF Oracle Label Security
101 ===========================================
102
103 OWNER TABLESPACE_NAME
104 ------------ ------------------------------
105 SYS SYSTEM
106
107 ========================================================================
108 count of records in the sys.aud$ table where dbid is null- Standard Audi
109 ========================================================================
110
111
112 0
113
114
115 ========================================================================
116 count of records in the system.aud$ when dbid is null, Std Auditing

14 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

117 ========================================================================
118 select count(*) from system.aud$ where dbid is null
119 *
120 ERROR at line 1:
121 ORA-00942: table or view does not exist
122
123
124
125
126 ========================================================================
127 count of records in the sys.fga_log$ when dbid is null, Fine Grained Aud
128 ========================================================================
129
130 0
131
132
133
134 ==========================================
135 Oracle Label Security is installed or not
136 ==========================================
137
138 Oracle Label Security is installed
139
140 ================
141 Number of AQ Records in Message Queue Tables
142 ================
143
144 SYS - ALERT_QT - 0
145 SYS - AQ$_MEM_MC - 0
146 SYS - AQ_EVENT_TABLE - 0
147 SYS - AQ_PROP_TABLE - 0
148 SYS - KUPC$DATAPUMP_QUETAB - 0
149 SYS - ORA$PREPLUGIN_BACKUP_QTB - 0
150 SYS - SCHEDULER$_EVENT_QTAB - 0
151 SYS - SCHEDULER$_REMDB_JOBQTAB - 0
152 SYS - SCHEDULER_FILEWATCHER_QT - 0
153 SYS - SYS$SERVICE_METRICS_TAB - 0
154 WMSYS - WM$EVENT_QUEUE_TABLE - 0
155
156 ================
157 Time Zone version
158 ================
159
160
161 26
162
163 ================
164 Local Listener
165 ================
166
167
168 LISTENER_LABDB03
169
170 ================
171 Default and Temporary Tablespaces By User
172 ================
173
174

15 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

175 USERNAME TEMPORARY_TABLESPACE DEFAULT_TABLESPACE


176 ---------------------------- ---------------------- --------------------
177 SYS TEMP SYSTEM
178 SYSTEM TEMP SYSTEM
179 XS$NULL TEMP SYSTEM
180 OJVMSYS TEMP SYSTEM
181 LBACSYS TEMP SYSTEM
182 OUTLN TEMP SYSTEM
183 SYS$UMF TEMP SYSTEM
184 DBSNMP TEMP SYSAUX
185 APPQOSSYS TEMP SYSAUX
186 DBSFWUSER TEMP SYSAUX
187 GGSYS TEMP SYSAUX
188 ANONYMOUS TEMP SYSAUX
189 CTXSYS TEMP SYSAUX
190 SI_INFORMTN_SCHEMA TEMP SYSAUX
191 DVSYS TEMP SYSAUX
192 DVF TEMP SYSAUX
193 GSMADMIN_INTERNAL TEMP SYSAUX
194 ORDPLUGINS TEMP SYSAUX
195 MDSYS TEMP SYSAUX
196 OLAPSYS TEMP SYSAUX
197 ORDDATA TEMP SYSAUX
198 XDB TEMP SYSAUX
199 WMSYS TEMP SYSAUX
200 ORDSYS TEMP SYSAUX
201 GSMCATUSER TEMP USERS
202 MDDATA TEMP USERS
203 SYSBACKUP TEMP USERS
204 REMOTE_SCHEDULER_AGENT TEMP USERS
205 GSMUSER TEMP USERS
206 SYSRAC TEMP USERS
207 AUDSYS TEMP USERS
208 DIP TEMP USERS
209 SYSKM TEMP USERS
210 ORACLE_OCM TEMP USERS
211 SYSDG TEMP USERS
212 SPATIAL_CSW_ADMIN_USR TEMP USERS
213
214
215 ================
216 Component Status
217 ================
218
219 Comp ID Component Status Version Org_
220 ------- ---------------------------------- --------- -------------- ----
221 APS OLAP Analytic Workspace VALID 12.2.0.1.0
222 CATALOG Oracle Database Catalog Views VALID 12.2.0.1.0
223 CATJAVA Oracle Database Java Packages VALID 12.2.0.1.0
224 CATPROC Oracle Database Packages and Types VALID 12.2.0.1.0
225 CONTEXT Oracle Text VALID 12.2.0.1.0
226 DV Oracle Database Vault VALID 12.2.0.1.0
227 JAVAVM JServer JAVA Virtual Machine VALID 12.2.0.1.0
228 OLS Oracle Label Security VALID 12.2.0.1.0
229 ORDIM Oracle Multimedia VALID 12.2.0.1.0
230 OWM Oracle Workspace Manager VALID 12.2.0.1.0
231 RAC Oracle Real Application Clusters OPTION OFF12.2.0.1.0
232 SDO Spatial VALID 12.2.0.1.0

16 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

233 XDB Oracle XML Database VALID 12.2.0.1.0


234 XML Oracle XDK VALID 12.2.0.1.0
235 XOQ Oracle OLAP API VALID 12.2.0.1.0
236
237
238
239 ======================================================
240 List of Invalid Database Objects Owned by SYS / SYSTEM
241 ======================================================
242
243
244 Number of Invalid Objects
245 ------------------------------------------------------------------
246 There are no Invalid Objects
247
248 DOC>################################################################
249 DOC>
250 DOC> If there are no Invalid objects below will result in zero rows
251 DOC>
252 DOC>################################################################
253 DOC>#
254
255
256 no rows selected
257
258
259 ================================
260 List of Invalid Database Objects
261 ================================
262
263
264 Number of Invalid Objects
265 ------------------------------------------------------------------
266 There are no Invalid Objects
267
268 DOC>################################################################
269 DOC>
270 DOC> If there are no Invalid objects below will result in zero rows
271 DOC>
272 DOC>################################################################
273 DOC>#
274
275
276 no rows selected
277
278
279 ======================================================
280 Count of Invalids by Schema
281 ======================================================
282
283 ==============================================================
284 Identifying whether a database was created as 32-bit or 64-bit
285 ==============================================================
286
287 DOC>####################################################################
288 DOC>
289 DOC> Result referencing the string 'B023' ==> Database was created
290 DOC> Result referencing the string 'B047' ==> Database was created

17 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

291 DOC> When String results in 'B023' and when upgrading database to
292 DOC> (64-bit) , For known issue refer below articles
293 DOC>
294 DOC> Note 412271.1 ORA-600 [22635] and ORA-600 [KOKEIIX1] Reported While
295 DOC> Upgrading Or Patching Databases To 10.2.0.3
296 DOC> Note 579523.1 ORA-600 [22635], ORA-600 [KOKEIIX1], ORA-7445 [KOPESI
297 DOC> OCI-21500 [KOXSIHREAD1] Reported While Upgrading
298 DOC>
299 DOC>####################################################################
300 DOC>#
301
302
303 Metadata Initial DB Creation Info
304 -------- -----------------------------------
305 B047 Database was created as 64-bit
306
307 ===================================================
308 Number of Duplicate Objects Owned by SYS and SYSTEM
309 ===================================================
310
311 Counting duplicate objects ....
312
313
314 COUNT(1)
315 ----------
316 0
317
318 =========================================
319 Duplicate Objects Owned by SYS and SYSTEM
320 =========================================
321
322 Querying duplicate objects ....
323
324
325 DOC>
326 DOC>####################################################################
327 DOC>Below are expected and required duplicates objects and OMITTED
328 DOC>
329 DOC>Without replication installed:
330 DOC>INDEX AQ$_SCHEDULES_PRIMARY
331 DOC>TABLE AQ$_SCHEDULES
332 DOC>
333 DOC>If replication is installed by running catrep.sql:
334 DOC>INDEX AQ$_SCHEDULES_PRIMARY
335 DOC>PACKAGE DBMS_REPCAT_AUTH
336 DOC>PACKAGE BODY DBMS_REPCAT_AUTH
337 DOC>TABLE AQ$_SCHEDULES
338 DOC>
339 DOC>If any objects found please follow below article.
340 DOC>Note 1030426.6 How to Clean Up Duplicate Objects Owned by SYS
341 DOC>Read the Exceptions carefully before taking actions.
342 DOC>
343 DOC>####################################################################
344 DOC>#
345
346 ========================
347 Password protected roles
348 ========================

18 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

349
350 DOC>
351 DOC>####################################################################
352 DOC>
353 DOC> In version 11.2 password protected roles are no longer enabled
354 DOC> an application relies on such roles being enabled by default
355 DOC> performed to allow the user to enter the password with the set
356 DOC> is recommended to remove the password from those roles (to allow
357 DOC> privileges to remain available). For more information see:
358 DOC>
359 DOC> Note 745407.1 : What Roles Can Be Set as Default for a User?
360 DOC>
361 DOC>####################################################################
362 DOC>#
363
364 Querying for password protected roles ....
365
366
367 ================
368 JVM Verification
369 ================
370
371
372 ================================================
373 Checking Existence of Java-Based Users and Roles
374 ================================================
375
376 DOC>
377 DOC>####################################################################
378 DOC>
379 DOC> There should not be any Java Based users for database version 9.0.1
380 DOC> If any users found, it is faulty JVM.
381 DOC>
382 DOC>####################################################################
383 DOC>#
384
385
386 User Existence
387 ---------------------------
388 No Java Based Users
389
390 DOC>
391 DOC>###############################################################
392 DOC>
393 DOC> Healthy JVM Should contain Six Roles. For 12.2 Seven Roles
394 DOC> If there are more or less than six role, JVM is inconsistent.
395 DOC>
396 DOC>###############################################################
397 DOC>#
398
399
400 Role
401 ------------------------------
402 There are 7 JAVA related roles
403
404 Roles
405
406

19 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

407 ROLE
408 ------------------------------
409 JAVAUSERPRIV
410 JAVAIDPRIV
411 JAVASYSPRIV
412 JAVADEBUGPRIV
413 DBJAVASCRIPT
414 JAVA_ADMIN
415 JAVA_DEPLOY
416
417 =========================================
418 List of Invalid Java Objects owned by SYS
419 =========================================
420
421 There are no SYS owned invalid JAVA objects
422
423 DOC>
424 DOC>#################################################################
425 DOC>
426 DOC> Check the status of the main JVM interface packages DBMS_JAVA
427 DOC> and INITJVMAUX and make sure it is VALID.
428 DOC>
429 DOC> If there are no Invalid objects below will result in zero rows
430 DOC>
431 DOC>#################################################################
432 DOC>#
433
434
435 no rows selected
436
437
438 DOC>
439 DOC>#################################################################
440 DOC>
441 DOC> If the JAVAVM component is not installed in the database (for
442 DOC> example, after creating the database with custom scripts), the
443 DOC> next query will report the following error:
444 DOC>
445 DOC> select dbms_java.longname('foo') "JAVAVM TESTING" from dual
446 DOC> *
447 DOC> ERROR at line 1:
448 DOC> ORA-00904: "DBMS_JAVA"."LONGNAME": invalid identifier
449 DOC>
450 DOC> If the JAVAVM component is installed, the query should succeed
451 DOC> with 'foo' as result.
452 DOC>
453 DOC>#################################################################
454 DOC>#
455
456
457 JAVAVM TESTING
458 ---------------
459 foo
460
461 ===================================
462 Oracle Multimedia/InterMedia status
463 ===================================
464

20 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

465 .
466 Oracle Multimedia/interMedia is installed and listed with the following
467 .
468 Checking for installed Database Schemas...
469 ORDSYS user exists.
470 ORDPLUGINS user exists.
471 MDSYS user exists.
472 SI_INFORMTN_SCHEMA user exists.
473 .
474 Checking for Prerequisite Components...
475 JAVAVM installed and listed as valid
476 XDK installed and listed as valid
477 XDB installed and listed as valid
478 Validating Oracle Multimedia/interMedia...(no output if component status
479
480 PL/SQL procedure successfully completed.
481
482
483 *** End of LogFile ***
484
485
486
487 Upload db_upg_diag_labdb03_09_Feb_2022_0556.log from "/home/oracle/bkp/l
488
489 SQL>

1.15: Database Backup: Take the database a full backup before upgrade.

21 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 bkp]$ . oraenv


2 ORACLE_SID = [labdb03] ? labdb03
3 The Oracle base remains unchanged with value /u01/app/oracle
4 [oracle@DBsGuruN2 bkp]$ rman target /
5
6 Recovery Manager: Release 12.2.0.1.0 - Production on Tue Feb 8 17:54:05
7
8 Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights rese
9
10 connected to target database: LABDB03 (DBID=326197667)
11
12 RMAN> run
13 {
14 ALLOCATE CHANNEL D1 DEVICE TYPE DISK FORMAT '/home/oracle/bkp/labdb03_%U
15 ALLOCATE CHANNEL D2 DEVICE TYPE DISK FORMAT '/home/oracle/bkp/labdb03_%U
16 ALLOCATE CHANNEL D3 DEVICE TYPE DISK FORMAT '/home/oracle/bkp/labdb03_%U
17 BACKUP tag 'UPGRADE_DB' FORCE AS COMPRESSED BACKUPSET DATABASE PLUS ARCH
18 BACKUP CURRENT CONTROLFILE TAG 'UPGRADE_CTL' FORMAT '/home/oracle/bkp/la
19 BACKUP SPFILE TAG 'UPGRADE_SPFILE' FORMAT '/home/oracle/bkp/labdb03sf_%U
20 RELEASE CHANNEL D1;
21 2> RELEASE CHANNEL D2;
22 RELEASE CHANNEL D3;
23 }3> 4> 5> 6> 7> 8> 9> 10> 11> 12>
24
25 using target database control file instead of recovery catalog
26 allocated channel: D1
27 channel D1: SID=17 device type=DISK
28
29 allocated channel: D2
30 channel D2: SID=140 device type=DISK
31
32 allocated channel: D3
33 channel D3: SID=268 device type=DISK
34
35
36 Starting backup at 08-FEB-22
37 current log archived
38 channel D1: starting compressed archived log backup set
39 channel D1: specifying archived log(s) in backup set
40 input archived log thread=1 sequence=5 RECID=1 STAMP=1096134857
41 channel D1: starting piece 1 at 08-FEB-22
42 channel D1: finished piece 1 at 08-FEB-22
43 piece handle=/home/oracle/bkp/labdb03_010lbc69_1_1 tag=UPGRADE_DB commen
44 channel D1: backup set complete, elapsed time: 00:00:01
45 Finished backup at 08-FEB-22
46
47 Starting backup at 08-FEB-22
48 channel D1: starting compressed full datafile backup set
49 channel D1: specifying datafile(s) in backup set
50 input datafile file number=00001 name=/oradata/labdb03/system01.dbf
51 input datafile file number=00007 name=/oradata/labdb03/users01.dbf
52 channel D1: starting piece 1 at 08-FEB-22
53 channel D2: starting compressed full datafile backup set
54 channel D2: specifying datafile(s) in backup set
55 input datafile file number=00003 name=/oradata/labdb03/sysaux01.dbf
56 input datafile file number=00004 name=/oradata/labdb03/undotbs01.dbf
57 channel D2: starting piece 1 at 08-FEB-22
58 channel D1: finished piece 1 at 08-FEB-22

22 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

59 piece handle=/home/oracle/bkp/labdb03_020lbc6a_1_1 tag=UPGRADE_DB commen


60 channel D1: backup set complete, elapsed time: 00:00:35
61 channel D2: finished piece 1 at 08-FEB-22
62 piece handle=/home/oracle/bkp/labdb03_030lbc6a_1_1 tag=UPGRADE_DB commen
63 channel D2: backup set complete, elapsed time: 00:00:35
64 Finished backup at 08-FEB-22
65
66 Starting backup at 08-FEB-22
67 current log archived
68 channel D1: starting compressed archived log backup set
69 channel D1: specifying archived log(s) in backup set
70 input archived log thread=1 sequence=6 RECID=2 STAMP=1096134894
71 channel D1: starting piece 1 at 08-FEB-22
72 channel D1: finished piece 1 at 08-FEB-22
73 piece handle=/home/oracle/bkp/labdb03_040lbc7e_1_1 tag=UPGRADE_DB commen
74 channel D1: backup set complete, elapsed time: 00:00:01
75 Finished backup at 08-FEB-22
76
77 Starting backup at 08-FEB-22
78 channel D1: starting full datafile backup set
79 channel D1: specifying datafile(s) in backup set
80 including current control file in backup set
81 channel D1: starting piece 1 at 08-FEB-22
82 channel D1: finished piece 1 at 08-FEB-22
83 piece handle=/home/oracle/bkp/labdb03ctl_050lbc7f tag=UPGRADE_CTL commen
84 channel D1: backup set complete, elapsed time: 00:00:01
85 Finished backup at 08-FEB-22
86
87 Starting backup at 08-FEB-22
88 channel D1: starting full datafile backup set
89 channel D1: specifying datafile(s) in backup set
90 including current SPFILE in backup set
91 channel D1: starting piece 1 at 08-FEB-22
92 channel D1: finished piece 1 at 08-FEB-22
93 piece handle=/home/oracle/bkp/labdb03sf_060lbc7h_1_1 tag=UPGRADE_SPFILE
94 channel D1: backup set complete, elapsed time: 00:00:01
95 Finished backup at 08-FEB-22
96
97 Starting Control File and SPFILE Autobackup at 08-FEB-22
98 piece handle=/home/oracle/FRA/LABDB03/autobackup/2022_02_08/o1_mf_s_1096
99 Finished Control File and SPFILE Autobackup at 08-FEB-22
100
101 released channel: D1
102
103 released channel: D2
104
105 released channel: D3
106
107 RMAN>
108 [oracle@DBsGuruN2 ~]$ cd /home/oracle/bkp/
109 [oracle@DBsGuruN2 bkp]$ ls -lrt
110 total 329004
111 -rw-r-----. 1 oracle oinstall 1245696 Feb 8 17:54 labdb03_010lbc69_1_
112 -rw-r-----. 1 oracle oinstall 111738880 Feb 8 17:54 labdb03_030lbc6a_1_
113 -rw-r-----. 1 oracle oinstall 213123072 Feb 8 17:54 labdb03_020lbc6a_1_
114 -rw-r-----. 1 oracle oinstall 7168 Feb 8 17:54 labdb03_040lbc7e_1_
115 -rw-r-----. 1 oracle oinstall 10665984 Feb 8 17:54 labdb03ctl_050lbc7f
116 -rw-r-----. 1 oracle oinstall 114688 Feb 8 17:54 labdb03sf_060lbc7h_

23 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

117 [oracle@DBsGuruN2 bkp]$

1.16: Create guaranteed restore point: You can also create a guaranteed restore point, for this
feature your DB should be in archive log mode along with flashback ON with ample free space in
FRA and this is a completely optional step depending on your requirements & criticality.

1 SQL> create restore point PRE_UPGRADE_LABDB03 guarantee flashback


2
3 Restore point created.
4
5 SQL> COL NAME FOR A25
6 SQL> COL GUARANTEE_FLASHBACK_DATABASE FOR A31
7 SQL> select NAME,GUARANTEE_FLASHBACK_DATABASE,TIME from V$restore_point;
8
9 NAME GUARANTEE_FLASHBACK_DATABASE TIME
10 ------------------------- ------------------------------- ---------------
11 PRE_UPGRADE_LABDB03 YES 08-FEB-22 06.37
12 [oracle@DBsGuruN2 ~]$ cd /home/oracle/FRA/LABDB03/flashback
13 [oracle@DBsGuruN2 flashback]$ ls -lrt
14 total 102416
15 -rw-r-----. 1 oracle oinstall 52436992 Feb 8 18:37 o1_mf_k04ts4sd_.flb
16 -rw-r-----. 1 oracle oinstall 52436992 Feb 8 18:38 o1_mf_k04ts2gn_.flb

1.17: Change the parameter CLUSTER_DATABASE to FALSE: To change the value of


CLUSTER_DATABASE to FALSE is applicable only to the RAC database.

1 SQL> alter system set cluster_database=FALSE scope=spfile;


2
3 System altered.
4
5 SQL> show parameter cluster_database
6
7 NAME TYPE VALUE
8 ------------------------------------ ----------- -------------------------
9 cluster_database boolean FALSE

1.18: Others:
1.19.1: Disable cronjobs/scheduler jobs/Triggers if any.
1.19.2: Blackout database in OEM. Click here to get steps for Target Blackouts in OEM 13c.
1.19.3: Stop all dependent applications.

1.19: Stop the database: Shutdown the database.

24 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> shutdown immediate


2 Database closed.
3 Database dismounted.
4 ORACLE instance shut down.

For RAC:

1 [oracle@DBsGuruN2 ~]$ srvctl stop database -db <DB NAME>

1.20: Copy SPFILE & PASSWORD FILE: Copy SPFILE & PASSWORD FILE from 12c to 19c ORACLE
HOME.

1 [oracle@DBsGuruN2 dbs]$ cd $ORACLE_HOME/dbs


2 [oracle@DBsGuruN2 dbs]$ cp orapwlabdb03 spfilelabdb03.ora /u01/app/oracle/
3 [oracle@DBsGuruN2 dbs]$ ls -lrt /u01/app/oracle/product/1930/db_1/dbs/*lab
4 -rw-r-----. 1 oracle oinstall 3584 Feb 9 19:07 /u01/app/oracle/product/19
5 -rw-r-----. 1 oracle oinstall 3584 Feb 9 19:07 /u01/app/oracle/product/19

2. Manual Upgrade using command Steps

2.1: Startup in Upgrade Mode: Start the database in upgrade mode from 19c ORACLE_HOME.

25 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 ~]$ export ORACLE_HOME=/u01/app/oracle/product/1930/db_


2 [oracle@DBsGuruN2 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
3 [oracle@DBsGuruN2 ~]$ export ORACLE_SID=labdb03
4 [oracle@DBsGuruN2 ~]$ which sqlplus
5 /u01/app/oracle/product/1930/db_1/bin/sqlplus
6 [oracle@DBsGuruN2 ~]$ sqlplus -v
7
8 SQL*Plus: Release 19.0.0.0.0 - Production
9 Version 19.3.0.0.0
10
11 [oracle@DBsGuruN2 ~]$
12
13 [oracle@DBsGuruN2 ~]$ sqlplus / as sysdba
14
15 SQL*Plus: Release 19.0.0.0.0 - Production on Wed Feb 9 19:22:43 2022
16 Version 19.3.0.0.0
17
18 Copyright (c) 1982, 2019, Oracle. All rights reserved.
19
20 Connected to an idle instance.
21
22 SQL> startup upgrade
23 ORACLE instance started.
24
25 Total System Global Area 1241513488 bytes
26 Fixed Size 8896016 bytes
27 Variable Size 335544320 bytes
28 Database Buffers 889192448 bytes
29 Redo Buffers 7880704 bytes
30 Database mounted.
31 Database opened.
32 SQL> SELECT NAME,OPEN_MODE,STATUS,VERSION FROM V$DATABASE, V$INSTANCE;
33
34 NAME OPEN_MODE STATUS VERSION
35 --------- -------------------- ------------ -----------------
36 LABDB03 READ WRITE OPEN MIGRATE 19.0.0.0.0

2.2: Execute dbupgrade command-line tool: To manually upgrade the 19c database, we can
execute any one of the commands dbupgrade or catctl.pl .

$ORACLE_HOME/bin/dbupgrade -n 5 -l /home/oracle/bkp/labdb03_upgrade/log

OR

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catctl.pl -n 5 -l /home/oracle


/bkp/labdb03_upgrade/log catupgrd.sql

-n Maximum number of parallel SQL processes to use when upgrading the database. Multitenant
database defaults to the total number of CPUs on your system. Traditional database defaults to 4.

26 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

-l Directory to use for spool log files.

Here we are upgrading using dbupgrade command-line tool and it took approx 26 minutes to
complete the upgrade and executed in the background using nohup. Follow the below:

27 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 bin]$ ls dbupgrade


2 dbupgrade
3 [oracle@DBsGuruN2 bin]$ ls -lt dbupgrade
4 -rwxr-x---. 1 oracle oinstall 3136 Apr 17 2019 dbupgrade
5 [oracle@DBsGuruN2 bin]$
6 [oracle@DBsGuruN2 bin]$ nohup ./dbupgrade -l /home/oracle/bkp/labdb03_up
7 [1] 13156
8 [oracle@DBsGuruN2 bin]$ nohup: ignoring input and appending output
9
10
11 [oracle@DBsGuruN2 bin]$ tail -333f nohup.out
12
13 Argument list for [/u01/app/oracle/product/1930/db_1/rdbms/admin/catctl.
14 For Oracle internal use only A = 0
15 Run in c = 0
16 Do not run in C = 0
17 Input Directory d = 0
18 Echo OFF e = 1
19 Simulate E = 0
20 Forced cleanup F = 0
21 Log Id i = 0
22 Child Process I = 0
23 Log Dir l = /home/oracle/bkp/labdb03_upgrade/log
24 Priority List Name L = 0
25 Upgrade Mode active M = 0
26 SQL Process Count n = 0
27 SQL PDB Process Count N = 0
28 Open Mode Normal o = 0
29 Start Phase p = 0
30 End Phase P = 0
31 Reverse Order r = 0
32 AutoUpgrade Resume R = 0
33 Script s = 0
34 Serial Run S = 0
35 RO User Tablespaces T = 0
36 Display Phases y = 0
37 Debug catcon.pm z = 0
38 Debug catctl.pl Z = 0
39
40 catctl.pl VERSION: [19.0.0.0.0]
41 STATUS: [Production]
42 BUILD: [RDBMS_19.3.0.0.0DBRU_LINUX.X64_190417]
43
44
45 /u01/app/oracle/product/1930/db_1/rdbms/admin/orahome = [/u01/app/oracle
46 /u01/app/oracle/product/1930/db_1/bin/orabasehome = [/u01/app/oracle/pro
47 catctlGetOraBaseLogDir = [/u01/app/oracle/product/1930/db_1]
48
49 Analyzing file /u01/app/oracle/product/1930/db_1/rdbms/admin/catupgrd.sq
50
51 Log file directory = [/home/oracle/bkp/labdb03_upgrade/log]
52
53 catcon::set_log_file_base_path: ALL catcon-related output will be writte
54
55 catcon::set_log_file_base_path: catcon: See [/home/oracle/bkp/labdb03_up
56
57 catcon::set_log_file_base_path: catcon: See [/home/oracle/bkp/labdb03_up
58

28 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

59
60 Number of Cpus = 4
61 Database Name = labdb03
62 DataBase Version = 12.2.0.1.0
63 Parallel SQL Process Count = 4
64 Components in [labdb03]
65 Installed [APS CATALOG CATJAVA CATPROC CONTEXT DV JAVAVM OLS ORDIM O
66 Not Installed [APEX EM MGW ODM RAC WK]
67
68 ------------------------------------------------------
69 Phases [0-107] Start Time:[2022_02_09 19:35:04]
70 ------------------------------------------------------
71 *********** Executing Change Scripts ***********
72 Serial Phase #:0 [labdb03] Files:1 Time: 52s
73 *************** Catalog Core SQL ***************
74 Serial Phase #:1 [labdb03] Files:5 Time: 29s
75 Restart Phase #:2 [labdb03] Files:1 Time: 4s
76 *********** Catalog Tables and Views ***********
77 Parallel Phase #:3 [labdb03] Files:19 Time: 11s
78 Restart Phase #:4 [labdb03] Files:1 Time: 3s
79 ************* Catalog Final Scripts ************
80 Serial Phase #:5 [labdb03] Files:7 Time: 12s
81 ***************** Catproc Start ****************
82 Serial Phase #:6 [labdb03] Files:1 Time: 10s
83 ***************** Catproc Types ****************
84 Serial Phase #:7 [labdb03] Files:2 Time: 10s
85 Restart Phase #:8 [labdb03] Files:1 Time: 4s
86 **************** Catproc Tables ****************
87 Parallel Phase #:9 [labdb03] Files:67 Time: 19s
88 Restart Phase #:10 [labdb03] Files:1 Time: 4s
89 ************* Catproc Package Specs ************
90 Serial Phase #:11 [labdb03] Files:1 Time: 52s
91 Restart Phase #:12 [labdb03] Files:1 Time: 3s
92 ************** Catproc Procedures **************
93 Parallel Phase #:13 [labdb03] Files:94 Time: 10s
94 Restart Phase #:14 [labdb03] Files:1 Time: 3s
95 Parallel Phase #:15 [labdb03] Files:120 Time: 14s
96 Restart Phase #:16 [labdb03] Files:1 Time: 3s
97 Serial Phase #:17 [labdb03] Files:22 Time: 5s
98 Restart Phase #:18 [labdb03] Files:1 Time: 4s
99 ***************** Catproc Views ****************
100 Parallel Phase #:19 [labdb03] Files:32 Time: 12s
101 Restart Phase #:20 [labdb03] Files:1 Time: 4s
102 Serial Phase #:21 [labdb03] Files:3 Time: 9s
103 Restart Phase #:22 [labdb03] Files:1 Time: 4s
104 Parallel Phase #:23 [labdb03] Files:25 Time: 79s
105 Restart Phase #:24 [labdb03] Files:1 Time: 3s
106 Parallel Phase #:25 [labdb03] Files:12 Time: 48s
107 Restart Phase #:26 [labdb03] Files:1 Time: 3s
108 Serial Phase #:27 [labdb03] Files:1 Time: 0s
109 Serial Phase #:28 [labdb03] Files:3 Time: 4s
110 Serial Phase #:29 [labdb03] Files:1 Time: 0s
111 Restart Phase #:30 [labdb03] Files:1 Time: 3s
112 *************** Catproc CDB Views **************
113 Serial Phase #:31 [labdb03] Files:1 Time: 3s
114 Restart Phase #:32 [labdb03] Files:1 Time: 4s
115 Serial Phase #:34 [labdb03] Files:1 Time: 0s
116 ***************** Catproc PLBs *****************

29 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

117 Serial Phase #:35 [labdb03] Files:293 Time: 17s


118 Serial Phase #:36 [labdb03] Files:1 Time: 0s
119 Restart Phase #:37 [labdb03] Files:1 Time: 4s
120 Serial Phase #:38 [labdb03] Files:6 Time: 5s
121 Restart Phase #:39 [labdb03] Files:1 Time: 4s
122 *************** Catproc DataPump ***************
123 Serial Phase #:40 [labdb03] Files:3 Time: 34s
124 Restart Phase #:41 [labdb03] Files:1 Time: 4s
125 ****************** Catproc SQL *****************
126 Parallel Phase #:42 [labdb03] Files:13 Time: 48s
127 Restart Phase #:43 [labdb03] Files:1 Time: 3s
128 Parallel Phase #:44 [labdb03] Files:11 Time: 7s
129 Restart Phase #:45 [labdb03] Files:1 Time: 3s
130 Parallel Phase #:46 [labdb03] Files:3 Time: 3s
131 Restart Phase #:47 [labdb03] Files:1 Time: 3s
132 ************* Final Catproc scripts ************
133 Serial Phase #:48 [labdb03] Files:1 Time: 7s
134 Restart Phase #:49 [labdb03] Files:1 Time: 4s
135 ************** Final RDBMS scripts *************
136 Serial Phase #:50 [labdb03] Files:1 Time: 3s
137 ************ Upgrade Component Start ***********
138 Serial Phase #:51 [labdb03] Files:1 Time: 3s
139 Restart Phase #:52 [labdb03] Files:1 Time: 4s
140 ********** Upgrading Java and non-Java *********
141 Serial Phase #:53 [labdb03] Files:2 Time: 226s
142 ***************** Upgrading XDB ****************
143 Restart Phase #:54 [labdb03] Files:1 Time: 3s
144 Serial Phase #:56 [labdb03] Files:3 Time: 10s
145 Serial Phase #:57 [labdb03] Files:3 Time: 7s
146 Parallel Phase #:58 [labdb03] Files:10 Time: 5s
147 Parallel Phase #:59 [labdb03] Files:25 Time: 7s
148 Serial Phase #:60 [labdb03] Files:4 Time: 8s
149 Serial Phase #:61 [labdb03] Files:1 Time: 0s
150 Serial Phase #:62 [labdb03] Files:32 Time: 6s
151 Serial Phase #:63 [labdb03] Files:1 Time: 0s
152 Parallel Phase #:64 [labdb03] Files:6 Time: 9s
153 Serial Phase #:65 [labdb03] Files:2 Time: 16s
154 Serial Phase #:66 [labdb03] Files:3 Time: 20s
155 **************** Upgrading ORDIM ***************
156 Restart Phase #:67 [labdb03] Files:1 Time: 3s
157 Serial Phase #:69 [labdb03] Files:1 Time: 4s
158 Parallel Phase #:70 [labdb03] Files:2 Time: 24s
159 Restart Phase #:71 [labdb03] Files:1 Time: 4s
160 Parallel Phase #:72 [labdb03] Files:2 Time: 5s
161 Serial Phase #:73 [labdb03] Files:2 Time: 4s
162 ***************** Upgrading SDO ****************
163 Restart Phase #:74 [labdb03] Files:1 Time: 3s
164 Serial Phase #:76 [labdb03] Files:1 Time: 31s
165 Serial Phase #:77 [labdb03] Files:2 Time: 5s
166 Restart Phase #:78 [labdb03] Files:1 Time: 4s
167 Serial Phase #:79 [labdb03] Files:1 Time: 32s
168 Restart Phase #:80 [labdb03] Files:1 Time: 4s
169 Parallel Phase #:81 [labdb03] Files:3 Time: 50s
170 Restart Phase #:82 [labdb03] Files:1 Time: 4s
171 Serial Phase #:83 [labdb03] Files:1 Time: 7s
172 Restart Phase #:84 [labdb03] Files:1 Time: 4s
173 Serial Phase #:85 [labdb03] Files:1 Time: 10s
174 Restart Phase #:86 [labdb03] Files:1 Time: 3s

30 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

175 Parallel Phase #:87 [labdb03] Files:4 Time: 51s


176 Restart Phase #:88 [labdb03] Files:1 Time: 4s
177 Serial Phase #:89 [labdb03] Files:1 Time: 4s
178 Restart Phase #:90 [labdb03] Files:1 Time: 4s
179 Serial Phase #:91 [labdb03] Files:2 Time: 8s
180 Restart Phase #:92 [labdb03] Files:1 Time: 4s
181 Serial Phase #:93 [labdb03] Files:1 Time: 2s
182 Restart Phase #:94 [labdb03] Files:1 Time: 4s
183 ******* Upgrading ODM, WK, EXF, RUL, XOQ *******
184 Serial Phase #:95 [labdb03] Files:1 Time: 12s
185 Restart Phase #:96 [labdb03] Files:1 Time: 4s
186 *********** Final Component scripts ***********
187 Serial Phase #:97 [labdb03] Files:1 Time: 3s
188 ************* Final Upgrade scripts ************
189 Serial Phase #:98 [labdb03] Files:1 Time: 198s
190 ******************* Migration ******************
191 Serial Phase #:99 [labdb03] Files:1 Time: 2s
192 *** End PDB Application Upgrade Pre-Shutdown ***
193 Serial Phase #:100 [labdb03] Files:1 Time: 3s
194 Serial Phase #:101 [labdb03] Files:1 Time: 0s
195 Serial Phase #:102 [labdb03] Files:1 Time: 58s
196 ***************** Post Upgrade *****************
197 Serial Phase #:103 [labdb03] Files:1 Time: 32s
198 **************** Summary report ****************
199 Serial Phase #:104 [labdb03] Files:1 Time: 3s
200 *** End PDB Application Upgrade Post-Shutdown **
201 Serial Phase #:105 [labdb03] Files:1 Time: 2s
202 Serial Phase #:106 [labdb03] Files:1 Time: 0s
203 Serial Phase #:107 [labdb03] Files:1 Time: 30s
204
205 ------------------------------------------------------
206 Phases [0-107] End Time:[2022_02_09 20:00:34]
207 ------------------------------------------------------
208
209 Grand Total Time: 1531s
210
211 LOG FILES: (/home/oracle/bkp/labdb03_upgrade/log/catupgrd*.log)
212
213 Upgrade Summary Report Located in:
214 /home/oracle/bkp/labdb03_upgrade/log/upg_summary.log
215
216 Grand Total Upgrade Time: [0d:0h:25m:31s]

3. Post upgrade Steps

3.1: Review Upgrade Logs: Go to upgrade log location and review log files.

31 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 ~]$ cd /home/oracle/bkp/labdb03_upgrade/log


2 [oracle@DBsGuruN2 log]$ ls -lrt
3 total 71344
4 -rw-------. 1 oracle oinstall 464 Feb 9 19:34 catupgrd_catcon_13161
5 -rw-r--r--. 1 oracle oinstall 0 Feb 9 19:55 catupgrd_datapatch_up
6 -rw-r--r--. 1 oracle oinstall 1307 Feb 9 19:58 catupgrd_datapatch_up
7 -rw-------. 1 oracle oinstall 7802138 Feb 9 20:00 catupgrd1.log
8 -rw-------. 1 oracle oinstall 5728207 Feb 9 20:00 catupgrd2.log
9 -rw-------. 1 oracle oinstall 8599735 Feb 9 20:00 catupgrd3.log
10 -rw-r--r--. 1 oracle oinstall 37956 Feb 9 20:00 catupgrd_stderr.log
11 -rw-r--r--. 1 oracle oinstall 1732 Feb 9 20:00 upg_summary.log
12 -rw-------. 1 oracle oinstall 50854214 Feb 9 20:00 catupgrd0.log
13 [oracle@DBsGuruN2 log]$ cat upg_summary.log
14
15 Oracle Database Release 19 Post-Upgrade Status Tool 02-09-2022 20:00:0
16 Database Name: LABDB03
17
18 Component Current Full Elapsed
19 Name Status Version HH:MM:SS
20
21 Oracle Server UPGRADED 19.3.0.0.0 00:09:30
22 JServer JAVA Virtual Machine UPGRADED 19.3.0.0.0 00:01:27
23 Oracle XDK UPGRADED 19.3.0.0.0 00:00:31
24 Oracle Database Java Packages UPGRADED 19.3.0.0.0 00:00:07
25 OLAP Analytic Workspace UPGRADED 19.3.0.0.0 00:00:13
26 Oracle Label Security UPGRADED 19.3.0.0.0 00:00:07
27 Oracle Database Vault UPGRADED 19.3.0.0.0 00:00:16
28 Oracle Text UPGRADED 19.3.0.0.0 00:00:30
29 Oracle Workspace Manager UPGRADED 19.3.0.0.0 00:00:28
30 Oracle Real Application Clusters UPGRADED 19.3.0.0.0 00:00:00
31 Oracle XML Database UPGRADED 19.3.0.0.0 00:01:23
32 Oracle Multimedia UPGRADED 19.3.0.0.0 00:00:36
33 Spatial UPGRADED 19.3.0.0.0 00:03:40
34 Oracle OLAP API UPGRADED 19.3.0.0.0 00:00:09
35 Datapatch 00:03:08
36 Final Actions 00:03:20
37 Post Upgrade 00:00:27
38
39 Total Upgrade Time: 00:23:41
40
41 Database time zone version is 26. It is older than current release
42 zone version 32. Time zone upgrade is needed using the DBMS_DST package.
43
44 Grand Total Upgrade Time: [0d:0h:25m:31s]
45 [oracle@DBsGuruN2 log]$

NOTE: If don’t pass the parameter for log location in dbupgrade command then below is the
default location for the upgrade log.

$ORACLE_HOME/cfgtoollogs/<DB NAME>/upgrade/

3.2: Update Oratab: Update new ORACLE_HOME for 19c in the file /etc/oratab.

32 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 ~]$ vi /etc/oratab


2 labdb03:/u01/app/oracle/product/1930/db_1:N
3 :wq
4 [oracle@DBsGuruN2 ~]$ cat /etc/oratab | grep -i labdb03
5 labdb03:/u01/app/oracle/product/1930/db_1:N

3.3: Start the Database: Set the environment and start the database.

1 [oracle@DBsGuruN2 ~]$ . oraenv


2 ORACLE_SID = [labdb01] ? labdb03
3 The Oracle base remains unchanged with value /u01/app/oracle
4 [oracle@DBsGuruN2 ~]$ sqlplus / as sysdba
5
6 SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 10 19:29:57 2022
7 Version 19.3.0.0.0
8
9 Copyright (c) 1982, 2019, Oracle. All rights reserved.
10
11 Connected to an idle instance.
12
13 SQL> startup
14 ORACLE instance started.
15
16 Total System Global Area 1241513488 bytes
17 Fixed Size 8896016 bytes
18 Variable Size 520093696 bytes
19 Database Buffers 704643072 bytes
20 Redo Buffers 7880704 bytes
21 Database mounted.
22 Database opened.
23 SQL> SELECT NAME,OPEN_MODE,STATUS,VERSION FROM V$DATABASE, V$INSTANCE;
24
25 NAME OPEN_MODE STATUS VERSION
26 --------- -------------------- ------------ -----------------
27 LABDB03 READ WRITE OPEN 19.0.0.0.0

3.4: Execute utlrp.sql and validate Objects Status: Execute utlrp.sql and validate invalid objects
in the database, should not be any invalid objects after the upgrade. After completion of the
script must review logs and validate the object’s status in DB.

33 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 ~]$ . oraenv


2 ORACLE_SID = [labdb01] ? labdb03
3 The Oracle base remains unchanged with value /u01/app/oracle
4 [oracle@DBsGuruN2 ~]$ cd $ORACLE_HOME/rdbms/admin/
5 [oracle@DBsGuruN2 admin]$ $ORACLE_HOME/perl/bin/perl catcon.pl -n 1 -e -b
6 catcon::set_log_file_base_path: ALL catcon-related output will be written
7
8 catcon::set_log_file_base_path: catcon: See [/u01/app/oracle/product/1930
9
10 catcon::set_log_file_base_path: catcon: See [/u01/app/oracle/product/1930
11
12 catcon.pl: completed successfully
13
14 [oracle@DBsGuruN2 admin]$ ls -lrt /u01/app/oracle/product/1930/db_1/rdbms
15 -rw-------. 1 oracle oinstall 10268 Feb 10 19:39 /u01/app/oracle/product/
16 [oracle@DBsGuruN2 admin]$ cat /u01/app/oracle/product/1930/db_1/rdbms/ad
17
18 SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 10 19:39:34 2022
19 Version 19.3.0.0.0
20
21 Copyright (c) 1982, 2019, Oracle. All rights reserved.
22
23 SQL> Connected.
24 SQL> 2
25 Session altered.
26
27 SQL> 2
28 Session altered.
29
30 SQL>
31 ALTER SYSTEM KILL SESSION '394,48893' force timeout 0 -- process 5379
32 /
33 ------------Output Trimmed------------
34 SQL> Rem ================================================================
35 SQL> Rem END utlrp.sql
36 SQL> Rem ================================================================
37 SQL>
38 END_RUNNING
39 -------------------------------------------------------------------------
40 ==== @./utlrp.sql Container:labdb03 Id:0 22-02-10 07:41:52 Proc:0 ====
41
42 SQL>
43 END_RUNNING
44 -------------------------------------------------------------------------
45 ==== @./utlrp.sql Container:labdb03 Id:0 22-02-10 07:41:52 Proc:0 ====
46
47 SQL> SQL>
48 SQL> ========== PROCESS ENDED ==========
49 SQL> ========== Process Terminated by catcon ==========
50 SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.
51 Version 19.3.0.0.0
52 [oracle@DBsGuruN2 admin]$
53
54 SQL> select owner, count(*) from dba_objects where status <> 'VALID'
55
56 no rows selected

34 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

3.5: Execute postupgrade_fixups.sql: Execute postupgrade_fixups.sql which was generated in


step 1.1.

35 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 admin]$ $ORACLE_HOME/perl/bin/perl -I$ORACLE_HOME/perl


2 catcon::set_log_file_base_path: ALL catcon-related output will be writte
3
4 catcon::set_log_file_base_path: catcon: See [/home/oracle/bkp/labdb03_up
5
6 catcon::set_log_file_base_path: catcon: See [/home/oracle/bkp/labdb03_up
7
8 catcon.pl: completed successfully
9
10 [oracle@DBsGuruN2 admin]$
11 [oracle@DBsGuruN2 admin]$ ls -lrt /home/oracle/bkp/labdb03_upgrade/labdb
12 -rw-------. 1 oracle oinstall 1340 Feb 10 19:53 /home/oracle/bkp/labdb03
13 [oracle@DBsGuruN2 admin]$ cat /home/oracle/bkp/labdb03_upgrade/labdb04_p
14
15 SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 10 19:53:43 2022
16 Version 19.3.0.0.0
17
18 Copyright (c) 1982, 2019, Oracle. All rights reserved.
19
20 SQL> Connected.
21 SQL> 2
22 Session altered.
23
24 SQL> 2
25 Session altered.
26
27 SQL>
28 ALTER SYSTEM KILL SESSION '394,49534' force timeout 0 -- process 6420
29 /
30
31 SQL> SQL>
32 SQL> 2
33 Session altered.
34
35 SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQ
36 CATCONSECTION
37 --------------------------
38 ==== CATCON EXEC ROOT ====
39
40 SQL>
41 BEGIN_RUNNING
42 ------------------------------------------------------------------------
43 ==== @/home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql Container:
44 Id:0 22-02-10 07:53:43 Proc:0 ====
45
46
47 SQL>
48 BEGIN_RUNNING
49 ------------------------------------------------------------------------
50 ==== @/home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql Container:
51 Id:0 22-02-10 07:53:43 Proc:0 ====
52
53
54 SQL> 2
55 Session altered.
56
57 SQL> 2
58 Session altered.

36 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

59
60 SQL>
61 Session altered.
62
63
64 PL/SQL procedure successfully completed.
65
66
67 PL/SQL procedure successfully completed.
68
69
70 PL/SQL procedure successfully completed.
71
72
73 Package created.
74
75 No errors.
76
77 Package body created.
78
79
80 PL/SQL procedure successfully completed.
81
82 No errors.
83
84
85
86
87
88 Package created.
89
90 No errors.
91
92 Package body created.
93
94 No errors.
95 Executing Oracle POST-Upgrade Fixup Script
96
97 Auto-Generated by: Oracle Preupgrade Script
98 Version: 19.0.0.0.0 Build: 1
99 Generated on: 2022-02-08 18:02:01
100
101 For Source Database: LABDB03
102 Source Database Version: 12.2.0.1.0
103 For Upgrade to Version: 19.0.0.0.0
104
105 Preup Preupgrade
106 Action Issue Is
107 Number Preupgrade Check Name Remedied Further DBA Action
108 ------ ------------------------ ---------- --------------------------
109 5. old_time_zones_exist NO Manual fixup recommended.
110 6. dir_symlinks YES None.
111 7. post_dictionary YES None.
112 8. post_fixed_objects NO Informational only.
113 Further action is optional
114
115 The fixup scripts have been run and resolved what they can. However,
116 there are still issues originally identified by the preupgrade that

37 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

117 have not been remedied and are still present in the database.
118 Depending on the severity of the specific issue, and the nature of
119 the issue itself, that could mean that your database upgrade is not
120 fully complete. To resolve the outstanding issues, start by reviewing
121 the postupgrade_fixups.sql and searching it for the name of
122 the failed CHECK NAME or Preupgrade Action Number listed above.
123 There you will find the original corresponding diagnostic message
124 from the preupgrade which explains in more detail what still needs
125 to be done.
126
127 PL/SQL procedure successfully completed.
128
129
130 Session altered.
131
132 SQL>
133 END_RUNNING
134 ------------------------------------------------------------------------
135 ==== @/home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql Container:
136
137 SQL>
138 END_RUNNING
139 ------------------------------------------------------------------------
140 ==== @/home/oracle/bkp/labdb03_upgrade/postupgrade_fixups.sql Container:
141
142 SQL> SQL>
143 SQL> ========== PROCESS ENDED ==========
144 SQL> ========== Process Terminated by catcon ==========
145 SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19
146 Version 19.3.0.0.0

3.6: Post upgrade validation tool: Execute utlusts.sql to validate upgrade status and review the
log file.

38 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> @$ORACLE_HOME/rdbms/admin/utlusts.sql
2 Enter value for 1:
3
4 Oracle Database Release 19 Post-Upgrade Status Tool 02-10-2022 19:59:1
5 Database Name: LABDB03
6
7 Component Current Full Elapsed
8 Name Status Version HH:MM:SS
9
10 Oracle Server VALID 19.3.0.0.0 00:09:30
11 JServer JAVA Virtual Machine VALID 19.3.0.0.0 00:01:27
12 Oracle XDK VALID 19.3.0.0.0 00:00:31
13 Oracle Database Java Packages VALID 19.3.0.0.0 00:00:07
14 OLAP Analytic Workspace VALID 19.3.0.0.0 00:00:13
15 Oracle Label Security VALID 19.3.0.0.0 00:00:07
16 Oracle Database Vault VALID 19.3.0.0.0 00:00:16
17 Oracle Text VALID 19.3.0.0.0 00:00:30
18 Oracle Workspace Manager VALID 19.3.0.0.0 00:00:28
19 Oracle Real Application Clusters OPTION OFF 19.3.0.0.0 00:00:00
20 Oracle XML Database VALID 19.3.0.0.0 00:01:23
21 Oracle Multimedia VALID 19.3.0.0.0 00:00:36
22 Spatial VALID 19.3.0.0.0 00:03:40
23 Oracle OLAP API VALID 19.3.0.0.0 00:00:09
24 Datapatch 00:03:08
25 Final Actions 00:03:20
26 Post Upgrade 00:00:27
27 Post Compile 00:02:09
28
29 Total Upgrade Time: 00:25:50
30
31 Database time zone version is 26. It is older than current release
32 zone version 32. Time zone upgrade is needed using the DBMS_DST package.

3.7: Upgrade Timezone: Require to upgrade DB timezone file version to 32. Prior to the upgrade,
it was 26, refer to the post-upgrade tool log.

Execute utltz_upg_check.sql to validate the current RDBMS DST version and the newest RDBMS
DST version.

39 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> @$ORACLE_HOME/rdbms/admin/utltz_upg_check.sql
2 INFO: Starting with RDBMS DST update preparation.
3 INFO: NO actual RDBMS DST update will be done by this script.
4 INFO: If an ERROR occurs the script will EXIT sqlplus.
5 INFO: Doing checks for known issues ...
6 INFO: Database version is 19.0.0.0 .
7 INFO: Database RDBMS DST version is DSTv26 .
8 INFO: No known issues detected.
9 INFO: Now detecting new RDBMS DST version.
10 A prepare window has been successfully started.
11 INFO: Newest RDBMS DST version detected is DSTv32 .
12 INFO: Next step is checking all TSTZ data.
13 INFO: It might take a while before any further output is seen ...
14 A prepare window has been successfully ended.
15 INFO: A newer RDBMS DST version than the one currently used is found.
16 INFO: Note that NO DST update was yet done.
17 INFO: Now run utltz_upg_apply.sql to do the actual RDBMS DST update
18 INFO: Note that the utltz_upg_apply.sql script will
19 INFO: restart the database 2 times WITHOUT any confirmation or prompt.
20
21 Session altered.

Execute utltz_upg_apply.sql to upgrade DST version to 32.

40 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> @$ORACLE_HOME/rdbms/admin/utltz_upg_apply.sql
2
3 Session altered.
4
5 INFO: If an ERROR occurs, the script will EXIT SQL*Plus.
6 INFO: The database RDBMS DST version will be updated to DSTv32 .
7 WARNING: This script will restart the database 2 times
8 WARNING: WITHOUT asking ANY confirmation.
9 WARNING: Hit control-c NOW if this is not intended.
10 INFO: Restarting the database in UPGRADE mode to start the DST upgrade.
11 Database closed.
12 Database dismounted.
13 ORACLE instance shut down.
14 ORACLE instance started.
15
16 Total System Global Area 1241513488 bytes
17 Fixed Size 8896016 bytes
18 Variable Size 687865856 bytes
19 Database Buffers 536870912 bytes
20 Redo Buffers 7880704 bytes
21 Database mounted.
22 Database opened.
23 INFO: Starting the RDBMS DST upgrade.
24 INFO: Upgrading all SYS owned TSTZ data.
25 INFO: It might take time before any further output is seen ...
26 An upgrade window has been successfully started.
27 INFO: Restarting the database in NORMAL mode to upgrade non-SYS TSTZ data
28 Database closed.
29 Database dismounted.
30 ORACLE instance shut down.
31 ORACLE instance started.
32
33 Total System Global Area 1241513488 bytes
34 Fixed Size 8896016 bytes
35 Variable Size 687865856 bytes
36 Database Buffers 536870912 bytes
37 Redo Buffers 7880704 bytes
38 Database mounted.
39 Database opened.
40 INFO: Upgrading all non-SYS TSTZ data.
41 INFO: It might take time before any further output is seen ...
42 INFO: Do NOT start any application yet that uses TSTZ data!
43 INFO: Next is a list of all upgraded tables:
44 Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_L"
45 Number of failures: 0
46 Table list: "GSMADMIN_INTERNAL"."AQ$_CHANGE_LOG_QUEUE_TABLE_S"
47 Number of failures: 0
48
SearchTable list: "MDSYS"."SDO_DIAG_MESSAGES_TABLE"
49 Number of failures: 0
50 Table list: "DVSYS"."AUDIT_TRAIL$"
51 Number of failures: 0
Search
52 Table list: "DVSYS"."SIMULATION_LOG$"
53 Number of failures: 0
54 INFO: Total failures during update of TSTZ data: 0 .
55 Hits
An upgrade by Community
window has been successfully ended.
56 INFO: Your new Server RDBMS DST version is DSTv32 .
57 INFO: The RDBMS DST update is successfully finished.
Total
58 Website
INFO: Visits: 1208446
Make sure to exit this SQL*Plus session.

41 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

59 INFO: Do not use it for timezone related selects.


60
61 Session altered.
62
63 SQL> FEEDBACK
64
65 SQL> COL PROPERTY_NAME FOR A25
66 SQL> COL PROPERTY_VALUE
LOGIN FOR A21
67 SQL> Select version from v$timezone_file;
68
69 VERSION REGISTRATION
70 ----------
71 32
72
73 1 rowSubscribe
selected. Our Newsletter

Optionally execute again post-upgrade status tool.


Email
1 SQL> @$ORACLE_HOME/rdbms/admin/utlusts.sql
2 Enter value for 1:
3
4 OracleSubscribe
Database Release 19 Post-Upgrade Status Tool 02-10-2022 20:09:2
5 Database Name: LABDB03
6
7 Component Current Full Elapsed
8 Name Status Version HH:MM:SS
9
10 Oracle Server VALID 19.3.0.0.0 00:09:30
11 JServer JAVA Virtual
Achievements Machine VALID 19.3.0.0.0 00:01:27
12 Oracle XDK VALID 19.3.0.0.0 00:00:31
13 Oracle Database Java Packages VALID 19.3.0.0.0 00:00:07
14 OLAP Analytic Workspace VALID 19.3.0.0.0 00:00:13
15 Oracle Label Security VALID 19.3.0.0.0 00:00:07
16 Oracle Database Vault VALID 19.3.0.0.0 00:00:16
17 Oracle Text VALID 19.3.0.0.0 00:00:30
18 Oracle Workspace Manager VALID 19.3.0.0.0 00:00:28
19 Oracle Real Application Clusters OPTION OFF 19.3.0.0.0 00:00:00
20 Oracle XML Database VALID 19.3.0.0.0 00:01:23
21 Oracle Multimedia VALID 19.3.0.0.0 00:00:36
22 Spatial VALID 19.3.0.0.0 00:03:40
23 Oracle OLAP API VALID 19.3.0.0.0 00:00:09
24 Datapatch 00:03:08
25 Final Actions 00:03:20
26 Post Upgrade 00:00:27
27 Post Compile 00:02:09
28
29 Total Upgrade Time: 00:25:50
30
31Rank#Database
Our 8 in Category time zone08th
Oracle Dated version
Apr 2022 &is 32.
Rank# It meets current release needs.
24 in
Category Database Dated 10th Mar 2022.

3.8: Set the parameter Compatible: Change the COMPATIBLE parameter value to 19.0.0 to
Recent
enable to use of all features Posts version. This step is a very crucial step in terms of
of the upgraded

42 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

How to Enable
downgrading thePasswordLess SSH
database to the login in
previous Linuxor restoring guaranteed restore point. Make
version
Oracle
sure Critical
before Database
the set PatchofID
a new value for Octoberparameter
COMPATIBLE 2022 along
no with
major impact to DB in terms of
enabled Download
performance, Linktest application for few days with an existing value of this parameter
if possible
Solution for ORA-00600: Internal Error Code, Arguments:
especially for the lower environment (DEV/TEST/UAT) upgrades so you have enough confidence to
[4193] [2206] in Oracle
change it when you perform PROD databases upgrade.
Oracle Database Appliance Odacli & Odaadmcli Command
reference
1 SQL> show parameter COMPATIBLE parameter;
Solution
2 for Oracle Appliance Manager Console Access Issue in
ODA3 NAME TYPE VALUE
4 ------------------------------------ ----------- ------------------------
5 compatible string 12.2.0
6
7 SQL> alter Recent
systemComments
set compatible='19.0.0' scope=spfile;
8
DB9AdminSystem altered.
on Steps to create a Database Link from Oracle to
10
MySQL
11 SQL> shutdown immediate
DBsGuru
12 on Traditional
Database Barman Setup With WAL archiving via
closed.
13 Database in
archive_command dismounted.
PostgreSQL
14 ORACLE instance shut down.
DBsGuru
15 on Point
SQL> in Time Recovery (PITR) using pgBackRest in
startup
PostgreSQL
16 ORACLE instance started.
17
DBsGuru on Solution for [INS-08101] Unexpected error
18 Total System Global Area 1241513488 bytes
‘supportedOSCheck’
19 Fixed Size while Oracle 19C Installation
8896016 bytes
20 on
loretta Variable Size
Traditional Barman Setup With687865856 bytes
WAL archiving via
21 Database Buffers 536870912 bytes
archive_command in PostgreSQL
22 Redo Buffers 7880704 bytes
23 Database mounted.
24 Database opened.
25 SQL> show Latest Ratings
parameter on Post parameter;
COMPATIBLE
26
27 NAME 5 (2) TYPE VALUE
28 ------------------------------------ ----------- ------------------------
Oracle Critical Database Patch ID for October 2022 along with
29 compatible string 19.0.0
enabled Download Link

5 (3)
3.9: Drop Guaranteed Restore Point: Drop restore point only after successful validation along
How To Recover Table from Drop/Truncate/Delete done on Primary
with green signal by dependent applications/checkout.
using Flashback on a Standby

5 (1)
Solution for Error ORA-29289 Directory Access Denied in Oracle

5 (3)
Step by step silent installation of Oracle 19c on Linux 7

5 (3)
How to Find Sessions in RAC Oracle All in One

43 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 SQL> COL NAME Archives


FOR A25
2 SQL> COL GUARANTEE_FLASHBACK_DATABASE FOR A31
3 SQL> select NAME,GUARANTEE_FLASHBACK_DATABASE,TIME from V$restore_point;
4
Select
5 Month
NAME GUARANTEE_FLASHBACK_DATABASE TIME
6 ------------------------- ------------------------------- ---------------
7 PRE_UPGRADE_LABDB03 YES 08-FEB-22 06.37
8
9 Categories
SQL> drop restore point PRE_UPGRADE_LABDB03;
10
11 Restore point dropped.
ADMINISTRATION
12
APPSDBA
13 SQL> select NAME,GUARANTEE_FLASHBACK_DATABASE,TIME from V$restore_point;
ASM
14
15
BACKUP no rows selected
& RECOVERY
DATABASE
DATAGUARD
3.10: RAC DB Action: Follow the below steps for the RAC database only.
DATAPUMP
EXADATA
3.10.1: Set cluster_database to TRUE.
GOLDENGATE
HIGH AVAILBILITY
1
ODA SQL> alter system set cluster_database=TRUE scope=spfile;
2
OEM
3 System altered.
4 SQL> shutdown immediate
OTHERS
5 Database closed.
PATCHING
6 Database dismounted.
PG_ADMIN
7 ORACLE instance shut down.
8 [oracle@DBsGuruN2 admin]$ srvctl start database -db <DB NAME>
PG_BACKUP
PG_PERFORMANCE
PG_REPLICATION
3.10.2: Upgrade the Oracle Clusterware keys for the database.
POSTGRESQL
RAC
1 [oracle@DBsGuruN2 admin]$ srvctl upgrade database -db <DB NAME> -o <ORACLE
RMAN
SCRIPTS
SECURITY
3.11: Listener Status: Validate the services for the database.
TUNING
UNIX
UPGRADE
WEBLOGIC
WINDOWS

Tags

21C ARCHITECTURE ASM BACKUP

BACKUP AND RECOVERY BARMAN CDB CLONE

44 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

1 [oracle@DBsGuruN2 admin]$ lsnrctl status LISTENER_19C


DATABASE DATAGUARD DATAPUMP DBLINK
2
3 LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 10-FEB-2022 20:37:3
GOLDENGATE IMPORT INNODB CLUSTER INSTALL
4
5 Copyright (c) 1991, 2019, Oracle. All rights reserved.
LINUX MIGRATION MULTITENANT MYSQL ODA
6
7 Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DBsGuruN2.labdoma
ORA-ERRORS
8 STATUS ORACLE ORACLE 19C
of the LISTENER PATCHING PDB
9 ------------------------
PGADMIN
10 AliasPGBACKREST POSTGRESQL RAC RECOVERY
LISTENER_19C
11 Version TNSLSNR for Linux: Version 19.0.0.0.0 - Product
REPLICATION
12 REPMGR
Start Date RESTORE RMAN SCRIPTS 20:35:26
10-FEB-2022
13 Uptime 0 days 0 hr. 2 min. 7 sec
SECURITY
14 TraceSYSTEMCTL
Level TABLESPACE TUNING
off UNIX
15 Security ON: Local OS Authentication
UNIX:LINUX
16 SNMP UPGRADE WEBLOGIC WINDOWS
OFF
17 Listener Parameter File /u01/app/oracle/product/1930/db_1/network/admin
18 Listener Log File /u01/app/oracle/diag/tnslsnr/DBsGuruN2/listener
19 Listening Endpoints LIVE Summary...
20 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DBsGuruN2.labdomain)(PORT=152
21 Services Summary...
Website
22 Tracking "labdb03" has 1 instance(s).
Service
23 Instance "labdb03", status READY, has 1 handler(s) for this service...
24 Service "labdb03XDB" has 1 instance(s).
25 Instance "labdb03", status READY, has 1 handler(s) for this service...
26 The command completed successfully

ABOUT US
3.12: Others:
DISCLAIMER
3.12.1: Enable cronjobs/scheduler jobs/Triggers if any.
PRIVACY
3.12.2: Delete blackout database in OEM. Click here to get steps for Target Blackouts in OEM 13c.
TERMS of USE
3.12.3: Start all dependent applications.

This document is only for learning purpose and always validate in the LAB environment first before
applying in the LIVE environment.

Share Your Feedback


Hope so you like this article!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to
click on the bell icon to get the most recent update. Click here to understand more about our
pursuit.

Related Articles
Step by Step Manual Steps to Upgrade Grid Infra – Steps to Apply Database and
Follow Us (CDB-
Upgrade Container Standalone (GI) and Oracle Grid Infrastructure RU Patch
PDB) Database from 12c to Database from 12.2 to 19.14 Before Grid Infrastructure
19c in Multitenant Configuration (before
Architecture root.sh or rootupgrade.sh

45 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

execution)

Step by Step Upgrade Oracle Step by Step Manual


Database from 12c to 19c Upgrade Oracle Database
Contact
using DBUA Us from 12c to 19c

Phone
DATABASE, ORACLE, ORACLE 19C, UPGRADE
+91-93101-67776

Email
[email protected]

2,027 Total Views, 5 Views Today

Copyright © 2020-2022 DBsGuru. All rights reserved.


How useful was this post?
Click on a star to rate it!

No votes so far! Be the first to rate this post.

DBsGuru
Hello and welcome to DBsGuru,

DBsGuru is a group of experienced DBA professionals and serves databases and their
related community by providing technical blogs, projects, training.
Technical blogs are the source of vast information not about databases but its related
product like middleware, PL/SQL, replication methodology, and so on.

Thanks for the visits!

Share Learn Grow!

dbsguru.com/

Comments
Leave a Reply
Your email address will not be published. Required fields are marked *

46 of 47 11/25/22, 17:24
Step by Step Manual Upgrade Oracle Database from 12c to 19... https://webcache.googleusercontent.com/search?q=cache:A...

Comment *

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Please enter an answer in digits:

3 × four =

Post Comment

Previous

Next

47 of 47 11/25/22, 17:24

You might also like