You are on page 1of 2

randydba Blog { Database - Tips & Techniques } SUBSCRIBE

Oracle Database 19c Step by Step Installation On Oracle Linux 7.6


on July 04, 2019

This post describes the installation of Oracle Database 19c 64-bit on Oracle Linux 7.6 x86-64 bit. The

Linux server needs a minimum of 3G swap and secure Linux set to permissive. An example of this type

of Linux installation can be seen here.

Download Software

Download the Oracle software from oracle edelivery.

Oracle Installation Prerequisites

Automatic Setup

Use the "oracle-database-preinstall-19c" package to perform all your prerequisite setup.

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

If you are using RHEL7 or CentOS7, you can pick up the PRM from the OL7 repository and install it. It

will pull the dependencies from your normal repositories.

# yum install -y https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-

database-preinstall-19c-1.0-1.el7.x86_64.rpm

Hosts File

Set a fully qualified name for the server in the "/etc/hosts" file.

< IP-address > < fully-qualified-machine-name > < machine-name >

# vi /etc/hosts

Set the correct hostname in the "/etc/hostname" file.

# vi /etc/hostname

arandy.cm

NB!! Make sure you can ping the hostname you added in the host file.

Additional Setup

Set the password for the "oracle" user.

# passwd oracle

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

# vi /etc/selinux/config

SELINUX=permissive

Once the change is complete, run the following command.

# setenforce Permissive

Disable the Linux firewall.

# systemctl stop firewalld

# systemctl disable firewalld

Create the directories in which the Oracle software will be installed.

mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1

mkdir -p /u02/oradata

chown -R oracle:oinstall /u01 /u02

chmod -R 775 /u01 /u02

Reboot the server and login in with the oracle user using the password that we set above.

Hope you haven’t forgotten your password if you have don’t worry just log in as the root user and reset

the password again with passwd command.

# reboot

Set Environment variables.

Add the following environment variables in the .bash_profile file.

$ vi .bash_profile

# Oracle Settings

export TMP=/tmp

export TMPDIR=$TMP

export ORACLE_HOSTNAME=arandy.cm

export ORACLE_UNQNAME=cdb1

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1

export ORA_INVENTORY=/u01/app/oraInventory

export ORACLE_SID=cdb1

export PDB_NAME=pdb1

export DATA_DIR=/u02/oradata

export PATH=/usr/sbin:/usr/local/bin:$PATH

export PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

$ . .bash_profile

Unzip the File

Switch to the ORACLE_HOME directory and unzip the software directly into this path.

Please note that after you must have downloaded the installation file you have to transfer them into

the VM. This can be done with Filezilla or by using the scp command in the terminal.

$ cd $ORACLE_HOME

$ unzip -oq /home/oracle/LINUX.X64_193000_db_home.zip

Run the Installer

Log into the oracle user, start the Oracle Universal Installer (OUI) by issuing the following command

and follow the GUI guided steps

$ cd $ORACLE_HOME

$ ./runInstaller

Select the install option Set Up Software Only and click Next
Next:

Select the install option Single Instance database installation and click Next
Next:

Select the install option Enterprise Edition and click Next


Next:

Click Next.

Click Next.

Click Next.

Click Next.

Click Next.

Make sure all Prerequisite Checks Succeeded.

Click Install.

Run the root scripts when prompted.

As a root user, execute the following script(s):

# /u01/app/oraInventory/orainstRoot.sh

# /u01/app/oracle/product/19.0.0/dbhome_1/root.sh

Click Close.

You are now ready to create a database.

Database Creation

You create a database using the Database Configuration Assistant (DBCA). The interactive mode will

display GUI screens to allow user input.

After successfully installing the database software, start the listener:

# Start the listener

$ lsnrctl start

To create the database using the interactive mode, start the Database Configuration Assistance (dbca)

by issuing the following command and follow the GUI guided steps

# Interactive mode.

$ dbca

Click Next.

Typical configuration:

Global database name: cdb1

Storage type: File System

Database file location: /u02/oradata

Fast Recovery Area (FRA): {ORACLE_BASE}/fast_recovery_area/{DB_UNIQUE_NAME}

Database character set: AL32UTF8

Adminitrative password: SysOracle_47

Pluggable database name: pdb1

Click Next.

Click Finish.

Database Summary.

Database creation finish.

Once the Database 19c successfully created, validate the database using the following command.

