asm oracle 启动,DATA、asm、oracle启动重启流程

1、启动

[grid@ctp-dbserver ~]$ crs_stat -t

Name Type Target State Host

------------------------------------------------------------

ora.DATA.dg ora....up.type OFFLINE OFFLINE

ora....ER.lsnr ora....er.type ONLINE ONLINE ctp-...rver

ora.asm ora.asm.type OFFLINE OFFLINE

ora.cssd ora.cssd.type ONLINE OFFLINE

ora.diskmon ora....on.type OFFLINE OFFLINE

ora.evmd ora.evm.type ONLINE ONLINE ctp-...rver

ora.ons ora.ons.type OFFLINE OFFLINE

ora.zxxj.db ora....se.type OFFLINE OFFLINE

[grid@ctp-dbserver ~]$ srvctl start asm

[grid@ctp-dbserver ~]$ crs_stat -t

Name Type Target State Host

------------------------------------------------------------

ora.DATA.dg ora....up.type ONLINE ONLINE ctp-...rver

ora....ER.lsnr ora....er.type ONLINE ONLINE ctp-...rver

ora.asm ora.asm.type ONLINE ONLINE ctp-...rver

ora.cssd ora.cssd.type ONLINE ONLINE ctp-...rver

ora.diskmon ora....on.type OFFLINE OFFLINE

ora.evmd ora.evm.type ONLINE ONLINE ctp-...rver

ora.ons ora.ons.type OFFLINE OFFLINE

ora.zxxj.db ora....se.type OFFLINE OFFLINE

//如果asm磁盘启动以后,asm磁盘组DATA也成功启动,则不用执行

[grid@ctp-dbserver ~]$ srvctl start diskgroup -g DATA

//这是如果执行了上述命令,则会显示:

PRCC-1014 : DATA was already running

PRCR-1004 : Resource ora.DATA.dg is already running

PRCR-1079 : Failed to start resource ora.DATA.dg

CRS-5702: Resource 'ora.DATA.dg' is already running on

'ctp-dbserver'

//启动数据库

[grid@ctp-dbserver ~]$ srvctl start database -d zxxj

[grid@ctp-dbserver ~]$ crs_stat -t

Name Type Target State Host

------------------------------------------------------------

ora.DATA.dg ora....up.type ONLINE ONLINE ctp-...rver

ora....ER.lsnr ora....er.type ONLINE ONLINE ctp-...rver

ora.asm ora.asm.type ONLINE ONLINE ctp-...rver

ora.cssd ora.cssd.type ONLINE ONLINE ctp-...rver

ora.diskmon ora....on.type OFFLINE OFFLINE

ora.evmd ora.evm.type ONLINE ONLINE ctp-...rver

ora.ons ora.ons.type OFFLINE OFFLINE

ora.zxxj.db ora....se.type ONLINE ONLINE ctp-...rver

[grid@ctp-dbserver ~]$

//以上说明启动成功

2、关闭,操作顺序相反

[grid@ctp-dbserver ~]$ srvctl stop database -d zxxj

[grid@ctp-dbserver ~]$ srvctl stop diskgroup -g DATA

[grid@ctp-dbserver ~]$ srvctl stop asm

[grid@ctp-dbserver ~]$ crs_stat -t

Name Type Target State Host

------------------------------------------------------------

ora.DATA.dg ora....up.type OFFLINE OFFLINE

ora....ER.lsnr ora....er.type ONLINE ONLINE ctp-...rver

ora.asm ora.asm.type OFFLINE OFFLINE

ora.cssd ora.cssd.type ONLINE OFFLINE

ora.diskmon ora....on.type OFFLINE OFFLINE

ora.evmd ora.evm.type ONLINE ONLINE ctp-...rver

ora.ons ora.ons.type OFFLINE OFFLINE

ora.zxxj.db ora....se.type OFFLINE OFFLINE

你可能感兴趣的:(asm,oracle,启动)