ORACLE2009. 11. 11. 23:34

//root 로 로그인
#su - 

 /*커널 매개변수 확인 및 설정(변수 값이 클경우 안바꿔도 상관없음)
 #/sbin/sysctl -p
 #/sbin/sysctl -a | grep shm
 #/sbin/sysctl -a | grep sem
 #/sbin/sysctl -a | grep file-max
 #/sbin/sysctl -a | grep ip_local_port_range
 */


 //매개변수 설정
#vi /etc/sysctl.conf 

 #kernel.shmall = 2097152
 #kernel.shmmax = 2147483648
 kernel.shmmni = 4096
 # semaphores: semmsl, semmns, semopm, semmni
 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/security/limits.conf  

 *               soft    nproc   2047
 *               hard    nproc   16384
 *               soft    nofile  1024
 *               hard    nofile  65536


//설정
#vi /etc/pam.d/login 

 session    required     /lib/security/pam_limits.so


#SELINUX=disabled
 

//필수 패키지 설치
#yum install setarch-2* make-3* glibc-2* libaio-0* compat-libstdc++-33-3* compat-gcc-34-3*
compat-gcc-34-c++-3* gcc-4* libXp-1* openmotif-2* compat-db-4*


//오라클 그룹 생성
#groupadd dba


//오라클 유저 생성
#useradd -g dba oracle
#passwd oracle  <--패스워드는 각자알아서


//설치디렉토리 생성
#mkdir -p /u01/app/oracle/product/10.2.0/db_1


//권한 설정
#chown -R oracle:dba /u01


//네트워크 확인
#xhost +127.0.0.1


//release 명 변경
#vi /etc/redhat-release
 centOS 삭제후 -> redhat-4 추가


//login to ORACLE


//oracle 환경 변수 설정
$vi /home/oracle/.bash_profile

 # Oracle Settings
 TMP=/tmp; export TMP
 TMPDIR=$TMP; export TMPDIR

 ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
 ORACLE_HOME=$ORACLE_BASE/product/10.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
 NLS_LANG=American_America.AL32UTF8; export NLS_LANG 

 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 설치파일 download

http://www.oracle.com/technology/software/products/database/index.html

10201_database_linux32.zip

압축풀고 압축푼 폴더에가서
 

//oracle 설치 시작
$./runInstaller


'ORACLE' 카테고리의 다른 글

오라클 설치 정리  (0) 2009.11.21
The Index_DESC Hint  (0) 2009.11.11
Oracle 10g 의 휴지통 기능  (0) 2009.11.11
프로시져, 트리거의 이해-2009/02/20  (0) 2009.11.11
PL/SQL의 이해-2009/02/19  (0) 2009.11.11
Posted by Tiwaz