1)、检查集群状态:

  [grid@rac02 ~]$ crsctl check cluster
  CRS-4537: Cluster Ready Services is online
  CRS-4529: Cluster Synchronization Services is online
  CRS-4533: Event Manager is online

2)、所有 Oracle 实例 —(数据库状态):
  [grid@rac02 ~]$ srvctl status database -d racdb
  Instance racdb1 is running on node rac01
  Instance racdb2 is running on node rac02

3)、检查单个实例状态:
  [grid@rac02 ~]$ srvctl status instance -d racdb -i racdb1
  Instance racdb1 is running on node rac01

4)、节点应用程序状态:
  [grid@rac02 ~]$ srvctl status nodeapps
  VIP rac01-vip is enabled
  VIP rac01-vip is running on node: rac01
  VIP rac02-vip is enabled
  VIP rac02-vip is running on node: rac02
  Network is enabled
  Network is running on node: rac01
  Network is running on node: rac02
  GSD is disabled
  GSD is not running on node: rac01
  GSD is not running on node: rac02
  ONS is enabled
  ONS daemon is running on node: rac01
  ONS daemon is running on node: rac02
  eONS is enabled
  eONS daemon is running on node: rac01
  eONS daemon is running on node: rac02

5)、列出所有的配置数据库:
  [grid@rac02 ~]$ srvctl config database
  racdb

6)、数据库配置:
  [grid@rac02 ~]$ srvctl config database -d racdb -a
  Database unique name: racdb
  Database name: racdb
  Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1
  Oracle user: oracle
  Spfile: +RACDB_DATA/racdb/spfileracdb.ora
  Domain: xzxj.edu.cn
  Start options: open
  Stop options: immediate
  Database role: PRIMARY
  Management policy: AUTOMATIC
  Server pools: racdb
  Database instances: racdb1,racdb2
  Disk Groups: RACDB_DATA,FRA
  Services:
  Database is enabled
  Database is administrator managed

7)、ASM状态以及ASM配置:

  [grid@rac02 ~]$ srvctl status asm
  ASM is running on rac01,rac02
  [grid@rac02 ~]$ srvctl config asm -a
  ASM home: /u01/app/11.2.0/grid
  ASM listener: LISTENER
  ASM is enabled.

8)、TNS监听器状态以及配置:
  [grid@rac02 ~]$ srvctl status listener
  Listener LISTENER is enabled
  Listener LISTENER is running on node(s): rac01,rac02
  [grid@rac02 ~]$ srvctl config listener -a
  Name: LISTENER
  Network: 1, Owner: grid
  Home: <CRS home>
  /u01/app/11.2.0/grid on node(s) rac02,rac01
  End points: TCP:1521

9)、SCAN状态以及配置:
  [grid@rac02 ~]$ srvctl status scan
  SCAN VIP scan1 is enabled
  SCAN VIP scan1 is running on node rac02
  [grid@rac02 ~]$ srvctl config scan
  SCAN name: rac-scan.xzxj.edu.cn, Network: 1/192.168.1.0/255.255.255.0/eth0
  SCAN VIP name: scan1, IP: /rac-scan.xzxj.edu.cn/192.168.1.55

10)、VIP各个节点的状态以及配置:
  [grid@rac02 ~]$ srvctl status vip -n rac01
  VIP rac01-vip is enabled
  VIP rac01-vip is running on node: rac01
  [grid@rac02 ~]$ srvctl status vip -n rac02
  VIP rac02-vip is enabled
  VIP rac02-vip is running on node: rac02
  [grid@rac02 ~]$ srvctl config vip -n rac01
  VIP exists.:rac01
  VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0
  [grid@rac02 ~]$ srvctl config vip -n rac02
  VIP exists.:rac02
  VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0

11)、节点应用程序配置 —(VIP、GSD、ONS、监听器)

  [grid@rac02 ~]$ srvctl config nodeapps -a -g -s -l
  -l option has been deprecated and will be ignored.
  VIP exists.:rac01
  VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0
  VIP exists.:rac02
  VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0
  GSD exists.
  ONS daemon exists. Local port 6100, remote port 6200
  Name: LISTENER
  Network: 1, Owner: grid
  Home: <CRS home>
  /u01/app/11.2.0/grid on node(s) rac02,rac01
  End points: TCP:1521

12)、验证所有集群节点间的时钟同步:
  [grid@rac02 ~]$ cluvfy comp clocksync -verbose
  Verifying Clock Synchronization across the cluster nodes
  Checking if Clusterware is installed on all nodes...
  Check of Clusterware install passed
  Checking if CTSS Resource is running on all nodes...
  Check: CTSS Resource running on all nodes
  Node Name Status
  ------------------------------------ ------------------------
  rac02 passed
  Result: CTSS resource check passed
  Querying CTSS for time offset on all nodes...
  Result: Query of CTSS for time offset passed
  Check CTSS state started...
  Check: CTSS state
  Node Name State
  ------------------------------------ ------------------------
  rac02 Active
  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
  ------------ ------------------------ ------------------------
  rac02 0.0 passed
  Time offset is within the specified limits on the following set of nodes:
  "[rac02]"
  Result: Check of clock time offsets passed
  Oracle Cluster Time Synchronization Services check passed
  Verification of Clock Synchronization across the cluster nodes was successful.

13)、集群中所有正在运行的实例 — (SQL):

  SELECT inst_id , instance_number inst_no , instance_name inst_name , parallel , status ,

database_status db_status , active_state state , host_name host FROM gv$instance ORDER BY inst_id;

14)、所有数据库文件及它们所在的 ASM 磁盘组 — (SQL):

15)、ASM 磁盘卷:

