# echo "Red Hat Enterprise Linux AS release 3 (Taroon Update 5)" > /etc/redhat-release
# apt-get install libdb1-compat g++ pdksh sysstat libc6 libc6-dev libaio1 libstdc++5 # apt-get install gcc make binutils lesstif2 lesstif2-dev rpm gawk x-window-system-core # apt-get install unzip xterm # apt-get install make binutils gcc unixodbc-dev sysstat pdksh libaio-dev elfutils # apt-get purge kaffe kaffe-pthread (kaffe가 설치되어 있다면 지워준다) # apt-get purge openjdk-6-jre openjdk-6-jre-headless (openjdk가 설치되어 있다면 지워준다) # apt-get install sun-java5-jdk
# ln -s /usr/bin/awk /bin/awk # ln -s /usr/bin/rpm /bin/rpm # ln -s /usr/bin/basename /bin/basename # Suggested by Giuseppe Sacco # ln -s /etc /etc/rc.d # Required for root.sh
$ 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
# 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 * soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
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 fi fi
오라클 Bash 환경설정을 한다.
# # Oracle Environment # export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0 export ORACLE_SID=PROD 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
$ export LANG=C $ cd install/database $ ./runInstaller
'continue
'를 눌러 진행한다.$ lsnrctl stop $ sqlplus "/as sysdba" SQL> shutdown immediate; $ cd $ORACLE_HOME/lib/ $ make -f ins_rdbms.mk
$ cd $ORACLE_HOME/bin $ relink all
$ dbca
/
/아이피주소:1158/em 를 입력한다.