- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
oracle 数据库恢复案例收藏(Oracle数据库恢复案例收藏)
oracle 数据库恢复案例收藏(Oracle数据库恢复案例收藏)
Own some small experiments, summed up the 10 kinds of Oracle file damage and recovery process
I. Basic Situation of database server
OS:RHEL 3
CPU:4 Intel (R), Xeon (TM), MP, CPU, 2.70GHz
Mem:8G
Swap:16G
Disk:120G
Oracle, Database, 10g, Enterprise, Edition, Release, 10.1.0.3.0
Two, backup mode
The database runs in archive mode and RMAN multilevel incremental backups. Strategy is as follows:
Set automatic backup of control files.
Make a full backup of the database every three months (including all the databases and read-only tablespace), and back up the archive logs.
Make a zero - level backup (not including read-only tablespace) every month, and backup the archive log.
Do one level backup once a week and backup archived logs.
Do a two level backup every day, and backup the archive log.
Three, restore case
All the prerequisites for recovery: complete backup of the database (including archive logs), control files, and SPFILE automatic backups.
1. corrupt a data file
(1) fault simulation
Delete data file: RM /u02/oradata/dbnms/users01.dbf
Close database: shutdown immediate;
ORA-01116:, error, in, opening, database, file, 4
ORA-01110:, data, file, 4:,/u02/oradata/dbnms/users01.dbf
ora-27041:无法打开文件
Linux错误:2:没有这样的文件或目录
补充资料:3
强行关闭:sutdown中止;
启动数据库:启动;
ora-01157:无法识别/锁定数据文件4看DBWR跟踪文件
ora-01110:数据文件4:/ / / / users01 U02 oradata dbnms DBF”。
(2)恢复步骤
RMAN目标系统”dbnms目录rmanuser @催化剂
运行{
分配通道C1类型磁盘;
恢复数据文件4;
恢复数据文件4;
SQL的数据库文件4在线”;
打开SQL数据库;
释放通道C1;
}
目前作为数据库系统
选择instance_name,V $实例状态;
instance_name状态
---------------- ------------
dbnms开放
恢复成功
2。损坏全部数据文件
(1)故障模拟
删除数据文件:RM / U02 / oradata / dbnms / *。
DBF
Force off: sutdown abort;
Start database: startup;
ORA-01157:, cannot, identify/lock, data, file, 1 - see, DBWR,, trace, file
ORA-01110:, data, file, 1:,/u02/oradata/dbnms/system01.dbf
(2) recovery step
RMAN, target, sys@dbnms, catalog, rmanuser@cata
Run{
Allocate, channel, C1, type, disk;
Restore database;
Recover database;
SQLalter database open
您可能关注的文档
- imba(IMBA).doc
- id 32 staph 葡萄球菌的鉴定系统(ID 32 Staph staphylococcal identification system).doc
- iis无法安装(IIS cannot install).doc
- idata_一部别具特色的词典_评_易混同音近音词解析词典_王芳智(Idata_ is a unique _ rating _ dictionary easy mixed words dictionary _ homophone analytic Wang Fangzhi).doc
- internet 的影响(the internet 的影响).doc
- ioc与di(ioc与di).doc
- inter应用 考试大纲_考试大纲_上海市干部培训中心(The application of inter _ syllabus syllabus _ Shanghai cadres training center).doc
- ipad2你不可不知的26个使用小技巧(Ipad2 you must not know the 26 little tricks used).doc
- ipad使用技巧(IPad usage skills).doc
- ipad2和ipad有什么区别和不同(What are the differences and differences between ipad2 and iPad).doc
- 教育信息化助力乡村教育振兴研究 (31).docx
- 浅谈新课改下初中物理教学生活化.docx
- 教育信息化助力乡村教育振兴的研究 (3).docx
- 2024年云南省统计局普查中心统计分析招录2人《行政职业能力测验》高频考点、难点(答案详解版).docx
- 2024年镇安县大坪镇一级科员招录1人《行政职业能力测验》高频考点、难点(答案详解版).docx
- 2024年弋阳县自然资源局综合管理岗招录1人《行政职业能力测验》高频考点、难点(含详细答案).docx
- 2024年邵阳县公安局特警招录4人《行政职业能力测验》高频考点、难点(含详细答案).docx
- 2024年汝城县公安局特警招录9人《行政职业能力测验》高频考点、难点(含详细答案).docx
- 2024年西安市计划生育协会二级主任科员招录1人《行政职业能力测验》高频考点、难点(答案详解版).docx
- 2024年中国民主同盟开封市委员会招录1人《行政职业能力测验》高频考点、难点(答案详解版).docx
文档评论(0)