11gR2 + ASM 实例启动和关闭,需要采用如下命令:
crs_stop -all
crs_start -all
[Hywdatadg]/home/grid$>crs_stat -t -v
Name Type R/RA F/FT Target State Host
----------------------------------------------------------------------
ora.ARCH.dg ora....up.type 0/5 0/ OFFLINE OFFLINE
ora.CRS.dg ora....up.type 1/5 0/ ONLINE OFFLINE
ora.DATA.dg ora....up.type 0/5 0/ OFFLINE OFFLINE
ora....ER.lsnr ora....er.type 0/5 0/ ONLINE ONLINE hywdatadg
ora.asm ora.asm.type 0/5 0/ OFFLINE OFFLINE
ora.cssd ora.cssd.type 0/5 0/5 ONLINE ONLINE hywdatadg
ora.dgprd1.db ora....se.type 0/2 0/1 OFFLINE OFFLINE
ora.diskmon ora....on.type 0/10 0/5 ONLINE ONLINE hywdatadg
1.启动
mydb:grid:/grid>crs_start -all
Attempting to start
`ora.LISTENER.lsnr` on member `mydb`
Attempting to start `ora.cssd` on member
`mydb`
Attempting to start `ora.diskmon` on member `mydb`
Start of
`ora.LISTENER.lsnr` on member `mydb` succeeded.
Start of `ora.diskmon` on
member `mydb` succeeded.
Start of `ora.cssd` on member `mydb`
succeeded.
Attempting to start `ora.asm` on member `mydb`
Start of
`ora.asm` on member `mydb` succeeded.
Attempting to start `ora.DATA.dg` on
member `mydb`
Start of `ora.DATA.dg` on member `mydb` succeeded.
2.查看状态
mydb:grid:/grid>crs_stat -t
Name
Type Target State Host
------------------------------------------------------------
ora.DATA.dg
ora....up.type ONLINE ONLINE mydb
ora....ER.lsnr ora....er.type
ONLINE ONLINE mydb
ora.asm ora.asm.type ONLINE
ONLINE mydb
ora.cssd ora.cssd.type ONLINE ONLINE
mydb
ora.diskmon ora....on.type ONLINE ONLINE mydb
3.关闭
mydb:grid:/grid>crs_stop -all
Attempting to stop `ora.LISTENER.lsnr` on member `mydb`
Attempting to stop
`ora.diskmon` on member `mydb`
Attempting to stop `ora.DATA.dg` on member
`mydb`
Stop of `ora.DATA.dg` on member `mydb` succeeded.
Attempting to
stop `ora.asm` on member `mydb`
Stop of `ora.asm` on member `mydb`
succeeded.
Attempting to stop `ora.cssd` on member `mydb`
Stop of
`ora.cssd` on member `mydb` succeeded.
Stop of `ora.LISTENER.lsnr` on member
`mydb` succeeded.
Stop of `ora.diskmon` on member `mydb` succeeded.
4.查看状态
mydb:grid:/grid>crs_stat -t
Name Type
Target State Host
------------------------------------------------------------
ora.DATA.dg
ora....up.type OFFLINE OFFLINE
ora....ER.lsnr ora....er.type
OFFLINE OFFLINE
ora.asm ora.asm.type OFFLINE
OFFLINE
ora.cssd ora.cssd.type OFFLINE
OFFLINE
ora.diskmon ora....on.type OFFLINE OFFLINE