zoukankan      html  css  js  c++  java
  • rac (七)

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

    检查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个节点中都显示类似如下信息,说明集群状态正常。

  • 相关阅读:
    centos 安装nginx + 多个tomcat负载均衡
    centos 安装redis2.8.9
    centos下彻底删除mysql
    List的深度序列化Demo
    session失效刷新后登录页面嵌入在iframe中的解决办法
    Unable to execute dex: Multiple dex files define 解决方法
    Android运行时异常“Binary XML file line # : Error inflating class”
    在Android library中不能使用switch-case语句访问资源ID的原因分析及解决方案
    ViewStub的使用示例
    android中导入低版本project可能会遇到的编译问题
  • 原文地址:https://www.cnblogs.com/connected/p/13470028.html
Copyright © 2011-2022 走看看