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

Oracle Database Upgrade from 18c to 19c

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Oracle Database Upgrade from 18c to 19c

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

ORACLE DATABASE UPGRADE FROM

18C TO 19C
MAIN STEPS

Step (1): Oracle 19c Software Installation

1. Oracle Installation Prerequisites

Download and install Oracle preinstall rpm on Linux to install the required
Linux rpm packages needed for Oracle.

You can download the rpm file from this link


https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-
database-preinstall-19c-1.0-1.el7.x86_64.rpm

# su -
yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

or install directly using

yum install -y oracle-database-preinstall-19c

2. Additional Setup

Set secure Linux to permissive by editing the "/etc/selinux/config" file,


making sure the SELINUX flag is set as follows.

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.

# systemctl stop firewalld


# systemctl disable firewalld

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

Go to the following directory:


cd /u01/app/oracle/product/19.0.0/dbhome_1/bin

/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

2. run the preupgrade_fixups.sql script on 18c database to fixup any errors


found in preupgrade tool and run utlrp.sql to compile any invalid objects

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

4. Start database upgrade assistant dbua utility from 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

You might also like