본문 바로가기

Computer Engineering/DB

리눅스(Red hat 4 ) 오라클 설치





0. 필요 패키지 확인 

Checking the Software Requirements

The system must meet the following minimum software requirements, depending on the distribution and version of your operating system:

Note:

Oracle Universal Installer performs checks on your system to verify that it meets the listed requirements. To ensure that these checks pass, verify the requirements before you start Oracle Universal Installer.
  • The operating system must be one of the following:

    • Red Hat Enterprise Linux 3.0 (Update 4 or later)

    • Red Hat Enterprise Linux 4.0 (Update 1 or later)

    • SUSE Linux Enterprise Server 9.0

  • The system must be running the following (or later) kernel version:

    • Red Hat Enterprise Linux 3.0

      2.4.21-27.EL

    • Red Hat Enterprise Linux 4.0

      2.6.9-11.EL

    • SUSE Linux Enterprise Server 9.0

      2.6.5-7.201

  • The following packages (or later versions) must be installed:

    • Red Hat Enterprise Linux 3.0:

      make-3.79.1-17
      compat-db 4.0.14-5.1
      control-center-2.2.0.1-13
      gcc-3.2.3-47
      gcc-c++-3.2.3-47
      gdb-6.1post-1.20040607.52
      glibc-2.3.2-95.30
      glibc-common-2.3.2-95.30
      glibc-devel-2.3.2-95.30
      glibc-devel-2.3.2-95.20 (32 bit)
      compat-db-4.0.14-5
      compat-gcc-7.3-2.96.128
      compat-gcc-c++-7.3-2.96.128
      compat-libstdc++-7.3-2.96.128
      compat-libstdc++-devel-7.3-2.96.128
      gnome-libs-1.4.1.2.90-34.2 (32 bit)
      libstdc++-3.2.3-47
      libstdc++-devel-3.2.3-47
      openmotif-2.2.3-3.RHEL3
      sysstat-5.0.5-5.rhel3
      setarch-1.3-1
      libaio-0.3.96-3
      libaio-devel-0.3.96-3
      
    • Red Hat Enterprise Linux 4.0:

      binutils-2.15.92.0.2-10.EL4
      compat-db-4.1.25-9
      control-center-2.8.0-12
      gcc-3.4.3-9.EL4
      gcc-c++-3.4.3-9.EL4
      glibc-2.3.4-2
      glibc-common-2.3.4-2
      gnome-libs-1.4.1.2.90-44.1
      libstdc++-3.4.3-9.EL4
      libstdc++-devel-3.4.3-9.EL4
      make-3.80-5
      pdksh-5.2.14-30
      sysstat-5.0.5-1
      xscreensaver-4.18-5.rhel4.2
      
    • SUSE Linux Enterprise Server 9

      binutils-2.15.90.0.1.1-32.5
      gcc-3.3.3-43.24
      gcc-c++-3.3.3-43.24
      glibc-2.3.3-98.28
      gnome-libs-1.4.1.7-671.1
      libstdc++-3.3.3-43.24
      libstdc++-devel-3.3.3-43.24
      make-3.80-184.1
      pdksh-5.2.14-780.1
      sysstat-5.0.1-35.1
      xscreensaver-4.16-2.6
      

For the Oracle products that you want to install, the system must meet the following product-specific requirements:

  • PL/SQL native compilation, Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, and Oracle XML Developer's Kit (XDK)

    Intel C++ Compiler 8.1 or later and the version of GNU C and C++ compilers listed previously for the distribution are supported for use with these products.

    Note: ntel C++ Compiler v8.1 or later is supported. However, it is not required for installation. On Red Hat Enterprise Linux 3, OCCI is supported with version 3.2 of the GNU C++ compiler. This is the default compiler version. OCCI is also supported with Intel Compiler v8.1 with gcc 3.2.3 standard template libraries.

    Oracle XML Developer's Kit is not supported with GCC on Red Hat Linux 4.0. It is supported only with Intel C++ Compiler (ICC).

    On Red Hat Enterprise Linux 4.0, Oracle C++ Call Interface (OCCI) does not support GCC 3.4.3. To use OCCI on Red Hat Enterprise Linux 4.0, you need to install GCC 3.2.3.

  • Oracle JDBC/OCI Drivers

    You can use the following version of JDK with the Oracle JDBC/OCI drivers:

    • Sun JDK 1.5.0 (64-bit)

    • Sun JDK 1.5.0 (32-bit)

    • Sun JDK 1.4.2_09 (32-bit)

To ensure that the system meets these requirements, follow these steps:

  1. To determine which distribution and version of Linux is installed, enter the following command:

    # cat /proc/version
    

    Note:

    Only the distributions and versions listed earlier in this section are supported. Do not install the software on other versions of Linux.
  2. To determine whether the required kernel version is installed, enter the following command :

    # uname -r
    

    The following is sample output obtained by running this command on a Red Hat Enterprise Linux 3.0 system:

    2.4.21-27.EL
    

    In this example, the output shows the kernel version () and errata level (27.EL).

  3. To determine whether the required packages are installed, enter commands similar to the following:

    # rpm -q package_name
    

    If a package is not installed, or if the version is lower than the required version, then install it from your Linux distribution media or download the required package from your Linux vendor's Web site.

  4. If you require a CSD for WebSphere MQ, then refer to the following Web site for download and installation information:

    http://www.ibm.com/software/integration/mqfamily/support/summary/lin.html





1. os 버전 낮추어줌
$echo "redhat-3" > /etc/redhat-release

2. oracle 계정, 설치 그룹, dba 그룹 생성과 오라클 비밀 번호 설정
$groupadd dba
$groupadd oinstall
$useradd -g oinstall -G dba oracle
$passwd oracle
........ 설정.........어쩌구...

3.오라클 홈 폴더 생성과 소유, 권한 부여
$mkdir -p /oracle

$chown -R oracle.dba /oracle

$chmod 755 /oracle

4. 커널 파라미터 수정
$vi /etc/sysctl.conf

]] 두번 눌러서 마지막에서 아래와 같이 입력

kernel.shmmax=2047483648
kernel.sem = 250 320000 100 128
fs.file-max = 65536

5. 입력값 확인
$/sbin/sysctl -p

6. oracle 환경 변수 수정
$i /home/oracle/.bash_profile

아래와 같이 입력



export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
export DISPLAY=:0.0





7. x를 띄우기 위해 설정
$ xhost +

8.oracle 로 접속하기 위해 log out 후 oracle로 로그인
사용자 삽입 이미지

9. 설치 파일이 있는 폴더로 이동하여 인스톨 실행
/media/cdrom/database/runInstaller


10. 설치 화면이 뜨면 아래 괕이 설치 한다.
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지



####
여기서 중요한 한가지 !!! 터미널을 하나 열어서 root  권한으로 2개의 스크립트를 수행한다.
$/oracle/oraInventory/orainstRoot.sh

$/oracle/product/10.2.0.db_1/root.sh


사용자 삽입 이미지
사용자 삽입 이미지


11. 설치가 완료 되었다.