When there happen to delete by accident, we can restore the data by the below flashback query.

 

The below query restore the data existed at 2015-04-04 09:30:00.

SELECT * FROM EMP AS OF TIMESTAMP TO_TIMESTAMP('2015-04-04 09:30:00', 'YYYY-MM-DD HH:MI:SS')

WHERE name = 'JOHN';

 

INSERT INTO EMP (SELECT * FROM EMP AS OF TIMESTAMP TO_TIMESTAMP('2015-04-04 09:30:00', 'YYYY-MM-DD HH:MI:SS') WHERE name = 'JOHN');

'RDB > Oracle' 카테고리의 다른 글

oracle silent install  (0) 2020.07.22
oracle 데이터 이관후 정합성 체크  (0) 2020.07.22
oracle 18c trace 파일 삭제  (0) 2020.06.23
oracle 18c rac enq trace disable  (0) 2020.06.16
oracle csv 파일 생성  (0) 2020.06.10

+ Recent posts