I wanted to capture the changes which need to be done to a fresh centos7 server install to support Oracle 12C. The server was installed with Basic Server using a 4GB swap device but before we can start the Oracle install, we need to prepare the system.
- Create credentials
# for f in oinstall dba oper; do groupadd $f; done
# useradd -g oinstall -G dba,oper oracle - Install additional packages:
# yum install binutils compat-libcap1 compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat net-tools telnet - Disable the firewall
# iptables --flush
# systemctl mask firewalld
# systemctl stop firewalld - Tune open file descriptor limit
using your favorite editor, edit /etc/security/limits.conf and add the following:
oracle soft nofile 4096
oracle hard nofile 65536
oracle hard nproc 16384 - Tune shared memory
check current shared memory:# df -ht tmpfs | grep /dev/shm tmpfs 1.9G 912M 984M 49% /dev/shm
using your favorite editor, edit /etc/fstab and add or update the following:
none /dev/shm tmpfs defaults,size=8G 0 0
remount /dev/shm to reflect new value and check again:
# mount -o remount /dev/shm # df -ht tmpfs | grep /dev/shm tmpfs 8.0G 456M 7.6G 6% /dev/shm
- Create /etc/oraInst.loc
# cat > /etc/oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
^D
Correct permissions
# chown oracle:oinstall /etc/oraInst.loc
# chmod 644 /etc/oraInst.loc - Modify or create a response file.
Make a copy of the response file found in the Oracle install directory, database/response/db_install.rsp and edit to match your environment. Here is the list of variables which were changed in my install:
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=centos
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/12.1.0.2/database/stage/products.xml
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true - Install Oracle
Log in as the oracle user and run the installer:
% ./runInstaller -force -silent -responseFile ~/db_install.rsp