Step by Step Manual Upgrade Oracle Database From 12c To 19c - DBsGuru
Step by Step Manual Upgrade Oracle Database From 12c To 19c - DBsGuru
+91-93101-67776
SCRIPTS
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.
18.1 19c
12.2.0.2 19c
12.1.0.2 19c
11.2.04 19c
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...
19c Certificate.
/u01/app/oracle/product /u01/app/oracle/product
Oracle Home
/12201/db_1 /1930/db_1
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...
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).
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...
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...
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.5: Active Backup Validation: Validate database for active-backup or if any datafiles are in
recovery mode.
1.6: Default Tablespace for SYS & SYSTEM: Validate users SYS and SYSTEM have assigned default
tablespace SYSTEM.
1.7: Pending 2phase pending transactions: Validate any Pending 2phase Transactions active.
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.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.
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.11: Validate value of parameter sec_case_sensitive_logon: If the value is FALSE then change
to TRUE.
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...
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...
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...
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...
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...
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...
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.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.
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...
For RAC:
1.20: Copy SPFILE & PASSWORD FILE: Copy SPFILE & PASSWORD FILE from 12c to 19c ORACLE
HOME.
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...
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
-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...
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...
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...
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...
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...
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...
3.3: Start the Database: Set the environment and start the database.
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...
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...
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...
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.
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...
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...
Tags
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...
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.
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)
Phone
DATABASE, ORACLE, ORACLE 19C, UPGRADE
+91-93101-67776
Email
[email protected]
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.
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.
3 × four =
Post Comment
Previous
Next
47 of 47 11/25/22, 17:24