1.查看数据库所有实例与状态

unixdev$[/home/grid]srvctl status database -d unixdev
Instance unixdev11 is running on node unixdev
Instance unixdev12 is running on node unixtest

*注:在oracle或grid下执行均可

2.在特定节点上查看节点应用的状态,可以看到:VIP、NETWORK、GSD、ONS的状态

unixdev$[/home/oracle]srvctl status nodeapps -n unixdev
VIP unixdev-vip is enabled
VIP unixdev-vip is running on node: unixdev
Network is enabled
Network is running on node: unixdev
GSD is disabled
GSD is not running on node: unixdev
ONS is enabled
ONS daemon is running on node: unixdev

3.查看ASM实例状态

unixdev$[/home/grid]srvctl status asm -n unixdev
ASM is running on unixdev
unixdev$[/home/grid]srvctl status asm -n unixtest
ASM is running on unixtest

3.1查看ASM实例配置信息

unixdev$[/home/grid]srvctl status asm           #查看asm运行在哪些服务器上
ASM is running on unixdev,unixtest
unixdev$[/home/grid]srvctl config asm -n unixdev
Warning:-n option has been deprecated and will be ignored.
ASM home: /grid/11.2./grid
ASM listener: LISTENER
unixdev$[/home/grid]srvctl config asm -n unixtest
Warning:-n option has been deprecated and will be ignored.
ASM home: /grid/11.2./grid
ASM listener: LISTENER

4.显示OCR中所有注册的数据库

unixdev$[/home/grid]srvctl config database
unixdev

4.1查看RAC数据库详细配置

unixdev$[/home/grid]srvctl config database -d unixdev
Database unique name: unixdev
Database name: unixdev
Oracle home: /oracle/app/product/11.2.
Oracle user: oracle
Spfile: +DATA/unixdev/spfileunixdev.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: unixdev
Database instances: unixdev11,unixdev12
Disk Groups: DATA,ARC
Mount point paths:
Services:
Type: RAC
Database is administrator managed

5.关闭RAC数据库

su - grid
srvctl stop database -d node #停止所有节点上的实例
srvctl status database -d node #查看实例状态
Instance instance1 is not running on node rac1
Instance instance2 is not running on node rac2 su - root #必须在root下
cd $GRID_HOME/bin
./crsctl stop cluster #停止本节点集群服务
./crsctl stop cluster -all #停止所有节点集群服务

[./crsctl stop cluster -n rac1 rac2]

5.1关闭单节点RAC

su - grid
srvctl stop database -d node -i node1 #关闭实例
su - root
cd $GRID_HOME/bin
./crsctl stop cluster -n node1 #停止节点集群服务

6.开启RAC数据库
默认开机会自动启动,如果需要手动启动,执行:

su - root
cd $GRID_HOME/bin
./crsctl start cluster -all #开启集群服务
su - grid
srvctl start database -d node #开启实例

6.1开启单节点RAC

su - root
cd $GRID_HOME/bin
crsctl start cluster -n node1 #开启集群服务
su - grid
srvctl start database -d node -i node1 #开启实例

7.ocr检查

[grid@Node1 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version :
Total space (kbytes) :
Used space (kbytes) :
Available space (kbytes) :
ID :
Device/File Name : +DATA
Device/File integrity check succeeded Device/File not configured Device/File not configured Device/File not configured Device/File not configured Cluster registry integrity check succeeded Logical corruption check bypassed due to non-privileged user

7.1 查看ocr备份

[grid@Node1 disks]$ ocrconfig -showbackup     #Oracle每4个小时备份一次,保留3个版本

node1     // ::                                   .ocr

node1     // ::     /grid/product/11.2./cdata/node-cluster/backup01.ocr

node1     // ::     /grid/product/11.2./cdata/node-cluster/backup02.ocr

node1     //
:: /grid/product/11.2./cdata/node-cluster/day.ocr
node1 // :: /grid/product/11.2./cdata/node-cluster/week.ocr
PROT-: Manual backups for the Oracle Cluster Registry are not available

7.2 ocr恢复

su - grid
ocrconfig -restore file_name
例如:
ocrconfig -restore /grid/product/11.2./cdata/node-cluster/backup01.ocr

7.3添加ocr镜像

停掉CRS服务
使用命令ocrconfig -export导出ocr信息

8.查看表决磁盘

unixdev$[/]crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
. ONLINE 8c8c1105b3574f13bf8b95d79452e45f (/dev/rdisk/disk18) [OCRVOTE]
Located voting disk(s).

Oracle 11g RAC小结的更多相关文章

  1. 【Oracle 集群】Oracle 11G RAC教程之集群安装(七)

    Oracle 11G RAC集群安装(七) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总. ...

  2. Oracle 11g RAC 应用补丁简明版

    之前总结过<Oracle 11.2.0.4 RAC安装最新PSU补丁>, 这次整理为简明版,忽略一切输出的显示,引入一些官方的说明,增加OJVM PSU的补丁应用. 环境:RHEL6.5 ...

  3. Oracle 11g RAC停止和启动步骤

    关闭前备份控制文件/参数文件:   sqlplus / as sysdba alter database backup controlfile to '/home/oracle/control.ctl ...

  4. oracle 11g RAC安装节点二执行结果错误CRS-5005: IP Address: 192.168.1.24 is already in use in the network

    [root@testdb11b ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInvento ...

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

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

  6. Oracle 11g RAC 第二节点root.sh执行失败后再次执行root.sh

    Oracle 11g RAC 第二节点root.sh执行失败后再次执行root.sh前,要先清除之前的crs配置信息 # /u01/app/11.2.0/grid/crs/install/rootcr ...

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

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

  8. Oracle 11g RAC oc4j/gsd Offline

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

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

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

随机推荐

  1. [转] .net core Session , Working with a distributed cache

    本文转自:https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed By Steve Smith+ Di ...

  2. DJango小总结二

    1.Django请求的生命周期    武彦涛:        路由系统 -> 试图函数(获取模板+数据=>渲染) -> 字符串返回给用户        2.路由系统    王腾:   ...

  3. Use the list and while to Build Shop car

    #Author: Gordonsalary = int(input("请输入你的工资:"))goods = [('0',"Iphone",5000),('1', ...

  4. rest-framework框架——认证、权限、频率组件

    一.rest-framework登录验证 1.models.py添加User和Token模型 class User(models.Model): name = models.CharField(max ...

  5. 如何angular过滤器进行排序???

    首先定义一个json文件: 然后写HTML文件: <div id="box"> <!--第一个下拉框--> <select ng-model=&quo ...

  6. C#中.Net的值传递和引用传递

    /// <summary> /// 电脑类 /// </summary> public class Computer { public string Type { get; s ...

  7. Linux下利用script命令录制并回放终端会话

    Linux下利用script命令录制并回放终端会话 核心命令 script 和 scriptreplay 录制屏幕 script -t 2>timescript typescript 命令解释: ...

  8. HCNA修改OSPF基准带宽

    1.拓扑图 2.R1配置ip开启OSPF The device is running! <Huawei>sysEnter system view, return user view wit ...

  9. 使用sqlloader向oracle导入文本数据

    文本文件如下,注意文件名必须有后缀,文本行首也需要|分隔符:[oracle@ycr test]$ more person.txt|aaa|123|m|aaa|123|m|aaa|123|m|aaa|1 ...

  10. 字段处理rtrim去掉结尾的特殊字符和空格

    SQL> create table ycrtest2 (name varchar2(50)); Table created. SQL> insert into ycrtest2 value ...