1、Oracle Restart简介
Oracle Restart improves the availability of your Oracle database. When you install the Oracle Grid Infrastructure for a standalone server, it includes both Oracle ASM and
Oracle Restart. (Oracle Restart提高了oracle数据库的可用性,当你给单实例(非rac)安装GI的时候,就包括了asm和Oracle Restart)
Oracle Restart runs out of the Oracle Grid Infrastructure home, which you install separately from Oracle Database homes.
(Oracle Restart在GI的oracle home的外面运行,你安装的时候会安装在oracle Database home外面)
Oracle Restart provides managed startup and restart of a single-instance (non-clustered) Oracle Database, Oracle ASM instance, service, listener, and any otherprocess running on the server. If an interruption of a service occurs after a hardware or software failure, Oracle Restart automatically takes the necessary steps to restart the
component.
(Oracle Restart提供如下管理功能:单实例数据库、asm实例、服务、监听、server上的process的启动和重启,如果硬件或者软件的失败导致的失败发生,Oracle Restart自动重启这些组件)
With Server Control Utility (SRVCTL) you can add a component, such as an Oracle ASM instance, to Oracle Restart. You then enable Oracle Restart protection for theOracle ASM instance. With SRVCTL, you also remove or disable Oracle Restart protection.
可以用SRVCTL命令把相关组件,比如一个asm实例添加到或移除Oracle Restart的保护范围内。
2、启动asm实例
单实例数据库下,默认的asm的SID叫:+ASM
rac环境下,默认的asm的SID叫:+ASMnode_number(node_number就是数据库的节点号,比如+ASM1 +ASM2)
$ORACLE_HOME就是GI安装的home目录。
比如某环境的目录结构:
数据库db的oracle home: /u01/app/db/11.2.0
asm实例的$ORACLE_BASE: /u01/app/grid/grid
asm实例的$ORACLE_HOME: /u01/app/grid/crs/11.2.0
当运行startup命令的时候,不是去mount和open数据库,而是去mount asm的disk group!
asm实例已经启动的话,可用alter diskgrop .... mount命令去挂载磁盘组。
当启动asm实例的时候,数据库实例没必要running。