19c silent install on linux server.

preview_player
Показать описание
19c Installation on OEL 7.9

---start putty session with server

---set hostname
hostnamectl set-hostname alfadb

---add lines on hosts file
vim /etc/hosts

---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

---Edit response file for silent installation
cd /u01/app/oracle/product/19.0.0/dbhome_1/cv/admin
vi cvu_config
CV_ASSUME_DISTID=OEL7.9 --uncomment this line and add Linux version like 7.9

----set bash_profile for oracle
vi .bash_profile

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export ORACLE_SID=alfadb
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
install database software with silent mode
cd $ORACLE_HOME
--Past below lines and hit Enter button process will start autometically
./runInstaller -ignorePrereq -waitforcompletion -silent \
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} \
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
DECLINE_SECURITY_UPDATES=true

Target environment does not meet some optional requirements.
coz I used minimal install of OEL 7.9

lets check

---Run root script by root user

----create database by database configuration assitance

dbca -silent -createDatabase \
-gdbname ${ORACLE_SID} -sid ${ORACLE_SID} \
-characterSet WE8MSWIN1252 \
-sysPassword Oracle#123 \
-systemPassword Oracle#123 \
-createAsContainerDatabase false \
-totalMemory 2000 \
-storageType FS \
-datafileDestination /u01/app/oracle/oradata/${ORACLE_SID} \
-emConfiguration NONE \
-ignorePreReqs -sampleSchema false



----silent listener creation--------

.......done
Рекомендации по теме