오라클/오라클설치

RHEL4 에 Oracle10g (10.2.0.1) 설치 (Silent)

김포춘 2014. 9. 1. 11:49
반응형

groupadd -g 5000 dba

useradd -g dba oracle

passwd oracle

 

vi /etc/oraInst.loc

inventory_loc=/home/oracle/oraInventory

inst_group=dba

chown -R oracle.dba /etc/oraInst.loc

 

vi /etc/sysctl.conf

kernel.shmmax=536870912

kernel.shmmni=4096

kernel.shmall=2097152

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

 

vi /etc/security/limits.conf

oracle10g soft nproc 2047

oracle10g hard nproc 16384

oracle10g soft nofile 1024

oracle10g hard nofile 65536

 

vi /etc/pam.d/login

session    required    pam_limits.so

 

sysctl -p

 

root 계정에서 rpm설치를 위해 cd3을 넣어줌

 

cd /media/cdrecoder/RedHat/RPMS

rpm  -ivh libaio-devel-0.3.105-2.i386.rpm

 

cd /home/oracle/patch

unzip p4198954_40_LINUX.zip
rpm -ivh compat-libcwait-2.1-1.i386.rpm
rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm

 

cd /home/oracle

vi .bash_profile

export EDITOR=vi

export LD_ASSUME_KERNEL=2.4.19

export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10g
export ORACLE_SID=testdb
export LANG=ko_KR.eucKR
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN_AMERICA.KO16MSWIN949
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export PATH=$PATH:$ORACLE_HOME/bin
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

 

cd /home/oracle

unzip 10201_database_linux32.zip

chown –R oracle.dba /home/oracle/  

 

---------------------------------------------

 

vi /home/oracle/database/response/enterprise.rsp

 

 

 

 

 

Putty 열어서 oracle 계정으로 접속

cd /home/oracle/database

./runInstaller -silent -responseFile /home/oracle/database/response/enterprise.rsp

 

 

 

아래와 같이 설치 성공하고 루트계정 터미널을 열어서 /home/oracle/product/10g/root.sh 입력

 

sqlplus /nolog 버전확인

 

반응형