回顾RAC安装过程中对ASM的处理
返回:Oracle 索引页
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、数据库存储就结合在一起了。
返回:Oracle 索引页
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
2013-01-09 用sed 给文本文件加行号
2013-01-09 grep 与正则表达式分组
2013-01-09 从Linux 访问Windows的文件夹和Windows的共享打印机