بعد از flashback در دیتابیس اصلی، وقتی خواستم روی استندبای همان دستور flashback را اجرا کنم با خطای زیر روبرو شدم:
flashback pluggable database PDB1 to timestamp TO_TIMESTAMP('20-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 :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 :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 :40:00','YYYY-MM-DD HH24:MI:SS')) as scn
from dual;
flashback pluggable database PDB1 to timestamp SCN 2114400;
خطای [ORA-600[kdsgrp1 موقع اجرای کوئری در دیتابیس استندبای
to ,scn ,timestamp ,flashback ,database ,pluggable ,pluggable database ,to timestamp ,database pdb1 ,2019 02 ,timestamp to ,flashback pluggable database ,dual flashback pluggable ,pluggable database before
درباره این سایت