دیتابیس اوراکل

دیتابیس اوراکل
طبقه بندی موضوعی

۱ مطلب در بهمن ۱۳۹۷ ثبت شده است

ORA-39885: flashback/PITR of a pluggable database before its creation is not allowed

بعد از flashback در دیتابیس اصلی، وقتی خواستم روی استندبای همان  دستور flashback  را اجرا کنم با خطای زیر روبرو شدم:

flashback pluggable database PDB1 to timestamp TO_TIMESTAMP('2018-11-06 10:25:00','YYYY-MM-DD HH24:MI:SS');

ORA-39885: flashback/PITR of a pluggable database before its creation is not allowed

 

بعد از آن برای همان زمان ، در دیتابیس اصلی SCN مربوطه را پیدا و دستور flashback را مجددا با دستور SCN اجرا کردیم:

select timestamp_to_scn(TO_TIMESTAMP('2019-02-01 18:45:00','YYYY-MM-DD HH24:MI:SS')) as scn

 from dual;

flashback pluggable database PDB1 to timestamp SCN 211427454;

 

بعد از اجرای دستور بالا مجددا خطای زیر را دریافت شد:

(3):Recovery of pluggable database PDB1 aborted due to pluggable database open resetlog marker.

(3):To continue recovery, restore all data files for this PDB to checkpoint SCN lower than 211427382, or timestamp before 02/01/2019 18:45:01, and restart recovery

Errors with log +FRA/IUMSPRD1/ARCHIVELOG/2019_02_02/thread_1_seq_3450.674.999172645

MRP0: Background Media Recovery terminated with error 39874

2019-02-02T12:42:32.802424+00:00

Errors in file /u01/app/oracle/diag/rdbms/iumsprd1/iumsprd/trace/iumsprd_pr00_100007.trc:

ORA-39874: Pluggable Database PDB1 recovery halted

ORA-39873: Restore all data files to a checkpoint SCN lower than 211427382.

 

برای حل خطای بالا ( همانطور که در خطا گفته شده است ) ، PDB را به SCN قبل از زمان تعیین شده flashback کردیم و مشکل حل شد.

select timestamp_to_scn(TO_TIMESTAMP('2019-02-01 18:40:00','YYYY-MM-DD HH24:MI:SS')) as scn

 from dual;

flashback pluggable database PDB1 to timestamp SCN 211418400;