Oracle Database 11g Release 2 installation On CentOS 6.6(x64 platform),centosx64

來源:互聯網
上載者:User

Oracle Database 11g Release 2 installation On CentOS 6.6(x64 platform),centosx64
Oracle Database 11g Release 2 installation On CentOS 6.6(x64 platform)


(Note: the current user is "tdtc100")


1. down install files
   (1) linux.x64_11gR2_database_1of2.zip
   (2) linux.x64_11gR2_database_2of2.zip


2. unzip files
   (1) $> unzip linux.x64_11gR2_database_1of2.zip
   (2) $> unzip linux.x64_11gR2_database_2of2.zip


3. Install dependencies(Manually)
   Optionally, Oracle automatically, please see the following "Using Oracle Repository"


    (1) root$> yum install libaio-*
        a). libaio-devel(V0.3.107-10.el6)
                
    (2) root$> yum install compat-libstdc++-*
         Installing:
            a). compat-libstdc++-296(V2.96-144.el6)
            b). compat-libstdc++-33(V3.2.3-69.el6)
         Installing for dependencies:
            a). glibc(V2.12-1.132.el6)
            b). libgcc(V4.4.7-4.el6)
            c). nss-softokn-freebl(V3.14.3-9.el6)
       
    (3) root$> yum install elfutils-libelf-devel-*
           
         Installing:
            a). elfutils-libelf-devel(V0.152-1.el6)
            b). elfutils-libelf-devel-static(V0.152-1.el6)


    (4) root$> yum install gcc-c++-*
          Installing:
            a). gcc-c++(V4.4.7-4.el6)
          Install the following dependencies
            a). libstdc++-devel(V4.4.7-4.el6)


    (5) root$> yum install compat-libcap*
           Installing:
            a). compat-libcap1(V1.10-1)
    (6) root$> yum install libtir*
           Installing:
            a) libtirpc(V0.2.1-6.el6_4)
            b) libtirpc-devel(V0.2.1-6.el6_4)
            Installing for dependencies:
            a). libgssglue(V0.1-11.el6)
           
    (7) root$> yum install libevent*
           Installing:
            a). libevent(V1.4.13-4.el6)
   libevent-devel(V1.4.13-4.el6)
            a) libevent-doc(V1.4.13-4.el6)
            b) libevent-header(V1.4.13-4.el6)

    (8) root$> yum install ksh
           Installing:
            a). ksh(V20120801-10.el6)
    (9) root$> yum install nfs-*
  Installing:
   a) nfs-utils(V1:1.2.3-39.el6)
   b) nfs-utils-lib(V1.1.5-6.el6)
   c) nfs-utils-lib-devel(V1.1.5-6.el6)
   d) Installing for dependencies:
   e) keyutils(V1.4-4.el6)
   f) libgssglue-devel(V0.1-11.el6 )
   g) rpcbind(V0.2.0-11.el6)


    (10) root$> yum install unixODBC-*
  Installing:
   a) unixODBC(V2.2.14-12.el6_3)
   b) unixODBC-devel(V2.2.14-12.el6_3)
   c) unixODBC-kde(V2.2.14-12.el6_3)
  Installing for dependencies:
   a) libmng(V1.0.10-4.1.el6)
   b) phonon-backend-gstreamer(V1:4.6.2-26.el6_4)
   c) qt(V1:4.6.2-26.el6_4)
   d) qt-sqlite(V1:4.6.2-26.el6_4)
   e) qt-x11(V1:4.6.2-26.el6_4)


4. setup ora11g
        $> cd /database
        $> ./runInstaller


        Packages(Ignore list)
        a). libaio-0.3.105
        b). compat-libstdc++-33-3.2.3
        c). libaio-devel-0.3.105
        d). libgcc-3.4.6
        e). libstdc++-3.4.6
        f). unixODBC-2.2.11
        g). unixODBC-devel-2.2.11
        h). pdksh-5.2.14
        
5. Set the environment variable
   (1) root$> /home/tdtc100/app/oraInventory/orainstRoot.sh
   (2) root$> /home/tdtc100/app/tdtc100/product/11.2.0/dbhome_1/root.sh




--------------------------Setup--Oracle------------


6. Modify the file ".bash_profile"
   (File location: /home/tdtc100/.bash_profile)
   After the "#User specific environment and startup programs",
   Add the following content:


   # $ORACLE_SID
   ORACLE_SID=orcl
   export ORACLE_SID


   # $ORACLE_HOME
   ORACLE_HOME=$HOME/app/tdtc100/product/11.2.0/dbhome_1
   export ORACLE_HOME


   PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin


7. Modify the file "oratab"
   (File location: /etc/oratab)
   orcl:app/tdtc100/product/11.2.0/dbhome_1:N
   =>
   orcl:app/tdtc100/product/11.2.0/dbhome_1:Y


>>>>>>>>>>>>>>>>>>>>>>>>>>Restart==Machine=========
--------------------------Start--Oracle------------
1. Modify the "dbstart" and "dbshut" files
   (File location: $ORACLE_HOME/bin)
   (Line: 80 & 50)
   ORACLE_HOME_LISTNER=$1
   =>
   export ORACLE_HOME_LISTNER=$ORACLE_HOME


2. Add firewall rules
   (File location: /etc/sysconfig/iptalbes)
   root$> iptables -A INPUT -p tcp --dport 1521 -j ACCEPT
   root$> service iptables save


3. $> $ORACLE_HOME/bin/dbstart


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.