11g 和12C rac集群得启动停止

oracle 12C与11G一样默认开机自启动集群服务  
关闭顺序 :关闭PDB----->关闭数据库------>关闭集群服务 (先关闭PDB 在关闭数据库实例,否则smon将有一个自动回复过程)
启动顺序:开机自启动集群服务查看集群服务器是否正常---------->打开数据库--------->启动PDB(默认是在mount状态下)

oracle11g 关闭,启动顺序

1、关闭数据库(oracle)
srvctl stop database -d rac

2、关闭集群(root)
crsctl stop cluster -all

3、停止has服务

crsctl stop has -f
检查crs_stat -t -v


1、开启集群(root)
crsctl start cluster -all

2、开启数据库(oracle)
srvctl start database -d rac

3、验证
crs_stat -t -v
############################################################
oracle12c 关闭,启动顺序

1、关闭数据库(oracle)
srvctl stop database -d rac

2、关闭集群(root)
crsctl stop crs -all #可以用于11g和12c
或者crsctl stop cluster -all

2、关闭节点服务(root)
srvctl stop nodeapps

4、验证
crs_stat -t -v


1、开启集群(root)
crsctl start crs -all

2。启动has   

crsctl start has 

3、开启数据库(oracle)
srvctl start database -d rac

4、关闭节点服务(root)
srvctl start nodeapps

5、验证
crs_stat -t -v
===========================================
crsctl start/stop crs and crsctl start/stop cluster 区别

1 crsctl start/stop crs 是单节管理
crsctl start/stop cluster [-all 所有节点] 可以管理多个节点

2 crsctl start/stop crs 管理crs 包含进程 OHASD
crsctl start/stop cluster 不包含OHASD进程 必须要先启动 OHASD进程才可以使用

3 11gr2 rac 手动启动或关闭过程
使用crsctl start/stop cluster手动启动和关闭的过程如下:
crsctl start/stop cluster -all 会启动所有OHAS是启动状态的所有节点
crsctl stop crs --每个节点

使用crsctl start/stop crs手动启动/关闭流程
节点1
crsctl start/stop crs 实际上后面会把Oracle crs 管理的资源都会启动

节点2
crsctl start/stop crs

......

Enable CRS to start on reboot
crsctl enable crs
Disable CRS to start on reboot
crsctl disable crs

4 查询资源启动情况
crsctl stat res -init -t


注:

crsctl start/stop crs 与crsctl start/stop has 作用相同

oracle11g 关闭,启动顺序

1、关闭数据库(oracle)
srvctl stop database -d rac

2、关闭集群(root)
crsctl stop cluster -all

3、停止has服务

crsctl stop has -f
检查crs_stat -t -v


1、开启集群(root)
crsctl start cluster -all

2、开启数据库(oracle)
srvctl start database -d rac

3、验证
crs_stat -t -v
############################################################
oracle12c 关闭,启动顺序

1、关闭数据库(oracle)
srvctl stop database -d rac

2、关闭集群(root)
crsctl stop crs -all #可以用于11g和12c
或者crsctl stop cluster -all

2、关闭节点服务(root)
srvctl stop nodeapps

4、验证
crs_stat -t -v


1、开启集群(root)
crsctl start crs -all

2。启动has   

crsctl start has 

3、开启数据库(oracle)
srvctl start database -d rac

4、关闭节点服务(root)
srvctl start nodeapps

5、验证
crs_stat -t -v
===========================================
crsctl start/stop crs and crsctl start/stop cluster 区别

1 crsctl start/stop crs 是单节管理
crsctl start/stop cluster [-all 所有节点] 可以管理多个节点

2 crsctl start/stop crs 管理crs 包含进程 OHASD
crsctl start/stop cluster 不包含OHASD进程 必须要先启动 OHASD进程才可以使用

3 11gr2 rac 手动启动或关闭过程
使用crsctl start/stop cluster手动启动和关闭的过程如下:
crsctl start/stop cluster -all 会启动所有OHAS是启动状态的所有节点
crsctl stop crs --每个节点

使用crsctl start/stop crs手动启动/关闭流程
节点1
crsctl start/stop crs 实际上后面会把Oracle crs 管理的资源都会启动

节点2
crsctl start/stop crs

......

Enable CRS to start on reboot
crsctl enable crs
Disable CRS to start on reboot
crsctl disable crs

4 查询资源启动情况
crsctl stat res -init -t


注:

crsctl start/stop crs 与crsctl start/stop has 作用相同

猜你喜欢

转载自www.cnblogs.com/daimachangfeng/p/12409132.html
今日推荐