RHEL5上Oracle 11g ASMLib的安裝

來源:互聯網
上載者:User

Oracle 11g Release 1 :http://www.oracle.com/technology/software/products/database/index.html RHEL5下的ASMLib2.0:http://www.oracle.com/technology/global/cn/tech/linux/asmlib/index.html開啟上面的頁面,會發現一個Red Hat Enterprise Linux 4 AS(x86)的連結,點擊它,新開啟的頁面裡有Red Hat Enterprise Linux 5 AS的下載連結了。 相關閱讀:在Red Hat Linux 5.4 (虛擬機器) 上安裝 Oracle 11g R2 RAC (ASM)  一、安裝ASMLib安裝包 Linux下的Oracle如果使用asm來儲存資料,可以安裝asmlib來簡化磁碟管 理,asmlib有3個軟體包組成。其中oracleasm-kernel-version.arch.rpm包含了一個核心模組, 這個模組與系統當前使用的核心密切相關.所以我們一定要用#uname -rm 查看一下核心,然後下載個和它版本一樣的包。 對於RHEL5,我安裝了xen,核心版本為2.6.18-8.el5xen,所以下載的軟體包為: 

oracleasm-2.6.18-8.el5xen-2.0.4-1.el5.i686.rpm
oracleasmlib-2.0.3-1.el5.i386.rpm
oracleasm-support-2.0.4-1.el5.i386.rpm

通過rpm命令進行安裝:

#rpm -Uvh oracleasm-support-2.0.4-1.el5.i386.rpm   oracleasm-2.6.18-8.el5xen-2.0.4-1.el5.i686.rpm   oracleasmlib-2.0.3-1.el5.i386.rpm

二、配置ASMLib

現在已經安裝了 ASMLib 軟體,系統管理員必須執行幾個步驟來使 ASM 驅動程式可用。需要載入 ASM 驅動程式,並且需要裝載驅動程式檔案系統。這由初始化指令碼 /etc/init.d/oracleasm 來處理。

啟動oracle asmlib:

#/etc/init.d/oracleasm start

Creating /dev/oracleasm mount point:                       [  OK  ]

啟用asmlib:

#/etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration:   [ OK ]
Loading module "oracleasm":                        [ OK ]
Mounting ASMlib driver filesystem:                 [ OK ]
Scanning system for ASM disks:                     [ OK ]

 

用 'configure' 選項來運行 /etc/init.d/oracleasm 指令碼。它將要求預設擁有 ASM 驅動程式訪問點的使用者和使用者組。如果資料庫以 'oracle' 使用者和 'dba' 使用者組身份運行,那麼輸出將看起來像這樣:

Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.

Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [ OK ]
Scanning system for ASM disks: [ OK ]

  • 1
  • 2
  • 下一頁

聯繫我們

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