In this video I will show how to install oracle database 19c on Oracle Linux 8 with silent installation.
How to install oracle database 19c on Oracle Linux 8 ???
step 00 : Install Oracle Linux — I used oracle virtual box
Step 01 : Prepare environment for DB inastallation
Step 02 : Install database software only
Step 03 : Create database
—set hostname
hostnamectl set-hostname oel8db
—setup IP address
cd /etc/sysconfig/network-script
IP : 192.168.1.103
—add lines on hosts file
vim /etc/hosts
192.168.1.103 oel8db.localdomain oel8db
—Set SELINUX permissive
vim /etc/selinux/config
SELINUX=permissive
—-after reboot permissive will active
—Firewall disable
systemctl stop firewalld
systemctl disable firewalld
—Install preinstall packages
yum install -y oracle-database-preinstall-19c
—Set password for oracle user
passwd oracle
—Create required directories and give permission
mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
—Push 19c database software to the server
I use winscp software for transfer the software
—Unzip 19c database software
unzip LINUX.X64_193000_db_home.zip -d /u01/app/oracle/product/19.0.0/dbhome_1
—Edit response file for silent installation
cd /u01/app/oracle/product/19.0.0/dbhome_1/cv/admin
vim cvu_config
CV_ASSUME_DISTID=OEL8.5 –uncomment this line and add Linux version like 8.5
—-set bash_profile for oracle
vim .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export ORACLE_SID=silentdb
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export PATH=$PATH:$HOME/.local/bin:$ORACLE_HOME/bin
—–now I will reboot the server by root user
reboot
—-login with oracle user
—go to the oracle_home and run installer
we will install database software with silent mode
cd $ORACLE_HOME
–Past below lines and hit Enter button process will start autometically
./runInstaller -ignorePrereq -waitforcompletion -silent
-responseFile ${ORACLE_HOME}/install/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=${ORACLE_HOSTNAME}
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,en_GB
ORACLE_HOME=${ORACLE_HOME}
ORACLE_BASE=${ORACLE_BASE}
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSBACKUPDBA_GROUP=dba
oracle.install.db.OSDGDBA_GROUP=dba
oracle.install.db.OSKMDBA_GROUP=dba
oracle.install.db.OSRACDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
—Run root script by root user
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/19.0.0/dbhome_1/root.sh
—-create database by database configuration assitance
dbca -silent -createDatabase
-templateName General_Purpose.dbc
-gdbname ${ORACLE_SID} -sid ${ORACLE_SID}
-characterSet AL32UTF8
-sysPassword sys#123
-systemPassword sys#123
-createAsContainerDatabase false
-totalMemory 2000
-storageType FS
-datafileDestination /u01/${ORACLE_SID}
-emConfiguration NONE
-ignorePreReqs -sampleSchema true
Completed
Bye bye
[ad_2]
source