oracle 11g R2 標準版 64位linux安裝

來源:互聯網
上載者:User

標籤:oracle 11g r2 標準版 64位linux安裝

安裝環境:


Redhat es 5.5 64位 ,系統記憶體8G,swap 10G ,oracle 11G R2 標準版



一,Oracle 安裝前的準備

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

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.1

gcc-c++-4.1.1

glibc-2.5-12

glibc-2.5-12 (32 bit)

glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5-12 (32 bit)

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libgcc-4.1.1

libgcc-4.1.1 (32 bit)

libstdc++-4.1.1

libstdc++-4.1.1 (32 bit)

libstdc++-devel 4.1.1

make-3.81

sysstat-7.0.0


註:系統預設安裝完會少一下包:

fonts-chinese-3.02-12.el5.noarch.rpm

fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

libaio-devel-0.3.106-5.i386.rpm

libaio-devel-0.3.106-5.x86_64.rpm

sysstat-7.0.2-3.el5.x86_64.rpm

unixODBC-2.2.11-7.1.i386.rpm

unixODBC-2.2.11-7.1.x86_64.rpm

unixODBC-devel-2.2.11-7.1.i386.rpm

unixODBC-devel-2.2.11-7.1.x86_64.rpm


二,建立oracle 使用者 和組


執行 如下 shell 命令:


su - root


/usr/sbin/groupadd oinstall


/usr/sbin/groupadd dba


/usr/sbin/groupadd oper


/usr/sbin/useradd -g oinstall -G dba,oper oracle


設定密碼


passwd oracle



三,系統參數和設定檔

添加如下到檔案/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



/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



/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



四,目錄及環境變數配置:


大小至少3G以上:

chown -R oracle:oinstall /home/oracle/oracle_base 

chmod -R 775 /home/oracle/oracle_base /


安裝


以oracle 登陸

修改環境變數:

/home/oracle/.bash_profile


# .bash_profile


# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi



# User specific environment and startup programs



#DISPLAY=localhost:0.0

#export DISPLAY

export ORACLE_SID=orcl

export ORACLE_BASE= /home/oracle/oracle_base

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:ORACLE_HOME/lib

export ORACLE_HOME=/home/oracle/oracle_base/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使用者登入系統,我使用的是Xmanger軟體來登入


(通過 xhsot + 來測試是否可以正常調用圖形化介面,如果出現

access control disabled, clients can connect from any hos)

表示可以正常調用


進入到oracle的instal檔案夾下


./runlnstaller



五,安裝oracle

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

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



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



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

root.sh和

orainstRoot.sh

斷行符號即可


到此基本就完成了。


註:在按照到68%和76%時,非常慢,耐心等待。


根據硬體的不同,我統計過三種情況,安裝時間不會超過2小時。


六,oracle建立執行個體


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


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


./dbca


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


登陸em的方式一樣的,這是連接埠不一樣,這是及可以登入預設執行個體,也可以登入你建立的執行個體了。



2010-09-18


本文出自 “五片稜角” 部落格,請務必保留此出處http://hi289.blog.51cto.com/4513812/1832558

oracle 11g R2 標準版 64位linux安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.