ORACLE RAC停止和启动
ORACLE RAC停止和启动
节点1:10.114.xxx.86(主)
节点2:10.114.xxx.87
1 停机前的准备工作
读取内存中参数,生成spfile或者pfile
节点1
create pfile=’/Oracle/20171031/pfile.txt’ from spfile;
create pfile = ‘/Oracle/20171031/memory.ora’ from memory;
节点2
create pfile=’/Oracle/20171031/pfile.txt’ from spfile;
create pfile = ‘/Oracle/20171031/memory.ora’ from memory;
ORACLE ARC停止
先看一下有多少用户在线 ,多的话就kill掉,这样停机就能快些。
[oracle@wuhlpmtdb02 ~]$ ps -ef|grep LOCAL=NO
1,关闭数据库:
以oracl用户执行srvctl命令:
然后查看状态:
[oracle@wuhlpmtdb03 20171031]$ srvctl status database -d primarydb
Instance primaryd1 is running on node wuhlpmtdb02
Instance primaryd2 is running on node wuhlpmtdb03
[oracle@wuhlpmtdb03 ~]$ srvctl stop database -d primarydb —停止所有节点上的实例
2,停止HAS(High Availability Services),必须以root用户
[root@wuhlpmtdb03 bin]# cd /Oracle/app/11.2.0/grid/bin
[root@wuhlpmtdb03 bin]# ./crsctl stop has -f
对于crsctl stop has 只有一个可选的参数就是-f,该命令只能停执行该命令服务器上的HAS而不能停所有节点上的。所以要把RAC全部停掉,需要在所有节点执行该命令。
3,停止节点集群服务,必须以root用户:
[root@rac1 oracle]# cd /Oracle/app/11.2.0/grid/bin
[root@rac1 bin]# ./crsctl stop cluster —-停止本节点集群服务
[root@rac1 bin]# ./crsctl stop cluster -all —-停止所有节点服务
也可以如下控制所停节点:
[root@rac1 bin]# ./crsctl stop cluster -n primaryd1 primaryd2
ORACLErac 启动
检查cluster状态
[root@wuhlpmtdb03 bin]# ./crsctl stat res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
[root@wuhlpmtdb03 bin]# ./crsctl check cluster -all
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Check failed, or completed with errors.
启动crs服务1节点
[root@rac1 bin]# ./crsctl start crs
[root@rac1 bin]# ./crsctl check cluster -all
[root@rac1 bin]# ./crsctl stat res -t
启动crs服务2节点
[root@rac1 bin]# ./crsctl start crs
[root@rac1 bin]# ./crsctl check cluster -all
[root@rac1 bin]# ./crsctl stat res -t
进去asm确认asm磁盘组状态用grid用户
sqlplus / as sysasm
SQL> select group_number,name,state,voting_files from v$asm_diskgroup;
因为oracle数据库还未启动所以DATA和LOG磁盘为dismonted状态。
启动oracle数据
srvctl start instance -d oracle -n primaryd1
srvctl start instance -d oracle -n primaryd2
确认数据库状态
[oracle@rac1 ~]$ srvctl status database -d primarydb
进去asm确认asm磁盘组状态
select group_number,name,state,voting_files from v$asm_diskgroup;
ORACLE RAC停止和启动相关推荐
- 转载:oracle RAC集群启动和关闭
http://www.cnblogs.com/yhfssp/p/8184761.html oracle 11G RAC集群启动和关闭: 1.停止数据库 $srvctl stop database –d ...
- oracle启动crs要多久,ORACLE RAC crs 无法启动
OS: ORACLE LINUX 5.7 DB: 11.2.0.3 RAC:YES 故障: 1.两节点RAC,节点分别为linuxdb1.linuxdb2,其中节点linuxdb2服务器出现故障,无法 ...
- Oracle RAC 11R2配置归档、删除策略,闪回配置完整版
2019独角兽企业重金招聘Python工程师标准>>> 题记: 生产RAC,闪回和归档必须配置,但是闪回功能基本上用不到所以可以考虑不启用,读者只需要了解其作用以及如何紧急处理因归档 ...
- Oracle RAC 启动与关闭 (rac 命令示例)
一. 检查共享设备 一般情况下, 存放OCR 和 Voting Disk 的OCFS2 或者raw 都是自动启动的. 如果他们没有启动,RAC 肯定是启动不了的. 1.1 如果使用ocfs2的,检查o ...
- oracle重启集群,Oracle 集群(RAC)的启动与关闭
Oracle RAC启动与关闭的时候需要注意以下几点: 一.检查共享设备 二.自动启动RAC并检查相关进程 三. 手动启动RAC 四. 在启动的过程中最好检测着crs.ASM和数据库的日志. 一.检查 ...
- oracle rac启动关闭,Oracle RAC启动及关闭步骤
主机名 实例名 监听端口 字符集 db-node1 orcl1 1521 ZHS16GBK db-node2 orcl2 1521 ZHS16GBK 关闭 顺序:关闭数据库(实例)-> 关闭AS ...
- Oracle RAC 11.2.0.3 节点CRS无法启动报:no network hb 故障解决方法
软件版本: oracle rac 11.2.0.3,补丁打到最新11.2.0.3.5 故障现象:Oracle双节点组成RAC,RAC软件安装在节点1上:运行一段时间后,节点2日志报"网络通信 ...
- oracle rac 启动失败has,oracle11.2.0.4 rac asm启动故障
现场人员反映一套库启动失败,集群资源启动失败,发截图和日志过来分析 分析日志后发现: ASM没有启动 OCR等不能启动 问题1: 2018-05-08 11:59:39.980: [ OCRASM] ...
- oracle rac启动ohas
oracle rac启动ohas命令如下: systemctl status ohas.service systemctl start ohas.service crsctl check has cr ...
最新文章
- oracle解析失败事件,ORACLE诊断事件及深入解析10053事件
- python 将布尔数组取反的方法 True False(b=(a==False))
- VS2019 windows桌面应用_多邻国英语测试推出桌面应用程序,确保考试环境安全可靠...
- java 中的fork join框架
- navicat for Oracle连接
- python云计算面试题_云计算工程师面试问题及答案解析
- LeetCode 326. 3的幂
- 伪静态php空间,Win空间上如何实现WordPress博客的完美伪静态
- uva 714 Copying Books
- 几个常用的Oracle函数及实例运用
- eclipse上的maven,添加依赖后无法自动下载相应的jar包
- 服务器开机自检提示信息,hp服务器开机自检报错提示
- 阿里医疗NLP实践与思考
- The way的用法
- matlab自定义colormap保存不,matlab自定义colormap
- JAVA基于JSP的在线人才招聘求职系统【数据库设计、论文、源码、开题报告】
- 18.8.17 考试总结
- 图像曲率 与 黎曼几何
- Python xls文件和xlsx文件格式互相转换
- rtmp流放与flv格式视频问题解决