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

Oracle 19c Installation on Linux 7

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)
58 views37 pages

Oracle 19c Installation on Linux 7

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 .
[Link]

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 [Link] file


>> nano /etc/[Link]

View of above change


>>/sbin/sysctl -p
Add the following lines to a file called "/etc/security/limits.d/[Link]"
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 "[Link]".


cat > /home/oracle/scripts/[Link] <<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 "[Link]" 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

Common questions

Powered by AI

Updating the system prior to installing Oracle 19c ensures that all packages are up-to-date, reducing potential conflicts. Modifying system files like '/etc/sysctl.conf' and '/etc/security/limits.d/oracle-database-preinstall-19c.conf' is crucial to optimize kernel parameters and set user limits for Oracle operations—such as nofile, nproc, and memlock values—to ensure stability and performance. These changes prepare the environment to handle the demands of Oracle 19c effectively .

Designating specific directories and setting appropriate permissions are crucial for Oracle 19c software installation as they define where Oracle's files and data will reside. The creation of directories like '/u01/app/oracle/product/19.0.0/dbhome_1' ensures organized storage, and setting permissions guarantees that only authorized users (oracle, oinstall group) can modify these directories, protecting against unauthorized access and ensuring system integrity .

The 'setEnv.sh' script defines key environment variables necessary for Oracle 19c, such as ORACLE_HOME and ORACLE_SID. Including it in '.bash_profile' ensures these variables are set automatically on session startup for the Oracle user, reducing the risk of environment misconfiguration. This setup facilitates smoother, repeatable operations involving the Oracle database and is vital for maintaining a consistent runtime environment .

To properly set up an Oracle user for Oracle 19c, first create the necessary groups such as 'oinstall', 'dba', and 'oper'. Next, add a new user named 'oracle' and assign it to these groups. Set a password for the oracle user. Configure SELinux to permissive and disable the Linux firewall for better compatibility with Oracle's requirements. Directories for Oracle software installation must also be created and permissioned accordingly. Environment settings must be defined in scripts such as 'setEnv.sh'. This configuration lays down the foundation for running Oracle 19c .

Mount points and partitioning are crucial during Oracle Linux installation as they organize and allocate storage effectively. Specific mount points suggested—such as '/' mounted with ext4 filesystem and providing sufficient space for crucial directories like '/home', '/boot', '/tmp', '/swap', and '/u01'—ensure that each segment of the Linux environment is set up with adequate resources. Incorrect partitioning can lead to issues such as insufficient disk space (-especially for swap and application data storage), affecting system stability and performance .

When configuring a virtual machine for Oracle Linux 7 on VMware, it is crucial to select custom hardware compatibility, e.g., workstation 17.5 or later, and specify the installer disc image path. Assign at least 2 processors and 6 GB RAM to ensure adequate performance. Choosing an appropriate virtual hard disk size is important to avoid future issues. Set the network to bridged mode and use recommended SCSI settings. Additionally, configure the virtual disk to store OS files as a single file for easier management and deletion. Carefully reviewing and confirming these configurations is essential before finishing the setup .

Setting incorrect kernel parameters in sysctl.conf can lead to Oracle 19c installation and operational issues. Insufficient values for parameters like nofile (limits the number of open files) or nproc (limits the number of processes) could restrict Oracle's ability to handle concurrent sessions and processes. This might result in performance degradation, unexpected errors, or crashes during heavy workloads .

Preparation of environment variables and scripts significantly enhances Oracle installation by automating repetitive tasks and ensuring consistent configuration across environments. Scripts such as 'setEnv.sh' define critical environment variables including ORACLE_HOME, ORACLE_BASE, and PATH, ensuring that all system and Oracle processes can access required resources efficiently. This reduces manual errors and ensures environment consistency, which is crucial for Oracle's reliable operation .

Manual configuration of network settings in Oracle Linux allows the user to assign a specific static IP address to the system, minimizing the chances of IP conflicts on the network. This is achieved by using the 'wired settings' to input an IP address, netmask, gateway, and DNS manually after checking that the chosen IP is not already in use. With control over these settings, efficient network communication is maintained .

Adjusting SELinux to permissive mode and disabling the firewall eases the integration and operation of Oracle 19c by minimizing restrictions that can interfere with database functionalities. SELinux in enforcing mode can block processes required by Oracle, potentially leading to installation failures or runtime issues. Similarly, a running firewall might block essential ports used by Oracle, hindering network connectivity and performance .

You might also like