oracle 11g GRID 中 关于 OLR 须要知道的一些内容

1.检查olr 的状态:

[root@vmrac1 ~]# ocrcheck -local

Status of Oracle Local Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2748

         Available space (kbytes) :     259372

         ID                       :  935756415

         Device/File Name         : /u02/app/11.2.0.3/grid/cdata/vmrac1.olr

                                    Device/File integrity check succeeded

         Local registry integrity check succeeded

         Logical corruption check succeeded

2.将olr的内容转储到txt 文档,可查看olr的内容:

# ocrdump -local -stdout

3.导出/导入 olr 的内容:

--- 导出 OLR

# ocrconfig –local –export file_name

/*file_name 为导入文件,导出的文件名称。这个文件名称是自定的 eg:olr_myhost1_20090603_0130_export */

--- 导入 OLR:

# ocrconfig –local –import file_name

/*file_name 为导入文件。导出的文件名称。这个文件名称是自定的 eg:olr_myhost1_20090603_0130_export */

note:

》 Oracle recommends that you use the -manualbackup and -restorecommands and not the -importand -exportcommands.

》 When exporting OLR, Oracle recommends including "olr", the host name, and the timestamp in the name string.

For example:olr_myhost1_20090603_0130_export

4.手动备份OLR:

# ocrconfig –local –manualbackup

olr 会在grid 安装完毕后,或者升级后备份一次。之后就不会自己主动备份 。oracle 建议在对 ocr 存储迁移后对OLR 进行手动备份一次。

**OLR缺省备份文件夹:Grid_home/cdata/host_name.

----改动OLR 备份文件夹:

ocrconfig -local -backuploc new_olr_backup_path

----查看olr 备份文件内容:

ocrdump -local -backupfile olr_backup_file_name

这里须要注意下 olr:ocrconfig  -manualbackup 和 ocrconfig -local -restore 是配套使用的,ocrconfig -local -export 和 ocrconfig -local -import 是配套使用的,也就是说 ocrconfig -local -export  file_name 导出的文件不用用作 ocrconfig -local -restore 使用

5.还原OLR:

To restore OLR:

----停crs

# crsctl stop crs

----恢复OLR:

# ocrconfig -local -restore file_name    /*file_name为olr的备份路径中的文件名称。能够通过 ocrconfig -local -showbackup 来查看*/

-----确认olr 的状态(检查olr 内容的逻辑完整性):

# ocrcheck -local

----重新启动crs

# crsctl start crs

----使用cvu验证olr 在集群中的完整性(注意:不检查olr 内容的逻辑完整性)

$ cluvfy comp olr

grid@vmrac1 ~]$ cluvfy comp olr

Verifying OLR integrity

Checking OLR integrity...

Checking OLR config file...

OLR config file check successful

Checking OLR file attributes...

OLR file check successful

WARNING:

This check does not verify the integrity of the OLR contents. Execute 'ocrcheck -local' as a privileged user to verify the

contents of OLR.

OLR integrity check passed

Verification of OLR integrity was successful.



