ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

rac (七)

2020-08-10 15:33:47  阅读:275  来源: 互联网

标签:rac 0.4 LISTENER oracle ADDRESS Oracle 节点


检查安装结果
安装完成后,您需要进行必要的检查,以验证数据库是否安装成功。

检查Oracle监听状态
介绍如何检查监听状态。本任务需要在各服务器节点中分别执行。
检查Oracle实例状态
介绍如何检查Oracle实例状态。本任务需要在各服务器节点中分别执行。
检查CRS集群状态
介绍如何检查CRS集群状态。本任务需要在各服务器节点中分别执行。

 

操作步骤
1.以oracle用户分别登录各服务器节点。
2.查看监听状态。

lsnrctl status LISTENER_ORA
在节点shdb1中显示类似如下信息时表示监听正常。

 

oracle@shdb1:~> lsnrctl status LISTENER_ORA

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 10-AUG-2020 15:18:15

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA)))
STATUS of the LISTENER
------------------------
Alias listener_ora
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 10-AUG-2020 15:05:39
Uptime 0 days 0 hr. 12 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/app/oracle/product/network/admin/listener.ora
Listener Log File /opt/app/oracle/diag/tnslsnr/shdb1/listener_ora/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1526)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.30)(PORT=1526)))
Services Summary...
Service "shinfo" has 1 instance(s).
Instance "shinfo1", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@shdb1:~>


在节点shdb2中显示类似如下信息时表示监听正常。

oracle@shdb2:~> lsnrctl status LISTENER_ORA

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 10-AUG-2020 14:54:58

Copyright (c) 1991, 2013, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA)))
STATUS of the LISTENER
------------------------
Alias listener_ora
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 10-AUG-2020 14:38:31
Uptime 0 days 0 hr. 16 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/app/oracle/product/network/admin/listener.ora
Listener Log File /opt/app/oracle/diag/tnslsnr/shdb2/listener_ora/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.20)(PORT=1526)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.40)(PORT=1526)))
Services Summary...
Service "shinfo" has 1 instance(s).
Instance "shinfo2", status READY, has 1 handler(s) for this service...
The command completed successfully
oracle@shdb2:~>

检查Oracle实例状态

介绍如何检查Oracle实例状态。本任务需要在各服务器节点中分别执行。

操作步骤
1.以oracle用户分别登录各服务器节点。
2.登录数据库。

sqlplus / as sysdba
select INSTANCE_NAME, STATUS from v$instance;

oracle@shdb1:~> sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Mon Aug 10 15:23:24 2020

Copyright (c) 1982, 2013, Oracle. All rights reserved.

select INSTANCE_NAME, STATUS from v$instance;
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>

INSTANCE_NAME STATUS
---------------- ------------
shinfo1 OPEN

 

oracle@shdb2:~> sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Mon Aug 10 14:56:33 2020

Copyright (c) 1982, 2013, Oracle. All rights reserved.

select INSTANCE_NAME, STATUS from v$instance;
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>

INSTANCE_NAME STATUS
---------------- ------------
shinfo2 OPEN

SQL>

查CRS集群状态
介绍如何检查CRS集群状态。本任务需要在各服务器节点中分别执行。
操作步骤
1.以grid用户分别登录各服务器节点。
2.执行olsnodes命令查看集群关系是否建立成功。
2个节点中都显示类似如下信息,说明创建成功。
shdb1
shdb2

3.执行crsctl stat res -t命令查看集群状态。
2个节点中都显示类似如下信息,说明集群状态正常。

 

标签:rac,0.4,LISTENER,oracle,ADDRESS,Oracle,节点
来源: https://www.cnblogs.com/connected/p/13470028.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有