vi /etc/hosts
# yum -y install oracle-database-preinstall-19c
/etc/sysctl.conf 파일에 다음과 같이 수정
fs.file-max = 6815744 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 kernel.panic_on_oops = 1 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 net.ipv4.conf.all.rp_filter = 2 net.ipv4.conf.default.rp_filter = 2 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 9000 65500
# /sbin/sysctl -p
# vi /etc/security/limits.d/oracle-database-preinstall-19c.conf oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 16384 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 oracle hard memlock 134217728 oracle soft memlock 134217728
# groupadd -g 1900 dba # usermod -g dba -G dba oracle # passwd oracle
# mkdir -p /app/oracle/19c # mkdir -p /app/oralncentory # chown -R oracle.dba /app/oracle # chown -R oracle.dba /app/oralnventory # chgrp -R dba /app # chmod -R 755 /app
# yum -y install ksh # yum -y install libaio-devel # yum -y install compat-libcap1 # yum -y install compat-libstdc++-33 # yum -y install glibc-devel # yum -y install libstdc++-devel # yum -y install gcc-c++ # yum install -y https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm 다운받은 경우 # rpm -Uvh oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
이전의 설정이나 설치는 모두 root 계정에서 수행했지만 다음의 설정은 oracle 계정 즉, 설치될 오라클의 관리 계정에서 수행한다.
vi .bash_profile ---------------- # oracle setup export ORACLE_OWNER=ora19c export ORACLE_BASE=/app/ora19c export ORACLE_HOME=/app/ora19c/19c export TNS_ADMIN=$ORACLE_HOME/network/admin export ORACLE_SID=DB19 export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 export ORACLE_HOSTNAME=oracle export TMP=/tmp export TMPDIR=$TMP export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME:/usr/bin:.
# unzip [다운받은 파일]
# ./runInstaller
엔진 설치
# netca
# lsnrctl start
db 생성
# dbca
끝 ~