ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [Linux] Centos 6.8 - Oracle 11g R2 설치
    운영체제 2019. 3. 4. 09:08
    반응형

    1.Oracle 11g R2 다운로드

     - http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html


    1_1) linux.x64_11gR2_database_1of2.zip

    1_2) linux.x64_11gR2_database_1of2.zip


    2.Oracle 계정 생성

    # groupadd oinstall

    # groupadd dba

    # useradd -m -g oinstall -G dba oracle

    # passwd oracle


    3.디렉토리 생성

    # mkdir /oracle

    # chown -R oracle.dba /oracle

    # chmod -R 755 /oracle


    4.커널 파리미터 수정


    4_1) /etc/sysctl.conf 파일 수정

    # vi /etc/sysctl.conf


    kernel.shmall = 2097152

    kernel.shmmax = 536870912

    kernel.shmmni = 4096

    fs.aio-max-nr = 1048576

    fs.file-max = 6815744

    kernel.sem = 250 32000 100 128

    net.ipv4.ip_local_port_range = 9000 65500

    net.core.rmem_default = 262144

    net.core.rmem_max = 4194304

    net.core.wmem_default = 262144

    net.core.wmem_max = 1048586


    4_2) 커널 파리미터 수정 내역 적용

    # /sbin/sysctl -p


    5.Oracle 사용자 계정 - Shell Limit 설정


    5_1) /etc/security/limits.conf 파일 수정

    # vi /etc/security/limits.conf


    oracle  soft    nproc   2047

    oracle  hard    nproc   16384

    oracle  soft    nofile  1024

    oracle  hard    nofile  65536


    5_2) /etc/pam.d/login 파일 수정

    # vi /etc/pam.d/login 


    session required    pam_limits.so


    5_2) /etc/selinux/config 파일 수정

    # vi /etc/selinux/config


    SELINUX=disabled


    6.환경변수 설정

    # vi /home/oracle/.bash_profile


    PATH=/usr/sbin:$PATH; export PATH

    TMP=/tmp; export TMP

    TMPDIR=$TMP; export TMPDIR


    ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME

    ORACLE_BASE=/oracle; export ORACLE_BASE

    ORACLE_HOME=$ORACLE_BASE/product/11g; export ORACLE_HOME

    ORACLE_HOME_LISTNER=$ORACLE_HOME/bin/lsnrctl; export ORACLE_HOME_LISTNER

    ORACLE_SID=ora11; export ORACLE_SID

    ORACLE_TERM=xterm; export ORACLE_TERM

    PATH=$ORACLE_HOME/bin:$PATH; export PATH


    7.Oracle 11g R2 설치


    7_1) FTP 전용 프로그램을 사용하여 윈도우에서 다운로드한 Oracle 11g R2 파일을 업로드


    7_2) oracle 계정으로 변경


    7_3) 업로드한 파일 압축해제

    # unzip linux.x64_11gR2_database_1of2.zip

    # unzip linux.x64_11gR2_database_2of2.zip


    7_4) 설치프로그램 실행

    # cd database

    # ./runInstaller


    주의사항(환경변수와 일치하도록 변경)

    1) 설치 시에 Oracle base, Software location, Global database name은 ORACLE_BASE, ORACLE_HOME, ORACLE_SID와 동일하게 입력하세요.

    2) Inventory Directory는 /oracle/oraInventory로 변경하세요.


    7_5) 설치 완료 후 root 권한으로 스크립트 수행

    # /oracle/oraInventory/orainstRoot.sh

    # /oracle/product/11g/root.sh



    반응형

    댓글

Designed by Tistory.