0% found this document useful (0 votes)
14 views37 pages

Installation Oracle 19c

The document outlines the installation process for Oracle Linux 19c, which includes three main phases: installing Linux, Oracle software, and the Oracle database. It provides detailed steps for setting up a virtual machine using VMware, configuring system settings, and installing the Oracle software and database. The installation involves creating mount points, configuring user permissions, and executing specific commands to complete the setup successfully.

Uploaded by

moizabdul1557
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views37 pages

Installation Oracle 19c

The document outlines the installation process for Oracle Linux 19c, which includes three main phases: installing Linux, Oracle software, and the Oracle database. It provides detailed steps for setting up a virtual machine using VMware, configuring system settings, and installing the Oracle software and database. The installation involves creating mount points, configuring user permissions, and executing specific commands to complete the setup successfully.

Uploaded by

moizabdul1557
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Installation: Oracle linux 19c

The installation has three phrase


Install Linux
Install Oracle Software
Install Oracle DB

Install Linux 7

Open Vmware
Click on Create a New Virtual Machine .

Select Custom option

Select hardware Compatibility : workstation 17.5 or later


Select Installer disc image file : give path where is your linux setup is .

Give your VM name


Select your location where you want to install the linux
select the nu: processor both option you have to give 2 , 2

alot Ram : 6 GB Ram recommended


Select User bridged Network connection

Select LSI logic recommended


Select SCSI Recommended

Select Create a new Virtual disk


Specify the disk size : choose wisely because it will create problem afterwards.
Select store virtual disk as a single file . it will store OS files in a single file , when you delete it from
system it will easily erase .
VMware give review about the selections which we have did above click on finish if you don’t want
to change anything.

Vmware is start load Linux process


Loading the OS .

Select the language for the OS.

In bellow image we have to set multiple option 1) data& time 2) software Selection 3) Installation
destination
Set time and region

Software selection option


Select Server with GUI from Base Environment
For trainee no need to select from ADD-Ons for selected Environment.
First select I will configure partitioning
Now click on local standard disks
In bellow interface we will make mount point

We have to make 6 mount point


Mount Point file system size
/ ext4 15
/home ext4 12
/boot ext4 2
/tmp ext4 10
/swap swap 10
/u01 ext4 100
Accept Changes

Click on Begin Installation

Set root pwd and create a user


Will take some time to complete the process

click on reboot.
After reboot accept the license information.
INTERNET CONNECTION
Make a static internet connection.
Go to system tray .
Click on system tray , then go to wired setting.

For manual ip address , first open cmd from windows os. Test your ip address from ping if that
particular ip is assign to other pc or not.
Click on manual ,
Give ip address ,
Write Netmask
Write Gateway
Write DNS
Installation of Oracle 19c
The step of installation of oracle are based on bellow link . in which each step define .
https://oracle-base.com/articles/19c/oracle-db-19c-installation-on-oracle-linux-7

Note: switch your user to root.


>> su – root

First step is change hostname


>> nano /etc/hosts
Patterns of writing host name is
<ip> <hostname> <machine name >
Write hostname and machine same like in bellow picture.

Also change hostname in another file


>>nano /etc/hostname
Localhost has been changes

Update the system.


>> yum update -y
Will take some time to update.

Make change in systctl.conf file


>> nano /etc/sysctl.conf

View of above change


>>/sbin/sysctl -p
Add the following lines to a file called "/etc/security/limits.d/oracle-database-preinstall-19c.conf"
file.
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728

Install the listed packages which are mention in ref: link

Add groups ooinstall , dba , oper

Add new user oracle and configure it with other groups oinstall , dba , oper

Set the passwd for oracle user


>>passwd oracle
Edit in file /etc/selinux/config file
Set SELINUX=permissve
Once the change is complete. Run the following command
>>setenforce Permissive

Disable the linux firewall using command


>>systemctl stop firewalld
>>systemctl disable firewalld

Create the directories in which software will be installed.


>>mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
>>mkdir -p /u01/oradata
>>chown -R oracle:oinstall /u01
>>chmod -R 775 /u01
Display setting , login to root user
>>xhost +machine-name

Create a script directory


>>mkdir /home/oracle/scripts

Create an environment file called "setEnv.sh".


cat > /home/oracle/scripts/setEnv.sh <<EOF
# Oracle Settings
export TMP=/tmp
export TMPDIR=\$TMP Write ur sys hostname
export ORACLE_HOSTNAME=xp
export ORACLE_UNQNAME=orcl Write orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=\$ORACLE_BASE/product/19.0.0/dbhome_1
export ORA_INVENTORY=/u01/app/oraInventory
export ORACLE_SID=orcl
export PDB_NAME=pdb1
export DATA_DIR=/u01/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
EOF

Add a reference to the "setEnv.sh" file at the end of the "/home/oracle/.bash_profile" file.
Create a "start_all.sh" and "stop_all.sh" script that can be called from a startup/shutdown service.
Make sure the ownership and permissions are correct.

Log into ORACLE USER using following commands


>>su - oracle

DISPlay , it help the GUI Setup . but you have to login into root user to execute this command

Coping the oracle setup from windows OS to Linux OS using WinSCP sw.
Oracle sw setup is in zip file to unzip go to $ORACLE_HOME directory then unzip the setup using
command .
>> cd $ORACLE_HOME

>> unzip LINUX.X64_193000_db_home.zip


To run the sw
>>.run/Installer

Now to can install Oracle SW .

Install ORACLE
Using terminal go to the directory where you paste the oracle sw . unzip it and run the command
>>./runInstaller

GUI Interface will occur


Run these scripts on terminal
The oracle has been installed. Use terminal to execute this command
>> sqlplus / as sysdba
To start oracle terminal
Install DB
The oracle sw has been install , now we have to install DB.

Use this command to install db


>>dbca
Check the listener status
>>lsnrctl status

The oracle Database has been installed successfully

You might also like