当前位置:网站首页>数据库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

边栏推荐
- 2021-06-14
- 五、int和Integer有什么区别?
- C#切换输入法
- Oracle 11g静默安装
- 关于C语言中getchar()函数的用法
- Delightful Nuxt3 Tutorial (2): Build a Blog Quickly and Easily
- 【面筋1】一些没什么标准答案的问题
- VS2022 encapsulates static libraries and calls static libraries under window
- VS2022 encapsulation under Windows dynamic library and dynamic library calls
- C语言中打印字符数组出现乱码的问题(烫烫烫)
猜你喜欢
随机推荐
九、请介绍类加载过程,什么是双亲委派模型?
Dynamic adjustment of web theme (2) Extraction
5. What is the difference between int and Integer?
【C语言】二分查找
影响PoE供电传输距离的除了网线还有啥?
g++参数说明
Oracle 11g静默安装
Podman can learn in one piece
VS2022 encapsulates static libraries and calls static libraries under window
6. What is the difference between Vector, ArrayList and LinkedList?(design, performance, safety)
ZBrush+Substance制作蜥蜴巫婆医生!
移动端人脸风格化技术的应用
什么是参数化设计,通过实操了解一下? | SOLIDWORKS 操作视频
3. What is the difference between final, finally, and finalize?
VS2022 encapsulation under Windows dynamic library and dynamic library calls
9. Please introduce the class loading process, what is the parent delegation model?
申请公网ip后,配置光猫,路由器使用公网ip步骤
3D建模:做什么副业在家就能月入1W?
TFS(AzureDevOps)取消离职人员的签出项
宝塔负载均衡配置及nfs共享