$ sqlplus / as sysdba

SQL> select banner_full from v$version;

SQL> select instance_name,status from v$instance;

SQL> select con_id, name, open_mode from v$pdbs;


Hope this helps!!

Caution: Any information or materials on this blog is provided for educational purposes only. It
has been tested internally, however, we do not guarantee that it will work for you. Ensure that you
run it in your test environment before using.

Thanks,
randyDBA { serving to discover }

Anonymous June 1, 2020 at 9:48 AM


https://www.canowebs.com use this link web hosting and bulk email
REPLY

Devi July 29, 2020 at 8:44 AM


It is very good and useful .Learned a lot of new things from your post!Good creation ,thanks for good
info oracle training in chennai

Randy Nyambi October 2, 2020 at 10:55 AM


Thanks Devi. Please check out my other posts.

REPLY

Kamla August 17, 2020 at 5:41 AM


Great work

Randy Nyambi August 17, 2020 at 3:59 PM


Thanks Kamla.

REPLY

Kamla August 17, 2020 at 5:41 AM


Great work
REPLY

Unknown September 19, 2020 at 10:35 AM


Usually I never comment on blogs but your article is so convincing that I never stop myself to say
something about it. You’re doing a great job Man learn Oracle SOA Online Training

Randy Nyambi October 2, 2020 at 10:57 AM


Thanks for the kind words Man. Really appreciate it.

REPLY

Unknown October 2, 2020 at 8:10 AM

Thanks for sharing this great information on Oracle PPM Cloud. Actually I was looking for the same
information on internet for Oracle Project Portfolio Management (PPM) Cloud Tutorial and came across
your blog. I am impressed by the information that you have on this blog. It shows how well you
understand this subject, you can learn more about PPM Cloud by attending Oracle PPM Cloud Training .

Randy Nyambi October 2, 2020 at 10:58 AM


Thanks allot!

REPLY

Andrea Elizabeth October 21, 2020 at 11:37 AM


This comment has been removed by the author.
REPLY

Andrea Elizabeth October 21, 2020 at 2:43 PM


Thanks for sharing this great information I am impressed by the information that you have on this blog.
Same as your blog i found another one Oracle Fusion Financials . Actually I was looking for the same
information on internet for Oracle Fusion Financials and came across your blog. I am impressed by the
information that you have on this blog. It shows how well you understand this subject, you can learn
more aboutOracle Fusion Financials . By attending Oracle Fusion FinancialsTraining .
REPLY

ghulam mohayyudin January 15, 2021 at 8:36 PM


SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
this error occured how to fix this
REPLY

Rajani February 15, 2021 at 8:31 AM


Thanks for sharing. It's really good article..
DevOps Training
DevOps Online Training
REPLY

shanewarner March 25, 2021 at 11:14 AM


Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted
with it better! Cheers, keep doing awesome! Fresh SMTP Shop Buy Inbox Mailer
REPLY

Devi April 22, 2021 at 3:54 PM


If Java Development is a field that you're dreaming of, then we, Infycle, are with you to make your
dream into reality. Infycle Technologies offers the best Java Training in Chennai, with various highly
demanded software courses such as Big Data, AWS, Python, Hadoop, AWS, etc., in 100% practical
training with specialized tutors in the field. Along with that, the pre-interviews will be given for the
candidates to face the interviews with complete knowledge. To know more, dial 7502633633 for
more.Java Course in Chennai | Infycle Technologies
REPLY

Unknown April 23, 2021 at 3:36 PM


did not create init.ora file for database created. Generic init.ora file is all that exists. Does this file need
to be hand-modified?
REPLY

Enter your comment...

Popular Posts

Automating RMAN backup Jobs with CRON utility

Automating RMAN backup Jobs with CRON utility DBAs often debate
whether they should use Oracle Scheduler or the Linux/Unix cron utility
for scheduling and automating tasks. There are many benefits that Oracle
Scheduler has over cron, but yet despite these benefits, many DBAs prefer…

Oracle Audit Vault and Database Firewall Installation (Oracle Audit Vault

Server 12.2.0.4)

Installation of Oracle Audit Vault and Database Firewall (AVDF) 12.2.0.4


comprises of installing Audit Vault Server first and then Database
Firewall. Oracle Audit Vault and Database Firewall come in different
installation media. This post deals with the installation of Audit Vault …

Powered by Blogger

Theme images by Jason Morrow

You might also like