Manual Upgrade 12c To 19c On Linux
Manual Upgrade 12c To 19c On Linux
Environment
-----------------------------------------------------------
-----------------------------------------------------------
So I can set FRA at twice the size of database. but i set at 8gb
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
like so on.
SQL> DECLARE
v_number_of_failures NUMBER(12) := 0;
BEGIN
DBMS_MVIEW.REFRESH_ALL_MVIEWS(v_number_of_failures,'C','', TRUE,
FALSE);
END;
/
-----------------------------------------------------------
-----------------------------------------------------------
This value must be true. if the value is false then use below command
here no any user having 10g password version means no any user using
Case-Insensitive Password Version.
SQLNET.ALLOWED_LOGON_VERSION_SERVER=11
and after upgrade use the following command syntax to expire the
accounts who having 10g password verion
So When these users log in, they are prompted to reset their
passwords. The system internally generates the missing 11G and 12C
password versions for their account, in addition to the 10G password
version. The 10G password version is still present, because the
system is running in the permissive mode.
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
Manual Upgrade 12c to 19c on Linux 12
-----------------------------------------------------------
-----------------------------------------------------------
Manual Upgrade 12c to 19c on Linux 13
RMAN> run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
allocate channel ch3 type disk;
allocate channel ch4 type disk;
sql'alter system archive log current';
sql'alter system archive log current';
sql'alter system archive log current';
sql'alter system archive log current';
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck backup;
delete noprompt obsolete;
BACKUP as compressed backupset INCREMENTAL LEVEL 0 DATABASE format='/
home/oracle/bkp/coe_bkp_%U';
backup as compressed backupset current controlfile
format'/home/oracle/bkp/ctl_bkp_%U';
backup as compressed backupset archivelog all
format='/home/oracle/bkp/coe_arch_%U';
release channel ch1;
release channel ch2;
release channel ch3;
release channel ch4;
}
Manual Upgrade 12c to 19c on Linux 14
-----------------------------------------------------------
-----------------------------------------------------------
Manual Upgrade 12c to 19c on Linux 15
NOTE ==
Read the preupgrade.log (sample log is in pdf)
and then run the preupgrade_fixups.sql
=======================================
Status of the database prior to upgrade
=======================================
Database Name: COE
Container Name: coe
Manual Upgrade 12c to 19c on Linux 16
Container ID: 0
Version: 12.2.0.1.0
DB Patch Level: No Patch Bundle applied
Compatible: 12.2.0
Blocksize: 8192
Platform: Linux x86 64-bit
Timezone File: 26
Database log mode: ARCHIVELOG
Readonly: FALSE
Edition: EE
==============
BEFORE UPGRADE
Manual Upgrade 12c to 19c on Linux 17
==============
REQUIRED ACTIONS
================
1. Set DB_RECOVERY_FILE_DEST_SIZE initialization
parameter to at least 8702
MB. Check alert log during the upgrade to ensure
there is remaining free
space available in the recovery area.
Currently:
Fast recovery area :
/u12/app/oracle/fast_recovery_area/
Limit : 8192 MB
Used : 1466 MB
Available : 6726 MB
RECOMMENDED ACTIONS
===================
2. Update NUMERIC INITIALIZATION PARAMETERS to meet
estimated minimums.
This action may be done now or when starting the
database in upgrade mode
using the 19 ORACLE HOME.
Parameter Currently
19 minimum
--------- ---------
------------------
Manual Upgrade 12c to 19c on Linux 18
*sga_target 406847488
1002438656
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
INFORMATION ONLY
================
5. To help you keep track of your tablespace
allocations, the following
AUTOEXTEND tablespaces are expected to successfully
EXTEND during the
upgrade process.
Min Size
Tablespace Size For
Upgrade
---------- ----------
-----------
SYSAUX 580 MB 592
MB
SYSTEM 820 MB 929
MB
TEMP 32 MB 150
MB
Manual Upgrade 12c to 19c on Linux 20
UNDOTBS1 85 MB 439
MB
Parameter
---------
sec_case_sensitive_logon
SQL>@/home/oracle/preupgradelogs/preupgrade_fixups.sql
=============
AFTER UPGRADE
=============
REQUIRED ACTIONS
================
None
Manual Upgrade 12c to 19c on Linux 21
RECOMMENDED ACTIONS
===================
8. Upgrade the database time zone file using the
DBMS_DST package.
EXECUTE DBMS_STATS.GATHER_DICTIONARY_STATS;
EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
SQL>@/home/oracle/preupgradelogs/postupgrade_fixups.sql
-----------------------------------------------------------
A] REQUIRED ACTIONS
B] RECOMMENDED ACTIONS
-----------------------------------------------------------
SQL> @/home/oracle/preupgradelogs/preupgrade_fixups.sql
Manual Upgrade 12c to 19c on Linux 25
-----------------------------------------------------------
-----------------------------------------------------------
Manual Upgrade 12c to 19c on Linux 26
22. Copy the all imp files to 19c end and stop all the job
like rman, crontab
-----------------------------------------------------------
/u19/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/orahome =
[/u19/app/oracle/product/19.0.0/dbhome_1]
/u19/app/oracle/product/19.0.0/dbhome_1/bin/orabasehome =
[/u19/app/oracle/product/19.0.0/dbhome_1]
catctlGetOraBaseLogDir = [/u19/app/oracle/product/19.0.0/dbhome_1]
Analyzing file
/u19/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/catupgrd.sql
Number of Cpus = 2
Database Name = coe
DataBase Version = 12.2.0.1.0
catcon::set_log_file_base_path: ALL catcon-related output will be
written to
[/u19/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/coe/upgrade20221
029161245/catupgrd_catcon_44892.lst]
------------------------------------------------------
Phases [0-107] Start Time:[2022_10_29 16:13:00]
------------------------------------------------------
*********** Executing Change Scripts ***********
Serial Phase #:0 [coe] Files:1 Time: 60s
*************** Catalog Core SQL ***************
Serial Phase #:1 [coe] Files:5 Time: 93s
Restart Phase #:2 [coe] Files:1 Time: 6s
e] Files:1 Time: 0s
***************** Post Upgrade *****************
.
.
.
------------------------------------------------------
Phases [0-107] End Time:[2022_10_29 18:13:44]
------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
Manual Upgrade 12c to 19c on Linux 31
-----------------------------------------------------------
SQL> @/home/oracle/preupgradelogs/postupgrade_fixups.sql
Session altered.
Manual Upgrade 12c to 19c on Linux 32
-----------------------------------------------------------
SQL> @?/rdbms/admin/utltz_upg_check.sql
SQL> @?/rdbms/admin/utltz_upg_apply.sql
Manual Upgrade 12c to 19c on Linux 33
DECLARE
l_tz_version PLS_INTEGER;
BEGIN
l_tz_version := DBMS_DST.get_latest_timezone_version;
DBMS_OUTPUT.put_line('l_tz_version=' || l_tz_version);
DBMS_DST.begin_prepare(l_tz_version);
END;
/
C] Check the status again, It should be like
PROPERTY_NAME PROPERTY_VALUE
------------------------- ---------------
DST_SECONDARY_TT_VERSION 26
DST_PRIMARY_TT_VERSION 32
DST_UPGRADE_STATE UPGRADE
EXEC DBMS_DST.find_affected_tables;
EXEC DBMS_DST.end_prepare;
SHUTDOWN IMMEDIATE;
STARTUP UPGRADE;
SET SERVEROUTPUT ON
DECLARE
l_tz_version PLS_INTEGER;
BEGIN
SELECT DBMS_DST.get_latest_timezone_version
INTO l_tz_version
FROM dual;
DBMS_OUTPUT.put_line('l_tz_version=' || l_tz_version);
DBMS_DST.begin_upgrade(l_tz_version);
END;
/
J] Restart the database.
SHUTDOWN IMMEDIATE;
STARTUP;
SET SERVEROUTPUT ON
DECLARE
l_failures PLS_INTEGER;
BEGIN
DBMS_DST.upgrade_database(l_failures);
Manual Upgrade 12c to 19c on Linux 36
DBMS_OUTPUT.put_line('DBMS_DST.upgrade_database : l_failures=' ||
l_failures);
DBMS_DST.end_upgrade(l_failures);
DBMS_OUTPUT.put_line('DBMS_DST.end_upgrade : l_failures=' ||
l_failures);
END;
/
It should be
PROPERTY_NAME PROPERTY_VALUE
------------------------- ---------------
DST_SECONDARY_TT_VERSION 0
DST_PRIMARY_TT_VERSION 32
DST_UPGRADE_STATE NONE
-----------------------------------------------------------
-----------------------------------------------------------
Manual Upgrade 12c to 19c on Linux 37
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
-----------------------------------------------------------
run {
allocate channel ch1 type disk;
allocate channel ch2 type disk;
allocate channel ch3 type disk;
allocate channel ch4 type disk;
sql'alter system archive log current';
sql'alter system archive log current';
sql'alter system archive log current';
sql'alter system archive log current';
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck backup;
delete noprompt obsolete;
BACKUP as compressed backupset INCREMENTAL LEVEL 0 DATABASE format='/
home/oracle/bkp19/coe_bkp_%U';
backup as compressed backupset current controlfile
format'/home/oracle/bkp19/ctl_bkp_%U';
backup as compressed backupset archivelog all
format='/home/oracle/bkp19/coe_arch_%U';
release channel ch1;
release channel ch2;
release channel ch3;
release channel ch4;
}
Manual Upgrade 12c to 19c on Linux 40
-----------------------------------------------------------
===========================================================
Steps Checklist
Step No Step
Check Compatibility Before upgrade from Bellow
01
table.
Manual Upgrade 12c to 19c on Linux 41
14 Gather statistics.
Copy the all imp files to 19c end and stop all the
22
job like rman, crontab
34 Start listener.
===========================================================
The End