惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - Shark Xu

我的英雄梦和家国情怀——写于2021年国庆前夕 幻方算法 自己制作的粉碎机批处理程序 Ubuntu 16.10 server 相关 android sdk manager 假如不能从官方下载或者很慢,可以参照下面的网址 HttpModule生命周期示意图 Windows 2012 安装 .net framework 3.5 在Windows 2008/2008 R2 上配置IIS 7.0/7.5 故障转移集群 11G RAC 中 OCR 及Voting Disk 相关操作 RHEL 6 或者 Oracle Linux 6, 不关机识别新添加的scsi硬盘 在Window下安装Oracle 12C Cloud Control Agent 如何修改 EM12c 中 SYSMAN 用户的密码? 在Oracle Linux Server release 6.4下配置ocfs2文件系统 whoami 和 Who am i 手动升级11.2.0.1的rac数据库到11.2.0.4 oracle 11G rac 11.2.0.1 打补丁9413827 oracle 11g 使用物化视图远程增量刷新数据 Oracle Enterprise Linux 6.4 下配置vncserver Oracle Enterprise Linux 6.4 下挂载ISCSI 设备
ORACLE 11.2.0.4 OCR VOTING DISK 模拟恢复场景
Shark Xu · 2014-02-28 · via 博客园 - Shark Xu

① 备份
   ocrconfig -export 文件名
   或者
   ocrconfig -manualbackup
   或者
   找到备份   
   ocrconfig -local -showbackup manual

② 故意弄坏文件
   例如我的ocr的存放位置在
   DISKGROUP OCR 上
   可以使用ocrcheck,检查到 ocr存放位置
   清除OCR所在裸设备的磁盘信息
   dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=400
   dd if=/dev/zero of=/dev/raw/raw2 bs=1024k count=400

③ 查看状态
   crsctl status resource -t ,有可能已经不能查了

④ 更改OCR的位置,指定到一个裸设备上
   /etc/oracle/ocr.loc,例如
   ocrconfig_loc=/dev/raw/raw1
   local_only=false
   每个节点,都必须改成一样的

⑤ 重新导入,或者恢复备份
  ocrconfig -restore backup_20140228_153207.ocr
  或者ocrconfig -import ocr201402281534
  恢复后,可以使用
  ocrcheck 检查

⑥ 独占模式启动crs
   crsctl stop crs -f
   crsctl start crs -excl -nocrs

⑦ 恢复votedisk
   crsctl replace votedisk /dev/raw/raw2
   可以使用,查看状态
   crsctl query css votedisk

⑧ 重新启动crs
   
   强制关闭crs
   crsctl stop crs -f
   启动
   crsctl start crs
   
   请耐心等待crs,有时候要几分钟,甚至十几分钟的

  如果有问题,可以使用

  crsctl start cluster -all

⑨ grid 用户下,

   asmca,对磁盘组进行处理,尤其是对之前的ocr存放的所在的磁盘组,进行处理

   例如增加磁盘、删除磁盘等等,某些特别的情况下,也许原来的所在的磁盘组已经不存在

   但是在crs的resource还能看见。则需要使用crsctl delete resource ora.OCR.dg

10、重置OCR的位置

     ocrconfig -add +OCR

     ocrconfig -delete /dev/raw/raw1

11. 重置Votedisk

    crsctl replace vodetedisk +OCR