Database Installation
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.
passwd oracle
mkdir -p /u01/apps/oracle/server/19.3/home
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
su - oracle
./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.
• 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.