0% found this document useful (0 votes)
12 views8 pages

Database Installation

The document outlines the step-by-step process for installing an Oracle database on a virtual machine, including downloading necessary files, configuring the environment, and executing the installation. Key steps involve setting up the VM, extracting the database files, configuring user permissions, and running the installer with appropriate settings. After installation, it also details creating an .env file for database connectivity and usage.

Uploaded by

vivek chaubey
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)
12 views8 pages

Database Installation

The document outlines the step-by-step process for installing an Oracle database on a virtual machine, including downloading necessary files, configuring the environment, and executing the installation. Key steps involve setting up the VM, extracting the database files, configuring user permissions, and running the installer with appropriate settings. After installation, it also details creating an .env file for database connectivity and usage.

Uploaded by

vivek chaubey
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
You are on page 1/ 8

DATABASE INSTALLATION

Summary:
• To set up the VM, download the ISO image from oracle website with
required version.
• Then download the database zip file from oracle webpage.
• Then, Set up the VM configuration.
• Using WINSCP software move the zip file to the Linux environment
• Then, Extract the zip file into the $ORACLE_HOME.
Unzip LINUX.X64_193000_db_home.zip -d /u01/apps/oracle/server/19.3/home

• Then, Default oracle user will be there and need to give permission to
the user.

Step by Step Process:


• In root,
yum install -y oracle-database-preinstall-19c

• Set password for oracle User,

passwd oracle

• Then create Oracle_Home Directory,

mkdir -p /u01/apps/oracle/server/19.3/home

chown -R oracle:oinstall /u01

chmod -R 775 /u01

• Switch to oracle user,

su - oracle
• Then,

vi .bash_profile

# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc fi
# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

export ORACLE_HOME=/u01/apps/oracle/server/19.3/home
export ORACLE_BASE=/u01/apps/oracle/server/19.3
export ORACLE_SID=PROD
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export NLS_LANG=AMERICAN_AMERICA.UTF8

• Install the Database from the Oracle Website


• Then Move to the Home folder and extract (UNZIP) there
• In OS terminal - If the error related to application requires X Display or
X11 display is not found use MobaXterm - Switch to the oracle user

su - oracle

• Then, move to $ORACLE_HOME, then give…

./runInstaller

• GUI appears.
• If the error INS-08101 appears then in terminal give,

export CV_ASSUME_DISTID=OEL7.8

• Then, give

./runInstaller
• In GUI click , For Standalone
• If you need container database, you can select the create the container
database or else you can uncheck the box.
• Select Automatically run the configuration scripts and select use root
credentials to automatically run the script.

• In Step 8, the summary of your configuration will be shown, check and


go for install.
• Now, the installation will be started.

• Now, the database has been installed.


• After Installation, Create the .env file and connect to SQL using sqlplus /
as sysdba.
• Creating an .env File.

• After opening the file enter the below command with your path and
oracle SID and save the file.

export ORACLE_HOME=/u01/apps/oracle/server/19.3/home

export ORACLE_BASE=/u01/apps/oracle/server/19.3

export ORACLE_SID=PROD

export PATH=$ORACLE_HOME/bin:$PATH

• Source the .env file and use the SQL command to connect to the
database.

You might also like