직장생활/DataBase

Oracle 데이터 삭제된거 복구하기

체리백 2019. 5. 2.
반응형

- 2시간 전 데이터 조회

SELECT * FROM TEMP_TABLE as of timestamp(systimestamp - interval '2' hour) where seq = '749';

 

INSERT INTO TEMP_TABLE_BAK select * from TEMP_TABLE AS OF TIMESTAMP(SYSTIMESTAMP - INTERVAL '2' HOUR);

 

INSERT INTO TEMP_TABLE_BAK
select * from TEMP_TABLE as of timestamp(systimestamp - interval '2' hour) where seq = '749';

반응형

댓글