You are on page 1of 1

Step1: Identify and Resolve Dependencies on the Primary Database

BEGIN
DBMS_TTS.TRANSPORT_SET_CHECK('USERS',TOOLS', TRUE,TRUE);
END;
/
SELECT * FROM TRANSPORT_SET_VIOLATIONS;

Step2: Identifying and Preserving Objects That Are Lost After TSPITR

SELECT OWNER, NAME, TABLESPACE_NAME,


TO_CHAR(CREATION_TIME, 'YYYY-MM-DD:HH24:MI:SS')
FROM TS_PITR_OBJECTS_TO_BE_DROPPED
WHERE TABLESPACE_NAME IN ('USERS','TOOLS')
AND CREATION_TIME > TO_DATE('02-NOV-13:07:03:11','YY-MON-DD:HH24:MI:SS')
ORDER BY TABLESPACE_NAME, CREATION_TIME;

Step3: export object which is required after Tablespace point-in time recovery.

Step4: Tablespace point-in time recovery command.

RECOVER TABLESPACE users


until time "to_date('2020-09-26 01:32:17','YYYY-MM-DD HH24:MI:SS')"
AUXILIARY DESTINATION '/u01/app/oracle/recover';

Step5:If TSPITR completes successfully, then back up the recovered tablespaces


before bringing them online.

BACKUP TABLESPACE users;


RUN {
allocate channel c1 type disk;
backup as backupset format '/u01/app/oracle/rman_bk/df_%d_%s_%p'
TABLESPACE users;
}

Step6:Bring the tablespaces back online

ALTER TABLESPACE users, tools ONLINE;

You might also like