DB/Oracle 2012. 7. 3. 17:03

모듈 설치
yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make numactl-devel sysstat unixODBC unixODBC-devel


/etc/sysctl.conf 파일에 주석처리 및 추가 (있는 것들은 남겨둠
#net.bridge.bridge-nf-call-ip6tables = 0
#net.bridge.bridge-nf-call-iptables = 0
#net.bridge.bridge-nf-call-arptables = 0
kernel.shmmax = 536870912
kernel.shmall = 2097152
fs.aio-max-nr = 1048576
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 2662144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586

> sysctl -p


/etc/security/limits.conf 파일에 추가
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536


/etc/pam.d/login 파일에 추가
session required pam_limits.so


계정 생성
> groupadd oinstall
> groupadd dba
> useradd -g oinstall -G dba oracle
> passwd oracle
...


설치 디렉토리 생성 (여기서는 /oracle)
> mkdir /oracle
> mkdir /oracle/11g
> chown -R oracle:oinstall /oracle
> chmod -R 775 /oracle


oracle 계정 .bash_profile 수정 (굵은 글씨 알맞게 수정)
ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME
ORACLE_BASE=/oracle/11g; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH


다운 받은 oracle파일을 압축해제 하고, ./runInstaller 를 실행한다.
설정시 위의 .bash_profile 의 내용과 일치하도록 설치..

'DB > Oracle' 카테고리의 다른 글

stored procedure invalid 조회  (0) 2012.07.03
listener.ora  (0) 2012.07.03
잘 까먹는 것들  (0) 2012.07.03
posted by hani^___^
: