当前位置:网站首页>数据库OracleRAC节点宕机处理流程
数据库OracleRAC节点宕机处理流程
2022-08-03 05:27:00 【莫非冢虎】
情景说明:巡检数据库时候发现his节点1宕机。
情景如下图:

1:用root账号登录201服务器,然后登录grid账号
[[email protected] ~]# su - grid
2:检查集群中资源的状态
[[email protected]:/home/grid]$crsctl stat res -t
主要看下面第三图这个位置,里面可以看到his的1个节点断了。
第一图

第二图
第三图
3:退出grid账号,连接oracle账号
[[email protected]:/home/grid]$exit
[[email protected] ~]# su - oracle
找到his的ora文件
[[email protected]:/home/oracle]$ls -l /tmp

这里面的his_bak20220627.ora就是我们一会要用到的文件名
说明:至于为啥是这个文件我也不知道,我不是很懂数据库,我这是看到大神的操作,我就记录下来。
4:用sysdba账号连接数据库
[[email protected]:/home/oracle]$sqlplus / as sysdba

利用刚才找到的文件名启动宕机的节点
SQL> startup nomount pfile='/tmp/his_bak20220627.ora' ;
SQL> alter database mount;
SQL> alter database open;
SQL> exit;

到此节点已经重启成功了
5:可以在下面几个位置查看日志
[[email protected]:/home/oracle]$cd $ORACLE_BASE/diag/rdbms/his/his1/trace
[[email protected]:/u01/app/oracle/diag/rdbms/his/his1/trace]$less alert_his1.log
[[email protected]:/u01/app/oracle/diag/rdbms/his/his1/trace]$less /u01/app/oracle/diag/rdbms/his/his1/trace/his1_gen0_44843.trc
[[email protected]:/u01/app/oracle/diag/rdbms/his/his1/trace]$less /u01/app/oracle/diag/rdbms/his/his1/incident/incdir_640064/his1_gen0_44843_i640064.trc
[[email protected]:/u01/app/oracle/diag/rdbms/his/his1/trace]$exit
6:用下面的语句查看节点状态
[[email protected]:/home/grid]$crsctl stat res -t

边栏推荐
猜你喜欢
随机推荐
Automatic ticket issuance based on direct reduction of China Southern Airlines app
二分查找4 - 搜索旋转排序数组
Podman can learn in one piece
C#程序默认以管理员权限打开
【C语言】二分查找
检测微信显示无效头像图片链接
2021-06-14
C语言中打印字符数组出现乱码的问题(烫烫烫)
详解SSL证书的分类以及如何选择合适的证书?
SSL证书过期后怎么办?
9. Please introduce the class loading process, what is the parent delegation model?
【随笔】我为啥想写无关紧要的随笔?
IP数据包的格式(1)
TFS(AzureDevOps)取消离职人员的签出项
【随笔】把喜欢的事情提上日程吧
一文看懂常见域名后缀的含义
内网渗透之PPT票据传递攻击(Pass the Ticket)
TFS(Azure DevOps)禁止多人同时签出
MySQL的主从复制
树——前序









