# 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 unzip xterm
# 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 ...
# sudo apt-get install gcc libaio1 lesstif2 lesstif2-dev make rpm libc6 libstdc++5
# sudo ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so
# grep dba /etc/group # groupadd dba
# useradd -g dba -m -s /bin/bash oracle # passwd oracle
# groupadd nobody
$ mkdir install $ cd install $ cp /path/from/10201_database_linux32.zip .
$ unzip 10201_database_linux32.zip
$ cpio -idmv < 10201_database_linux32.cpio
시스템 설정을 반드시 체크하고 설치를 진행하도록 하자.
$ grep MemTotal /proc/meminfo MemTotal: 905400 kB $ free total used free shared buffers cached Mem: 905400 868836 36564 0 49592 471520 -/+ buffers/cache: 347724 557676 Swap: 489940 441404 48536
# free total used free shared buffers cached Mem: 905400 868836 36564 0 49592 471520 -/+ buffers/cache: 347724 557676 Swap: 489940 441404 48536
# 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
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000
# for oracle 10g * soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
session required pam_limits.so
# for Oracle 10g 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=/home/oracle export ORACLE_HOME=$ORACLE_BASE/product/10g export ORACLE_SID=SOAF export PATH=$PATH:$ORACLE_HOME/bin # export NLS_LANG=KOREAN_KOREA.KO16MSWIN949 # export NLS_LANG=KOREAN_KOREA.KO16KSC5601 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
$ dbca
/
/아이피주소:1158/em 를 입력한다.