?
[root@12cAsm /]#
?
--检查:
[root@12cAsm /]# ocrcheck
Status of Oracle Cluster Registry is asfollows :
Version : 4
Total space (kbytes) : 409568
Used space (kbytes) : 200
Available space (kbytes) : 409368
ID : 1150490114
Device/File Name : /u01/app/grid/12.0.1/cdata/localhost/local.ocr
Device/Fileintegrity check succeeded
?
Device/Filenot configured
?
Device/Filenot configured
?
Device/File not configured
?
Device/Filenot configured
?
Cluster registry integrity check succeeded
?
Logical corruption check succeeded
?
[root@12cAsm /]#
?
?
[root@12cAsm /]# crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server Statedetails
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ons
OFFLINE OFFLINE 12casm STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 OFFLINE OFFLINE STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE 12casm STABLE
--------------------------------------------------------------------------------
[root@12cAsm /]#
?
?
?
9 安装Oracle 软件
?
以Oracle 用户执行安装程序。

?
?
?
注意,选择只安装数据库软件。

?
然后都是下一步的操作。
?

?

?
?
执行脚本:
?
[root@12cAsm /]#/u01/app/oracle/12.0.1/db_1/root.sh
Performing root user operation.
?
The following environment variables are setas:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/12.0.1/db_1
?
Enter the full pathname of the local bindirectory: [/usr/local/bin]:
The contents of "dbhome" have notchanged. No need to overwrite.
The contents of "oraenv" have notchanged. No need to overwrite.
The contents of "coraenv" havenot changed. No need to overwrite.
?
Entries will be added to the /etc/oratabfile as needed by
Database Configuration Assistant when adatabase is created
Finished running generic part of rootscript.
Now product-specific root actions will beperformed.
[root@12cAsm /]#
?
?
10 创建ASM DISK GROUPS
?
使用grid用户执行asmca,创建磁盘组Data。
?

?

?

?

?


?

?
?
ASM disk group 搞定。
?
?
检查ASM DISK GROUPS的情况:
?
[grid@12cAsm bin]$ crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server Statedetails
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE 12casm STABLE
ora.asm
ONLINE ONLINE 12casm Started,STABLE
ora.ons
OFFLINE OFFLINE 12casm STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE 12casm STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE 12casm STABLE
--------------------------------------------------------------------------------
[grid@12cAsm bin]$
?
?
?
11 创建基于ASM 的数据库实例
?
已oracle 用户运行dbca,创建实例。

?

?
?

?
?
?