使用BBED COPY命令,模拟oracle数据块的损坏
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了使用BBED COPY命令,模拟oracle数据块的损坏,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3178字,纯文字阅读大概需要5分钟。
内容图文
File: /u01/app/oracle/oradata/orcl/system01.dbf (1)Block: 520 Offsets: 0 to 511 Dba:0x00400208
------------------------------------------------------------------------
1ea20000 14008000 4f070000 00000104 8b800000 02000000 80c08300 00000000
00000000 00f80000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<32 bytes per line>
异常关闭,再次打开就会报520号块出错的问题了
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.
Total System Global Area 1269366784 bytes
Fixed Size 2252864 bytes
Variable Size 1040191424 bytes
Database Buffers 218103808 bytes
Redo Buffers 8818688 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00704: bootstrap process failure
ORA-01578: ORACLE data block corrupted (file # 1, block # 520)
ORA-01110: data file 1: ‘/u01/app/oracle/oradata/orcl/system01.dbf‘
Process ID: 1961
Session ID: 1 Serial number: 5
SQL> exit
如何恢复呢,如果有备份,可以使用blockrecover datafile 1 block 520;命令来恢复指定数据文件的指定块
RMAN> blockrecover datafile 1 block 520;
Starting recover at 23-JUN-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=19 device type=DISK
channel ORA_DISK_1: restoring block(s)
channel ORA_DISK_1: specifying block(s) to restore from backup set
restoring blocks of datafile 00001
channel ORA_DISK_1: reading from backup piece /home/oracle/ora-datafile1.bak
channel ORA_DISK_1: piece handle=/home/oracle/ora-datafile1.bak tag=TAG20160623T020307
channel ORA_DISK_1: restored block(s) from backup piece 1
channel ORA_DISK_1: block restore complete, elapsed time: 00:00:01
starting media recovery
media recovery complete, elapsed time: 00:00:01
Finished recover at 23-JUN-16
RMAN> alter database open;
database opened
RMAN> exit
本文出自 “不忘初心Oracle” 博客,请务必保留此出处http://136018.blog.51cto.com/126018/1792047
使用BBED COPY命令,模拟oracle数据块的损坏
标签:oracle bbed rman
本文系统来源:http://136018.blog.51cto.com/126018/1792047
内容总结
以上是互联网集市为您收集整理的使用BBED COPY命令,模拟oracle数据块的损坏全部内容,希望文章能够帮你解决使用BBED COPY命令,模拟oracle数据块的损坏所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。