一.巡检RAC数据库

1.1列出数据库

[grid@node1 ~]$ srvctl config database
racdb
[grid@node1 ~]$

1.2列出数据库的实例

[grid@node1 ~]$ srvctl status database -d racdb
Instance racdb1 is running on node node1
Instance racdb2 is running on node node2

1.3数据库的配置

[grid@node1 ~]$ srvctl config database -d racdb -a
Database unique name: racdb
Database name: racdb
Oracle home: /u01/app/oracle/11.2./dbhome_1
Oracle user: oracle
Spfile: +DATA/racdb/spfileracdb.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdb
Database instances: racdb1,racdb2
Disk Groups: DATA
Services:
Database is enabled
Database is administrator managed
[grid@node1 ~]$

二.巡检Grid

2.1集群名称

[grid@node1 ~]$ cemutlo -n
scan-cluster
[grid@node1 ~]$

2.2检查集群栈状态

[grid@node1 ~]$ crsctl check cluster -all
**************************************************************
node1:
CRS-: Cluster Ready Services is online
CRS-: Cluster Synchronization Services is online
CRS-: Event Manager is online
**************************************************************
node2:
CRS-: Cluster Ready Services is online
CRS-: Cluster Synchronization Services is online
CRS-: Event Manager is online
**************************************************************
[grid@node1 ~]$

2.3 集群的资源

