问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

恢复数据库的时候报错,我该怎么恢复?

发布网友 发布时间:2022-04-09 12:46

我来回答

2个回答

懂视网 时间:2022-04-09 17:07

报错1、数据库开启block change tracking ,恢复完成后打开因文件不存在报错。


RMAN> alter database open resetlogs;


RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of alter db command at 10/25/2016 15:02:16

ORA-19751: could not create the change tracking file

ORA-19750: change tracking file: ‘+DATA/cx/changetracking/ctf.348.875544631‘

ORA-17502: ksfdcre:4 Failed to create file +DATA/cx/changetracking/ctf.348.875544631

ORA-15046: ASM file name ‘+DATA/cx/changetracking/ctf.348.875544631‘ is not in single-file creation form

ORA-17503: ksfdopn:2 Failed to open file +DATA/cx/changetracking/ctf.348.875544631

ORA-15012: ASM file ‘+DATA/cx/changetracking/ctf.348.875544631‘ does not exist


RMAN>   


故障处理:

关闭block-change-track功能,只能在open或者mount状态修改。恢复时应该在还原结束后,打开数据库前关闭block-change-track功能。

$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 25 15:15:43 2016


Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

SQL> select status,filename from v$block_change_tracking;

select status,filename from v$block_change_tracking

                            *

ERROR at line 1:

ORA-19755: could not open change tracking file

ORA-19750: change tracking file:

‘+DATA/cx/changetracking/ctf.348.875544631‘

ORA-17503: ksfdopn:2 Failed to open file

+DATA/cx/changetracking/ctf.348.875544631

ORA-15012: ASM file ‘+DATA/cx/changetracking/ctf.348.875544631‘ does not

exist


SQL> alter database disable block change tracking;


Database altered.

该命令执行后,在警告日志中可以发现删除+DATA/cx/changetracking/ctf.348.875544631文件的语句。

SQL> alter database open;


Database altered.


SQL>

报错2

RMAN> restore database;


Starting restore at 2016-10-19 10:23:51

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=1933 instance=zx1 device type=DISK

allocated channel: ORA_DISK_2

channel ORA_DISK_2: SID=2319 instance=zx1 device type=DISK

allocated channel: ORA_DISK_3

channel ORA_DISK_3: SID=2705 instance=zx1 device type=DISK

allocated channel: ORA_DISK_4

channel ORA_DISK_4: SID=3091 instance=zx1 device type=DISK

released channel: ORA_DISK_1

released channel: ORA_DISK_2

released channel: ORA_DISK_3

released channel: ORA_DISK_4

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of restore command at 10/19/2016 10:23:52

ORA-19554: error allocating device, device type: SBT_TAPE, device name: 

ORA-27211: Failed to load Media Management Library

Additional information: 2


RMAN> 

故障处理:

RMAN> show all;

RMAN configuration parameters for database with db_unique_name ZX are:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 60 DAYS;

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO ‘SBT_TAPE‘;

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F‘; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO ‘%F‘; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;

CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM ‘AES128‘; # default

CONFIGURE COMPRESSION ALGORITHM ‘BASIC‘ AS OF RELEASE ‘DEFAULT‘ OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘+data/snapcf_zx.f‘;

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘+DATA/snapcf_zx.f‘;


RMAN> show default device type;


RMAN configuration parameters for database with db_unique_name ZX are:

CONFIGURE DEFAULT DEVICE TYPE TO ‘SBT_TAPE‘;


RMAN>

RMAN> configure channel device type ‘SBT_TAPE‘ CLEAR;

old RMAN configuration parameters are successfully deleted

RMAN> show all;


RMAN configuration parameters for database with db_unique_name ZX are:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 60 DAYS;

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO ‘SBT_TAPE‘;

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F‘; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO ‘%F‘; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;

CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM ‘AES128‘; # default

CONFIGURE COMPRESSION ALGORITHM ‘BASIC‘ AS OF RELEASE ‘DEFAULT‘ OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘+data/snapcf_zx.f‘;

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘+DATA/snapcf_zx.f‘;



RMAN> CONFIGURE DEFAULT DEVICE TYPE TO ‘disk‘;


old RMAN configuration parameters:

CONFIGURE DEFAULT DEVICE TYPE TO ‘SBT_TAPE‘;

new RMAN configuration parameters:

CONFIGURE DEFAULT DEVICE TYPE TO ‘DISK‘;

new RMAN configuration parameters are successfully stored