oracle 11g GRID 中 关于 OLR 须要知道的一些内容的更多相关文章

  1. 測试oracle 11g cluster 中OLR的重要性

     測试oracle 11g cluster 中OLR的重要性 called an Oracle Local Registry (OLR): each node in a cluster has a ...

  2. 【oracle 11G Grid 】Crsctl start cluster 和 crsctl start crs 有差别么?

     [oracle 11G Grid ]Crsctl start cluster 和 crsctl start crs 有差别么? q:Crsctl start cluster 是 11.2新特性和 ...

  3. 在Oracle 11g r2中,EXP无法导出个别空的表

    在Oracle 11g r2中,发现传统的exp无法不能导出空的表,上网搜索了一下找到了原因. 主要是Oracle 11g 新增了一个参数:deferred_segment_creation,含义是段 ...

  4. windows 环境怎样恢复 (oracle 11g grid) ocr voting 损坏的集群

     windows 环境怎样恢复 (oracle 11g grid) ocr voting 损坏的集群 oracle 11g 以后 ocr 能够放到 asm 磁盘上,而ASM的启动依赖于ocr和vo ...

  5. oracle 11g grid软件安装[20180121]

      实验环境:     系统->Redhat 6.5     Oracle软件版本->oracle 11.2.0.4.0        系统初始化     设定hosts主机名和对应IP地 ...

  6. 卸载oracle 11g grid软件

    一,使用deinstall 同样,卸载grid软件在11g中也推出了了卸载工具deinstall卸载同卸载oracle数据库软件 具体可参考:Behaviour of the Oracle De-in ...

  7. ORACLE 11g 生产中高水位线(HWM)处理

    数据库中表不断的insert,delete,update,导致表和索引出现碎片.这会导致HWM之前有很多的空闲空间,而oracle在做全表扫描的时候会读取HWM一下的所有块,这样会产生更多的IO,影响 ...

  8. CentOS6.5 静默安装Oracle 11g过程中提示:Exception in thread “main” java.lang.NoClassDefFoundError

    原来是系统中设置了DISPLAY环境变量,执行: [oracle@qa26 database]$ ./runInstaller  -silent -responseFile /usr/local/or ...

  9. Oracle 11g rac中关于crsctl stop cluster/crs/has的区别

    转载至http://www.oracleplus.net/arch/1203.html,整理后得. 1 通过命令查看cluster/has/crs管理的内容 [root@11rac1 ~]# crsc ...

随机推荐

  1. docker 容器挂载主机目录,访问出现 cannot open directory /mnt/home/webroot/: Permission denied 的解决办法

    问题原因及解决办法 原因是CentOS7中的安全模块selinux把权限禁掉了,至少有以下三种方式解决挂载的目录没有权限的问题: 1.在运行容器的时候,给容器加特权,及加上 --privileged= ...

  2. linux远程开机

    它需要wakeonlan这个软件,     从何处得到它?     它的官方站是:http://sourceforge.net/projects/wake-on-lan/     如果使用rpm包可以 ...

  3. xingo的demo部署

    1)安装go 2)安装git xingo默认使用google protobuf来进行序列化和反序列化操作,所以需要安装 go get  github.com/golang/protobuf/proto ...

  4. shell脚本批量/单独启动、停止、重启java独立jar程序

    本人最近半年使用阿里dubbo做开发,并在公司内部大力进行推广,将原来一个笨重且不易于维护的大项目切分成多个相对独立的java程序,好处是显而易见的,但是随着切分的独立运行程序包越来越多,程序的部署变 ...

  5. swiper实现响应式全屏自动轮播

    html: <!--轮播 --> <div class="Excellent_swi"> <div class="swiper-contai ...

  6. C++如何显式调用常成员函数

    C++的常成员函数与同名成员函数重载时,该如何显式调用常成员函数? 具体的一个小例子: #include <iostream> using namespace std; class C1 ...

  7. CSU2188: Substring

    Description FST 是一名可怜的 ACMer,他很强,但是经常 fst,所以 rating 一直低迷. 但是重点在于,他真的很强!他发明了一种奇特的加密方式,这种加密方式只有 ACMer ...

  8. Linux修改启动界面、分辨率

    初识Linux 初识Linux(Centos 7.x),积累一些小技巧. 修改命令行界面的分辨率 # 备份配置文件 # 有些系统路径是/boot/grub...或者/boot/grub/menu.ls ...

  9. 常见的Redis问题?

    Redis的那些最常见面试问题[转] 1.什么是redis? Redis 是一个基于内存的高性能key-value数据库. 2.Reids的特点 Redis本质上是一个Key-Value类型的内存数据 ...

  10. 安装Vmware Tools出现错误

    安装Vmware Tools出现: Before you can compile modules, you need to have the following installed... makegc ...