[설치참조: http://kr.blog.yahoo.com/iavantgarde/MYBLOG/yblog.html?pc=5 ]
① 추가 패키지를 설치 한다.
#
yum -y install setarch make glibc libaio compat-libstdc++-33 compat-gcc-34 gcc
libXp openmotif compat-db glibc-devel libstdc++-devel
xscreensaver
② linux 시스템 설정
#
vi /etc/redhat-release
CentOS release 5 (Final) --> redhat-4로 수정한다.
# vi /etc/security/limits.conf -- 아래 내용 추가
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
# vi /etc/sysctl.conf -- 다음과 같이 추가한다.(커널 파라메터 수정)
//kernel.shmall = centos값 그대로 유지
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
# /sbin/sysctl -p 로 에러 메시지가 없고 설정파일만 보이면 성공이다.
# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
# vi /etc/gdm/custom.conf
[xdmcp]
Enable=1
xdmcp 를 활성화 시킵니다.
[security]
AllowRemoteRoot=true
AllowRoot=true
문서엔 AllowRemoteRoot 만 true 시키라고 되어 있지만 AllowRoot 도 true 시켜 주시기 바랍니다.
# shutdown -r now -- 재시작
CentOS release 5 (Final) --> redhat-4로 수정한다.
# vi /etc/security/limits.conf -- 아래 내용 추가
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
# vi /etc/sysctl.conf -- 다음과 같이 추가한다.(커널 파라메터 수정)
//kernel.shmall = centos값 그대로 유지
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
# /sbin/sysctl -p 로 에러 메시지가 없고 설정파일만 보이면 성공이다.
# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
# vi /etc/gdm/custom.conf
[xdmcp]
Enable=1
xdmcp 를 활성화 시킵니다.
[security]
AllowRemoteRoot=true
AllowRoot=true
문서엔 AllowRemoteRoot 만 true 시키라고 되어 있지만 AllowRoot 도 true 시켜 주시기 바랍니다.
# shutdown -r now -- 재시작
③ Oracle 환경 설정
#
groupadd dba
# useradd -g dba oracle
# passwd oracle -- 패스워드는 각자 알아서...
# mkdir -p /oracle/app/oracle/product/102
chown -R oracle.dba /oracle
# su - oracle
$ vi .bash_profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/102; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID -- SID명 각자 알아서..
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
<pre>LANG=C; export LANG
export DISPLAY=:0.0
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
# useradd -g dba oracle
# passwd oracle -- 패스워드는 각자 알아서...
# mkdir -p /oracle/app/oracle/product/102
chown -R oracle.dba /oracle
# su - oracle
$ vi .bash_profile
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/102; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID -- SID명 각자 알아서..
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
<pre>LANG=C; export LANG
export DISPLAY=:0.0
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
④ Oracle 설치
[oracle@ns]$
gunzip 10201_database_linux_x86_64.cpio.gz
[oracle@ns]$ cpio -idmv <10201_database_linux_x86_64.cpio
[oracle@ns]$ cpio -idmv <10201_database_linux_x86_64.cpio
Xmanager를 실행







안쓰는 네트워크 장치의 설정에서 IP자동할당을 꺼준다.
/etc/sysconfig/network-script/ifcfg-eth0,ifcfg-eth1.....












ⓐ sh ./oracle/app/oracle/oraInventory/orainstRoot.sh
ⓑ sh ./oracle/app/oracle/product/102/root.sh


(동일 SID로 재설치시는 위의 파일에서 SID를 삭제해야 함)