Oracle Database Upgrade from 18c to 19c
Oracle Database Upgrade from 18c to 19c
18C TO 19C
MAIN STEPS
Download and install Oracle preinstall rpm on Linux to install the required
Linux rpm packages needed for Oracle.
# su -
yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
2. Additional Setup
SELINUX=permissive
Once the change is complete, restart the server or run the following command.
# setenforce Permissive
If you have the Linux firewall enabled, you will need to disable or configure
it, as shown here. To disable it, do the following.
3. Create the directories in which the Oracle 19c software will be installed.
mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
2|Page
4. Install Oracle 19c Software
Connect to the oracle machine with oracle user and copy software zip file to
Oracle home location and unzip it.
su – oracle
cp -p LINUX.X64_193000_db_home.zip /u01/app/oracle/product/19.0.0/dbhome_1
cd /u01/app/oracle/product/19.0.0/dbhome_1
unzip LINUX.X64_193000_db_home.zip
Start the Oracle Universal Installer (OUI) by issuing the following command.
./runInstaller
3|Page
4|Page
5|Page
6|Page
7|Page
8|Page
9|Page
10 | P a g e
11 | P a g e
12 | P a g e
13 | P a g e
Step (2): Oracle database 18c upgrade to 19c
1. run the oracle 19c preupgrade tool on current 18c database to fix any
errors before upgrade
/u01/app/oracle/product/18.0.0/dbhome_1/bin/java -jar
/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/admin/preupgrade.jar FILE DIR
/home/oracle/preupgrade
sqlplus / as sysdba
SQL>@/home/oracle/preupgrade/preupgrade_fixups.sql
SQL>@$ORACLE_HOME/rdbms/admin/utlrp.sql
3. from 19c Oracle home create a new listener and copy tnsnames.ora file from
18c home to 19c home
./dbua
14 | P a g e
15 | P a g e
16 | P a g e
17 | P a g e
18 | P a g e
19 | P a g e
20 | P a g e
21 | P a g e