重庆思庄Oracle、Redhat认证学习论坛

标题: 查找数据库只在一个节点上正常工作的原因 [打印本页]

作者: 橡皮草帽    时间: 2020-2-13 16:43
标题: 查找数据库只在一个节点上正常工作的原因
在redhat7.6_rac环境下检查数据库rac在两节点上是否允许正常。

[grid@rac1 ~]$ srvctl status database -d rac
Instance rac1 is running on node rac1
[grid@rac2 ~]$ srvctl status database -d rac
Instance rac1 is running on node rac1

[oracle@rac1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Fri Feb 14 00:40:30 2020
Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> select name from v$database;
NAME
---------
RAC

[oracle@rac2 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Fri Feb 14 00:33:59 2020
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to an idle instance.
SQL> select status from v$instance;
select status from v$instance
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0

作者: 橡皮草帽    时间: 2020-2-13 17:53
检查后发现在dbca的时候忘记选择rac2,截图如下:
408455e451c7f7cb47.png
登录/注册后可看大图