linux上安裝Oracle 11g R2 標準版 64位

來源:互聯網
上載者:User

標籤:

一.Oracle 安裝前的準備

檢查一下包,必須全部安裝:

binutils-2.20.51.0.2-5.43.el6.x86_64

compat-libstdc++-296-2.96-144.el6.i686

compat-libstdc++-33-3.2.3-69.el6.x86_64

elfutils-libelf-0.161-3.el6.x86_64

elfutils-libelf-devel-0.161-3.el6.x86_64

gcc-4.4.7-16.el6.x86_64

gcc-c++-4.4.7-16.el6.x86_64

glibc-2.12-1.166.el6_7.3.x86_64

glibc-2.12-1.166.el6_7.3.i686

glibc-common-2.12-1.166.el6_7.3.x86_64

glibc-devel-2.12-1.166.el6_7.3.x86_64

glibc-devel-2.12-1.166.el6_7.3.i686

libaio-0.3.107-10.el6.i686

libaio-0.3.107-10.el6.x86_64

libaio-devel-0.3.107-10.el6.i686

libaio-devel-0.3.107-10.el6.x86_64

libgcc-4.4.7-16.el6.i686

libgcc-4.4.7-16.el6.x86_64

libstdc++-4.4.7-16.el6.x86_64

libstdc++-4.4.7-16.el6.i686

libstdc++-devel-4.4.7-16.el6.x86_64

libstdc++-devel-4.4.7-16.el6.i686

make-3.81-20.el6.x86_64

sysstat-9.0.4-27.el6.x86_64

unixODBC-2.2.14-14.el6.i686

unixODBC-2.2.14-14.el6.x86_64

unixODBC-devel-2.2.14-14.el6.i686

unixODBC-devel-2.2.14-14.el6.x86_64

 

二.建立oracle使用者和組

su - root

groupadd oinstall

groupadd dba

useradd -g oinstall -G dba oracle

echo oracle|passwd --stdin oracle

 

三.系統參數和設定檔

1.添加如下到檔案/etc/sysctl.conf

kernel.sysrq = 0

kernel.core_uses_pid = 1

net.ipv4.tcp_syncookies = 1

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 4294967295

kernel.shmall = 268435456

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 4194304

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

fs.file-max = 6815744

fs.aio-max-nr = 1048576

/sbin/sysctl -p

 

2.添加如下到檔案/etc/security/limits.conf

session required /lib64/security/pam_limits.so

session required pam_limits.so

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

 

3.添加如下到檔案/etc/profile

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi

 

四.修改環境變數

/home/oracle/.bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

export ORACLE_SID=orcl

export ORACLE_BASE=/home/oracle/

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:ORACLE_HOME/lib

export ORACLE_HOME=/home/oracle/product/11.2.0/dbhome_1

export ORACLE_HOME_LISTNER=$ORACLE_HOME

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

umask 022

export PATH

sh /home/oracle/.bash_profile

 

五.開始安裝

進入到oracle的instal檔案夾下

./runlnstaller

如果不出意外,會出現oracle的安裝圖形化介面,

按照提示一步一步安裝即可

在安裝第二步會oracle會檢測環境是否符合,如果提示swap或大,或小,忽略,下一步

完成之後,按照提示用root執行

root.sh和

orainstRoot.sh

斷行符號即可

到此基本就完成了。

 

六.建立執行個體

通過圖形化來建立執行個體

cd $home_ORACLE/product/11.2.0/dbhome_1/bin/

./dbca

然後會出現建立執行個體的圖形化介面,按照提示進行下一步就可以了。

linux上安裝Oracle 11g R2 標準版 64位

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.