Red Hat Enterprise Linux 4(64位) 下安裝 Oracle 10g

來源:互聯網
上載者:User

標籤:oracle   ip地址   視頻教程   根目錄   參考資料   

參考資料:ORACLE 10G官方文檔

參考資料:甲骨論2012版Oracle免費視頻教程

一、安裝linux

1、注意分區:記憶體小於4G,則swap分區=記憶體*2;記憶體大於4G,則swap分區=記憶體大小;

2、tmp目錄大於10G;

3、根目錄>25G;

4、開發套件全部選上;

5、安裝完成後,再多安裝一個sysstat包。

二、安裝oracle

1、檢查以下必備包的安裝:(命令是rpm -qa|grep xxx)

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

libaio-0.3.105-2.x86_64

libaio-devel-0.3.105-2.x86_64


2、修改IP地址和hosts檔案

3、新增組和使用者

groupadd oinstall

groupadd dba

useradd -g oinstall -G dba oracle 

4、調整linux核心參數:vi /etc/sysctl.conf新增如下內容:

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_default = 262144

net.core.wmem_max = 262144

5、編輯/etc/security/limits.conf,新增如下內容:

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  1024

oracle              hard    nofile  65536

6、編輯/etc/pam.d/login,新增如下內容:

session    required     pam_limits.so

7、編輯/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

8、建立目錄並更改屬主、屬組,設定許可權等:

mkdir /u01/app/oracle -p

chown -R oracle:oinstall /u01

chmod 755 /u01

9、設定oracle使用者環境變數,先切換至oracle使用者,再vi .bash_profile,在末尾增加

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1

export ORACLE_SID=jiagulun

export NLS_LANG=american_america.zhs16gbk

10、上傳oracle安裝檔案至/oraapp目錄(如果沒有請自行建立),解壓、安裝

上傳命令rz

解壓命令zcat 10201_database_linux_x86_64.cpio.gz | cpio -idmv

11、使用Xmanager遠端連線linux,root使用者登入,開啟終端,切換至oracle使用者,然後執行安裝

cd /oraapp/database/

./runInstaller執行安裝

12、安裝時,選擇定製,選擇isql*plus組件,選擇僅安裝資料軟體

13、安裝完成,在點擊確定之前,先執行兩個指令碼

su - oracle

su

cd /u01/app/oracle/oraInventory/

./orainstRoot.sh

cd /u01/app/oracle/product/10.2.0/db_1/

./root.sh

14、點擊確定,完成安裝

15、more /u01/app/oracle/product/10.2.0/db_1/install/portlist.ini查看isql*plus連接埠號碼

16、設定oracle使用者環境變數,vi .bash_profile,在末尾增加

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

17、使用dbca(資料庫配置助手)設定資料庫




Red Hat Enterprise Linux 4(64位) 下安裝 Oracle 10g

聯繫我們

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