[grid@node1 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE node1
ONLINE ONLINE node2
ora.LISTENER.lsnr
ONLINE ONLINE node1
ONLINE ONLINE node2
ora.asm
ONLINE ONLINE node1 Started
ONLINE ONLINE node2 Started
ora.eons
ONLINE ONLINE node1
ONLINE ONLINE node2
ora.gsd
OFFLINE OFFLINE node1
OFFLINE OFFLINE node2
ora.net1.network
ONLINE ONLINE node1
ONLINE ONLINE node2
ora.ons
ONLINE ONLINE node1
ONLINE ONLINE node2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
ONLINE ONLINE node2
ora.LISTENER_SCAN2.lsnr
ONLINE ONLINE node1
ora.LISTENER_SCAN3.lsnr
ONLINE ONLINE node1
ora.node1.vip
ONLINE ONLINE node1
ora.node2.vip
ONLINE ONLINE node2
ora.oc4j
OFFLINE OFFLINE
ora.racdb.db
ONLINE ONLINE node1 Open
ONLINE OFFLINE
ora.scan1.vip
ONLINE ONLINE node2
ora.scan2.vip
ONLINE ONLINE node1
ora.scan3.vip
ONLINE ONLINE node1
[grid@node1 ~]$

主机node1的更加详细的资源

[grid@node1 ~]$ crsctl status res -t -init
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
ONLINE ONLINE node1 Started
ora.crsd
ONLINE ONLINE node1
ora.cssd
ONLINE ONLINE node1
ora.cssdmonitor
ONLINE ONLINE node1
ora.ctssd
ONLINE ONLINE node1 ACTIVE:
ora.diskmon
ONLINE ONLINE node1
ora.evmd
ONLINE ONLINE node1
ora.gipcd
ONLINE ONLINE node1
ora.gpnpd
ONLINE ONLINE node1
ora.mdnsd
ONLINE ONLINE node1
[grid@node1 ~]$

主机node2的更加详细的资源

[grid@node2 ~]$ crsctl status res -t -init
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
ONLINE ONLINE node2 Started
ora.crsd
ONLINE ONLINE node2
ora.cssd
ONLINE ONLINE node2
ora.cssdmonitor
ONLINE ONLINE node2
ora.ctssd
ONLINE ONLINE node2 ACTIVE:-
ora.diskmon
ONLINE ONLINE node2
ora.evmd
ONLINE ONLINE node2
ora.gipcd
ONLINE ONLINE node2
ora.gpnpd
ONLINE ONLINE node2
ora.mdnsd
ONLINE ONLINE node2
[grid@node2 ~]$

2.4检查节点应用

[grid@node1 ~]$ srvctl status nodeapps
VIP node1-vip is enabled
VIP node1-vip is running on node: node1
VIP node2-vip is enabled
VIP node2-vip is running on node: node2
Network is enabled
Network is running on node: node1
Network is running on node: node2
GSD is disabled
GSD is not running on node: node1
GSD is not running on node: node2
ONS is enabled
ONS daemon is running on node: node1
ONS daemon is running on node: node2
eONS is enabled
eONS daemon is running on node: node1
eONS daemon is running on node: node2
[grid@node1 ~]$

2.5 检查SCAN

检查scan-ip地址的配置
[grid@node1 ~]$ srvctl config scan
SCAN name: scan-cluster.com, Network: /192.168.0.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /scan-cluster/192.168.0.24
SCAN VIP name: scan2, IP: /scan-cluster/192.168.0.25
SCAN VIP name: scan3, IP: /scan-cluster/192.168.0.26
[grid@node1 ~]$ 检查scan-ip地址的实际分布及状态
[grid@node1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node node1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node node1
[grid@node1 ~]$ 检查scan监听配置
[grid@node1 ~]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:
[grid@node1 ~]$ 检查scan监听状态
[grid@node1 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node node2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node node1
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node node1
[grid@node1 ~]$

2.6 检查VIP和监听

检查VIP的配置情况
[grid@node1 ~]$ srvctl config vip -n node1
VIP exists.:node1
VIP exists.: /node1-vip/192.168.0.21/255.255.255.0/eth0
[grid@node1 ~]$ srvctl config vip -n node2
VIP exists.:node2
VIP exists.: /node2-vip/192.168.0.31/255.255.255.0/eth0
[grid@node1 ~]$ 检查VIP的状态
[grid@node1 ~]$ srvctl status nodeapps

[grid@node1 ~]$ srvctl status vip -n node1
VIP node1-vip is enabled
VIP node1-vip is running on node: node1
[grid@node1 ~]$ srvctl status vip -n node2
VIP node2-vip is enabled
VIP node2-vip is running on node: node2
[grid@node1 ~]$ 检查本地监听配置:
[grid@node1 ~]$ srvctl config listener -a
Name: LISTENER
Network: , Owner: grid
Home: <CRS home>
/u01/app/11.2./grid on node(s) node2,node1
End points: TCP: 检查本地监听状态:
[grid@node1 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): node1,node2
[grid@node1 ~]$

2.7 检查ASM

检查ASM状态
[grid@node1 ~]$ srvctl status asm -a
ASM is running on node1,node2
ASM is enabled. 检查ASM配置
[grid@node1 ~]$ srvctl config asm -a
ASM home: /u01/app/11.2.0/grid
ASM listener: LISTENER
ASM is enabled.
[grid@node1 ~]$ 检查磁盘组
[grid@node1 ~]$ srvctl status diskgroup -g DATA
Disk Group DATA is running on node1,node2
[grid@node1 ~]$ 查看ASM磁盘
[root@node1 bin]# oracleasm listdisks
VOL1
VOL2
[root@node1 bin]# 查看物理磁盘与asm 磁盘对应关系
[root@node1 bin]# oracleasm querydisk -v -p VOL1
Disk "VOL1" is a valid ASM disk
/dev/sdb1: LABEL="VOL1" TYPE="oracleasm"
[root@node1 bin]#

2.8检查集群节点间的时钟同步

检查节点node1的时间同步
[grid@node1 ~]$ cluvfy comp clocksync -verbose
.......
Verification of Clock Synchronization across the cluster nodes was successful.
[grid@node1 ~]$
检查节点node2的时间同步
[grid@node2 ~]$ cluvfy comp clocksync -verbose
..............
CTSS is in Active state. Proceeding with check of clock time offsets on all nodes...
Reference Time Offset Limit: 1000.0 msecs
Check: Reference Time Offset
Node Name Time Offset Status
------------ ------------------------ ------------------------
node2 -89900.0 failed
Result: PRVF-9661 : Time offset is NOT within the specified limits on the following nodes:
"[node2]" PRVF-9652 : Cluster Time Synchronization Services check failed Verification of Clock Synchronization across the cluster nodes was unsuccessful on all the specified nodes.
[grid@node2 ~]$

  注:节点2的服务器时间出现问题

  至此,对Grid的巡检基本上就算完成了

11g RAC R2 日常巡检--Grid的更多相关文章

  1. oracle 11g rac R2 for linux change(public,vip)IP ,hostname (oracle 11g rac R2 修改公有,虚拟,私有IP,网卡)

    结构如下: 说明: 节点IP,主机名的修改步骤来自ORACLE support文档: 如何修改集群的公网信息(包括 VIP) (文档 ID 1674442.1) 实验环境情况如下: 实验 节点名称 数 ...

  2. 11g RAC R2 体系结构---用户及用户组

    10.2 RAC 到11.2 RAC 用户及用户组的变化: 在10.2 RAC 的部署中,只需要一个用户(oracle)和一个用户组(dba).Database.Clusterware都是用oracl ...

  3. 安装Oracle 11g RAC R2 之Linux DNS 配置

    Oracle 11g RAC 集群中引入了SCAN(Single Client Access Name)的概念,也就是指集群的单客户端访问名称.SCAN 这个特性为客户端提供了单一的主机名,用于访问集 ...

  4. 11g RAC r2 的启停命令概述1

    目标: 熟悉主要进程的启停顺序 了解独占模式 -excl crsctl start crs与crsctl start cluster 区别 1.熟悉主要进程的启停顺序 1.1 启动节点rac1: [r ...

  5. 11g RAC R2 之Linux DNS 配置

    在动手配置前,最好先了解下DNS的理论,以免犯不必要的错误.这都是被坑后的觉悟 -_-!!! Oracle 11g RAC 集群中引入了SCAN(SingleClientAccessName)的概念, ...

  6. 转 11g RAC R2 体系结构---Grid

    基于agent的管理方式 从oracle 11.2开始出现了多用户的概念,oracle开始使用一组多线程的daemon来同时支持多个用户的使用.管理资源,这些daemon叫做Agent.这些Agent ...

  7. 11g RAC R2 体系结构---Grid

    基于agent的管理方式 从oracle 11.2开始出现了多用户的概念,oracle开始使用一组多线程的daemon来同时支持多个用户的使用.管理资源,这些daemon叫做Agent.这些Agent ...

  8. oracle之 11g RAC R2 体系结构---Grid

    -- 查看cluster 所维护的资源列表,不包括 OHAS 栈的 daemon [root@node1 bin]# ./crsctl status resource -t-------------- ...

  9. 11g RAC R2 体系结构---进程,日志

    进程结构:Overview of Oracle Clusterware Platform-Specific Software Components When Oracle Clusterware is ...

随机推荐

  1. DataGridView 多线程更新 数据 解决卡顿问题

    使用多线程更新DataGridView,防止页面卡顿和卡死的问题 private delegate void UpdateDataGridView(DataTable dt); private voi ...

  2. (转)JavaScript 中对变量和函数声明的“提前(hoist)”

    变量声明“被提前” JavaScript 的语法和 C .Java.C# 类似,统称为 C 类语法.有过 C 或 Java 编程经验的同学应该对“先声明.后使用”的规则很熟悉,如果使用未经声明的变量或 ...

  3. [freemarker篇]04.简单介绍-基本数据类型

    好几天没有更新博客了,最近一顿乱七八糟的忙!今天简单更新第四章,这里只能说是简单介绍,因为权威的还是需要看Freemarker的官方中文手册! 好几天没有更新博客了,最近一顿乱七八糟的忙!今天简单更新 ...

  4. uva 12544 无向图最小环

    思路:这题的N有500,直接floyd肯定超时. 我的做法是每次枚举一个点,求出包含这个点的最小环. 对所有最小环取最小值.求包含某个点的最小环我用的是启发式搜索,先以该点求一次spfa,然后dfs解 ...

  5. SSH客户端

    Windows: winSCP SecureCRT Ubuntu: SecureCRT:安装方法http://www.phperstar.com/post/323

  6. SQL Server 2008复制发布订阅(数据同步)

    数据库同步问题 1.有一台主数据库服务器A和另外一台数据库服务器B,客户端首先访问数据库B,当B数据库服务器挂掉时就访问A,当对数据库B进行DML操作时,同时对A进行更新,如果A与B之间通讯失败,则将 ...

  7. VxWorks 6.9 内核编程指导之读书笔记 -- C++开发

    5.1 介绍 针对C++的VxWorks配置 C++头文件 使用C++启动任务 C和C++之前调用代码 C++编译器说明 在信号处理和ISR中使用C++ 下载C++编写的内核模块 C++编译器的不同 ...

  8. Facade模式和Mediator模式

    相同的目的:把某种策略施加到另一组对象上. Facade从上面施加策略. 其使用是明显且受限的.当策略涉及范围广泛并且可见时. 约定的关注点.都同意使用Facade而不是隐藏于其下的对象. Media ...

  9. linux下开发板网络速度测试记录

        由于做的项目对于网络和USB的读写速度有很高的要求,因此新拿回来的板子要测试网络和usb的最佳传输速度.要考虑不少因素,先把我能想到的记录下来.     测试的环境是开发板和ubuntu虚拟机 ...

  10. XMLHTTPRequest的属性和方法简介

    由于现在在公司负责制作标准的静态页面,为了增强客户体验,所以经常要做些AJAX效果,也学你也和我一样在,学习AJAX.而设计AJAX时使用的一个 重要的技术(工具)就是XMLHTTPRequest对象 ...