zoukankan      html  css  js  c++  java
  • 回顾RAC安装过程中对ASM的处理

    1 首先建立好节点间共享的磁盘,要注意从各节点看到的磁盘的序号、名称一致。

    2 通过某一个节点,对共享磁盘进行格式化。

    3 在Grid Infrastructure 中,

       有一个为OCR选择存储介质的选择画面。

    You can place Oracle Cluster Registry(OCR) files and voting disk files
    on Oracle ASM storage, or on a file system

    .Oracle Automatic Storage Management(Oracle ASM)
    Choose this option to configure OCR and voting disk files on Oracle ASM storage.

    .Shared File System
    Choose this option to configure OCR and voting disk files on an existing shared file system.

    此时,可以选择 在ASM 来存储 OCR 和 voting disk。

    然后,在接下来的画面里,要为 OCR和 voting disk 建立一个磁盘组,可以从在1和2中建立好的磁盘中选择一部分磁盘来组成这个组,如果考虑到容错冗余,可以选择冗余为normal或high。

    4 Grid Infrastructure 安装完毕之后,

      解析来,可以考虑安装 Oracle软件了,此时先不建立数据库。

      这个对应着Oracle的实例,各个节点都要安装。

    5 此时,可以使用asmca命令,通过图形化的界面,来配置为了数据库所使用的ASM磁盘组。

      可以设置磁盘组名为DATA,然后把在1和2中建立好的磁盘组成该磁盘组,冗余选择normal或者high。

      也可以再建立一个FLASH组,为FLASH BACK Area单独指定一组磁盘。

      此时,因为Grid Infrastructure已经建立完毕,故此从各节点都可以看到以上几个磁盘组已经mount好了。

    6 在某节点,通过DBCA图形界面来创建数据库,

          Select the database type that you would like to create or administer:

              . Oracle Real Application Clusters (RAC) database
              . Oracle RAC One Node database
              . Oracle single instance database

    7 选择数据库时,要选择合适的类型:

    中间,有这样一个画面:   

    Cluster database configuration can be Policy-Managed or Admin-Managed.
    A Policy-Managed database is dynamic with instances managed automatically
    based on pools of servers for effective resource ultization.

    Admin-Managed database results in instances tied to specific servers.

    ...

    Select the nodes on which you want to create the cluster database.
    The local node "node1" will always be used, whether or not it is selected.

    ...

    缺省地选择 Admin-Managed类型,然后把所有的节点都选上,让Oracle的数据库安装在所有的节点上。

    8 执行存储类型的时候,出现如下的画面:

    Specify storage type and locations for database files.
    Storage Type: Automatic Storage Management(ASM)
    ...

    Storage Locations:
    . Use Database File Locations from Template
    . Use Common Location for All Database Files
    . Use Oracle-Managed Files
    Database Area:

    选择 Storage 类型为  ASM,Storage Locations 为Oracle-Managed Files,
    在Database Area后输入前面设置的磁盘组 DATA。

    9 再指定数据库的闪回区,指定之前设置的磁盘组FLASH。

    这样,磁盘组、ASM、数据库存储就结合在一起了。

  • 相关阅读:
    事件记录
    C++和extern C
    中断控制器
    NAND FLASH控制器
    MMU实验
    存储管理器实验
    GPIO实验
    linux与Windows使用编译区别及makefile文件编写
    ubuntu如何为获得root权限
    VI常用命令及linux下软件
  • 原文地址:https://www.cnblogs.com/gaojian/p/3512198.html
Copyright © 2011-2022 走看看