RMAN> show all;

RMAN configuration parameters for database with db_unique_name ZX are:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 60 DAYS;

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO ‘DISK‘;

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F‘; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM ‘AES128‘; # default

CONFIGURE COMPRESSION ALGORITHM ‘BASIC‘ AS OF RELEASE ‘DEFAULT‘ OPTIMIZE FOR LOAD TRUE ; # default

CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘+data/snapcf_zx.f‘;

CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘+DATA/snapcf_zx.f‘;

RMAN> 

完成后,退出后重新登录正常。


报错3:备份加密还原报错


RMAN> restore controlfile from ‘/dbbackup/CTL_ZX_8796_1_923736016.bak‘;


Starting restore at 2016-10-18 17:53:27

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=1547 instance=jxkzx1 device type=DISK


channel ORA_DISK_1: restoring control file

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of restore command at 10/18/2016 17:53:29

ORA-19870: error while restoring backup piece /dbbackup/CTL_ZX_8796_1_923736016.bak

ORA-19913: unable to decrypt backup

ORA-28365: wallet is not open


RMAN> 

故障处理:



RMAN>set dencryption on identified by ‘123456’;

设置解密密码后,开始还原数据库。





本文出自 “技术成就梦想!” 博客,请务必保留此出处http://dreamsanqin.blog.51cto.com/845412/1867575

rman还原数据库数据库报错问题处理

标签:rman   block   change   

热心网友 时间:2022-04-09 14:15

你好,数据库报错的一般是不能恢复的,可能是因为你原先的数据压缩文件全部没有了,所以才导致你现在的情况。追问这种情况下还能恢复吗?

追答在这种情况下的数据库一般是很难恢复的,可以说恢复的几率等于0.。

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
华硕笔记本电脑触摸板怎么开笔记本电脑触摸板怎么开启和关闭_百度知 ... 陕西职务侵占案立案准则 结婚后我的恋情维系了十年,怎么做到的? 玉米仁子饭产自哪里 中国期货交易所的交易品种有哪些? 历史要怎么读,有啥诀窍 高中历史诀窍 年终会活动策划方案 深度解析:第一财经回放,探索财经新风向 逆水寒手游庄园怎么邀请好友同住 南宋胡记糕点怎么样 你吃过哪些“好吃到哭”的小零食? M158b打印机如何拆出鼓芯 有人知道南宋胡记糕点吗? 在冰箱放了七个月的雪花酥还能不能吃 富士施乐M158b怎么样?富士施乐M158b好吗 拨打12388投诉都需要提供什么信息 12388举报电话是收费还是免费,回答正确选你满意 12388是直接打给中央的吗 投诉民政局电话号码是多少 12388是直接打给中央的吗?- 问一问 12388是直接打给中央的吗- 问一问 剥开竹笋的中心那个白色的是什么? 什么牌子的手剥笋好吃?? 竹笋是什么 竹笋的剥皮方法有哪些 手剥笋是什么竹子的笋? 淡化南美白对虾60天 水应该肥点还是瘦点好呢? 手机在晚上没有灯光下亮度应该调到什么程度最好呢? 晚上灯光下看手机机模糊配什眼镜好? 陈冠希发声斥歧视,“三观”还挺正?你怎么看? 微信公众号开发带参数的二维码时,添加的URL必须是自己建立的网站吗? 微信公众号二维码链接的是网址么 挨打后情绪低落不吃东西,狗狗的心理障碍如何疏导? 小狗被打后怎么办 小狗被我打害怕我了怎么办?怎么能训练回来? 去香港打9价HPV疫苗医生会询问是否是处女吗? 女朋友打了9价宫颈癌疫苗,她一定时*吗。我们没有做过。这说明她很干净吗? 狗狗被虐待性情大变 我怎么办? 狗狗被打了会不会有心理阴影? 头层牛皮好?还是人造革好?先后对于鞋子来说我买的是合成革的鞋子质量在皮里面对比怎么样_百度问一问 狗狗被打后的心理是什么 狗狗被打了会记仇吗 九价疫苗,必须是处吗? 狗狗被同类欺负后的心理 九价疫苗是处女才能打吗 CAD画的图怎样发到手机上 狗狗被打后对它心理什么影响? 我一个手机号注册了两个,另外一个登不上了,怎么办? 打过九价的女人千万不能娶 小狗被打怕了过多久会好啊 刚注册的登录不上怎么办