16)、启动和停止集群:

  以下操作需用root用户执行。
  (1)、在本地服务器上停止Oracle Clusterware 系统:
  [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster

 注:在运行“crsctl stop cluster”命令之后,如果 Oracle Clusterware 管理的
资源中有任何一个还在运行,则整个命令失败。使用 -f 选项无条件地停止所有资源并
停止 Oracle Clusterware 系统。

  另请注意,可通过指定 -all 选项在集群中所有服务器上停止 Oracle Clusterware
系统。如下所示,在rac01和rac02上停止oracle clusterware系统:
  [root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster –all

  在本地服务器上启动oralce clusterware系统:
  [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster

  注:可通过指定 -all 选项在集群中所有服务器上启动 Oracle Clusterware 系统。
  [root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster –all
  还可以通过列出服务器(各服务器之间以空格分隔)在集群中一个或多个指定的
服务器上启动 Oracle Clusterware 系统:
  [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster -n rac01 rac02

  使用 SRVCTL 启动/停止所有实例:
  [oracle@rac01 ~]#srvctl stop database -d racdb
  [oracle@rac01 ~]#srvctl start database -d racdb

转载:http://www.cnblogs.com/top5/archive/2012/11/15/2771312.html

管理oracle 11g RAC 常用命令的更多相关文章

  1. oracle 11g rac集群重启顺序以及常用管理命令简介

    转至:https://www.cnblogs.com/yj411511/p/12459533.html 目录 1.关闭数据库 1.1 查看数据库实例状态 1.2 停止所有节点上实例 1.3 确认数据库 ...

  2. Oracle 11g RAC运维总结

    转至:https://blog.csdn.net/qq_41944882/article/details/103560879 1 术语解释1.1 高可用(HA)什么是高可用?顾名思义我们能轻松地理解是 ...

  3. Oracle 11g RAC oc4j/gsd Offline

    Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形.即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, ...

  4. Oracle 11g RAC 修改各类IP地址

    Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...

  5. [转帖]Oracle 11G RAC For Windows 2008 R2部署手册

    Oracle 11G RAC For Windows 2008 R2部署手册(亲测,成功实施多次) https://www.cnblogs.com/yhfssp/p/7821593.html 总体规划 ...

  6. Oracle 11g RAC环境下Private IP修改方法及异常处理

    Oracle 11g RAC环境下Private IP修改方法及异常处理 Oracle 11g RAC环境下Private IP修改方法及异常处理 一. 修改方法 1. 确认所有节点CRS服务以启动 ...

  7. Oracle 11g RAC 环境下单实例非缺省监听及端口配置

    如果在Oracle 11g RAC环境下使用dbca创建单实例数据库后,Oracle会自动将其注册到缺省的1521端口及监听器.大多数情况下我们使用的为非缺省监听器以及非缺省的监听端口.而且在Orac ...

  8. Oracle 11g RAC 自动应用PSU补丁简明版

    环境:Oracle RAC(GI 11.2.0.4 + DB 11.2.0.4) 本文应用补丁信息: Patch 23615403 - Combo of OJVM Component 11.2.0.4 ...

  9. oracle 11g RAC 在Windows 7下安装

    oracle 11g RAC 在Windows 7下安装 完全要参考RAC11gR2OnWindows.pdf 难点总是在Grid Infrastructure 而安装Grid Infrastruct ...

随机推荐

  1. MySQLzip压缩文件格式安装教程

    MySQL是一个小巧玲珑但功能强大的数据库,目前十分流行.但是官网给出的安装包有两种格式,一个是msi格式,一个是zip格式的.很多人下了zip格式的解压发现没有setup.exe,面对一堆文件一头雾 ...

  2. [LeetCode&Python] Problem 807. Max Increase to Keep City Skyline

    In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located the ...

  3. 有道词典 安卓版 更新日志 - imsoft.cnblogs

    手机词典 更新日志: 2014年4月23日 v5.0.4版本 ·         新增“全球发音”功能,带来世界各国的英文口音,体验原汁原味的英语发音: ·         新增“发现频道”,打造移动 ...

  4. PR4

    4.1视频切换特效: 视频切换:视频和视频之间的过渡 4.2特效参数设置方法 4.3视频切换特效的技巧 多张图片,拖入特效慢. 选中多张图片 右键选中“设置所选..” 设置图片时间: 点常规后 设置完 ...

  5. UWP 在 WebView 中执行 JavaScript 代码(用于模拟用户输入等)

    UWP 中使用 WebView 时可以在网页中额外执行一些代码.于是你几乎可以在网页上做任何事情,那些你可以在浏览器控制台中做的事情. 本文将介绍做法. 本文内容 准备环境 执行 JavaScript ...

  6. 《DSP using MATLAB》Problem 3.17

    用差分方程两边进行z变换,再变量带换得到频率响应函数(或转移函数,即LTI系统脉冲响应的DTFT). 代码: %% ------------------------------------------ ...

  7. Spring Boot(5) 集成Hibernate 日志配置

    https://blog.csdn.net/ZNG_XP/article/details/78131809 https://blog.csdn.net/u011998835/article/detai ...

  8. CH4201 楼兰图腾

    题意 4201 楼兰图腾 0x40「数据结构进阶」例题 描述 在完成了分配任务之后,西部314来到了楼兰古城的西部.相传很久以前这片土地上(比楼兰古城还早)生活着两个部落,一个部落崇拜尖刀('V'), ...

  9. python 取整

    1.向下取整 向下取整直接用内建的 int() 函数即可: >>> a = 3.75 >>> int(a) 3 2.四舍五入 对数字进行四舍五入用 round()  ...

  10. MySQL--linux IO调度算法

    ==================================================================== Linux IO调度算法Linux下目前有4中IO调度算法: ...