잘못해서 데이터나 PL-SQL을 삭제한 경우, 응급 조치하는 방법이며,
휴지통을 이용하는 방법과 DBA 권한을 이용하여 복구하는 방법이 있다.
1. Data Delete 복구
가) 분단위 조회
- Select * from Table_Name AS of timestamp(systimestamp-interval '600' minute);
나) 시간단위 조회
- Select * from Table_Name AS of timestamp(systimestamp-interval '24' hour)
2. Data Drop 시점 복구
가) Select * from user_recyclebin where ORIGINAL_NAME IN('table_name');
나) DBA 권한
- Table Drop 복구
flashback 관련
- 프로시져, 패키지 복구
select text from dba_source as of timestamp to_date('201704201000', 'yyyymmddhh24mi')
where name = 'REPORT_MOVE';
'IT 주저리주저리' 카테고리의 다른 글
자동 Insert/Update/Delete/Select PLSQL 만들어주는 Query (0) | 2016.11.30 |
---|---|
SAP ABAP 유용한 TCODE (0) | 2016.08.30 |
적정재고 관리는? (0) | 2016.06.24 |
오라클 팁--이제 기억이 가물가물해서 정리해 둔다 (0) | 2016.06.17 |