龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 数据库类 > Oracle 技术 >

Oracle ASM 和Oracle紧密集成的缘由

时间:2011-04-12 23:18来源:未知 作者:admin 点击:
分享到:
我们都知道Oracle ASM和 Oracle 数据库是紧密集成的,并且和 Oracle 数据管理的相关工具套件一起配合工作。它可以是简化的数据库存储管理,并且可以提供原始磁盘 I/O 的相关性能。 配置

我们都知道Oracle ASM 和 Oracle 数据库是紧密集成的,并且和 Oracle 数据管理的相关工具套件一起配合工作。它可以是简化的数据库存储管理,并且可以提供原始磁盘 I/O 的相关性能。

配置 ASMLib。以 root 用户身份在两个节点上配置Oracle ASMLib。

  1. # /etc/init.d/oracleasm configure  
  2. Configuring the Oracle ASM library driver.  
  3. This will configure the on-boot properties of the Oracle ASM library  
  4. driver. The following questions will determine whether the driver is  
  5. loaded on boot and what permissions it will have. The current values  
  6. will be shown in brackets ('[]'). Hitting without typing an  
  7. answer will keep that current value. Ctrl-C will abort.  
  8. Default user to own the driver interface []: oracle  
  9. Default group to own the driver interface []: dba  
  10. Start Oracle ASM library driver on boot (y/n) [n]: y  
  11. Fix permissions of Oracle ASM disks on boot (y/n) [y]: y  
  12. Writing Oracle ASM library driver configuration: [ OK ]  
  13. Loading module "oracleasm": [ OK ]  
  14. Mounting ASMlib driver filesystem: [ OK ]  
  15. Scanning system for ASM disks: [ OK ]  

创建Oracle ASM 磁盘。以 root 用户身份在任何一个节点上创建 ASM 磁盘。

  1. # /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1  
  2. Marking disk "/dev/sdc1" as an ASM disk: [ OK ]  
  3. # /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1  
  4. Marking disk "/dev/sdd1" as an ASM disk: [ OK ]  
  5. # /etc/init.d/oracleasm createdisk VOL3 /dev/sde1  
  6. Marking disk "/dev/sde1" as an ASM disk: [ OK ]  
  7. Verify that the ASM disks are visible from every node.   
  8. # /etc/init.d/oracleasm scandisks  
  9. Scanning system for ASM disks: [ OK ]  
  10. # /etc/init.d/oracleasm listdisks  
  11. VOL1  
  12. VOL2  
  13. VOL3  
  14. VOL4 

以上的相关内容就是对配置 Oracle 自动存储管理 (ASM)的介绍,望你能有所收获。

精彩图集

赞助商链接