$ cat /etc/issue
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial
# echo "Red Hat Enterprise Linux AS release 3 (Taroon Update 5)" > /etc/redhat-release
$ sudo apt-get update $ sudo apt-get install gcc make binutils rpm libaio1 libaio-dev gawk alien ksh x11-apps x11-utils unzip $ sudo apt-get install sysstat libaio-dev libaio1 elfutils expat unixodbc-bin unixodbc-dev gcc-multilib $ sudo apt-get install multiarch-support:i386 zlib1g:i386 $ sudo apt-get dselect-upgrade -f fix-missing upgrade
sudo ln -s /usr/bin/awk /bin/awk sudo ln -s /usr/bin/rpm /bin/rpm sudo ln -s /usr/bin/basename /bin/basename # Suggested by Giuseppe Sacco sudo ln -s /etc /etc/rc.d # Required for root.sh sudo ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so sudo ln -s /usr/lib /usr/lib64 sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib64/ sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/ sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/ sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/
$ vi /etc/ssh/sshd_config ... X11Forwarding yes ...
# grep -E '(dba|oinstall|asmdba|oper|asmadmin|asmoper)' /etc/group # groupadd oinstall # groupadd dba # groupadd asmdba # groupadd oper # groupadd asmadmin # groupadd asmoper # # groupadd nobody # usermod -g nobody nobody
# useradd -g oinstall -G dba,asmdba,oper,asmadmin,asmoper -m -s /bin/bash oracle # passwd oracle
$ id uid=1031(oracle) gid=114(oinstall) groups=114(oinstall),115(dba) ,116(asmdba),117(oper),118(asmadmin),119(asmoper) $ mkdir install $ cd install $ cp /path/from/linux_11gR2_database_1of2.zip . $ cp /path/from/linux_11gR2_database_2of2.zip .
$ unzip linux_11gR2_database_1of2.zip $ unzip linux_11gR2_database_2of2.zip
시스템 설정을 반드시 체크하고 설치를 진행하도록 하자.
$ grep MemTotal /proc/meminfo MemTotal: 2068136 kB
$ free total used free shared buffers cached Mem: 2068136 2015368 52768 0 30444 1893064 -/+ buffers/cache: 91860 1976276 Swap: 3903784 604 3903180
# dd if=/dev/zero of=swapfile bs=1024 count=1024 # mkswap swapfile # swapon swapfile
# sysctl -a | grep -E '(sem|shm|file-max|ip_local_port_range)' net.ipv4.ip_local_port_range = 1024 65000 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 2097152 kernel.shmmax = 2147483648 fs.file-max = 65536
# oracle10g kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 6815744 net.ipv4.ip_local_port_range = 9000 65500 # oracle11g net.core.rmem_max = 4194304 net.core.rmem_default = 262144 net.core.wmem_max = 1048576 net.core.wmem_default = 262144 fs.aio-max-nr = 1048576
# for oracle 11g #oracle soft nproc 8192 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240
session required pam_limits.so
# for Oracle 11g if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 #ulimit -u 16384 -n 4000 fi fi
오라클 Bash 환경설정을 한다.
# # Oracle Environment # export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0 export ORACLE_SID=ORCL export PATH=$PATH:$ORACLE_HOME/bin # export NLS_LANG=KOREAN_KOREA.KO16MSWIN949 # export NLS_LANG=KOREAN_KOREA.KO16KSC5601 # export NLS_LANG=KOREAN_KOREA.UTF8 # export NLS_LANG=KOREAN_KOREA.AL32UTF8 export SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jlib:/usr/lib export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jdbc/lib export CLASSPATH=$ORACLE_HOME/lib/classgen.jar:$ORACLE_HOME/jdbc/lib: umask 022
$ ssh -X oracle@10.1.1.200
$ id uid=1017(oracle) gid=107(dba) groups=107(dba)
# xhost + 원격서버주소
# ssh 아이디@원격서버주소 # export DISPLAY=로컬PC주소:0.0
# xclock
$ cd install/database $ LANG=C LC_ALL=C ./runInstaller
$ cd $ORACLE_HOME/bin $ relink all
$ dbca
/
/아이피주소:1158/em 를 입력한다. # apt-get install libtest-lwp-useragent-perl libconfig-json-perl