insert into tablename
select * from tablename as of timestamp (systimestamp-interval '30' minute) where 조건절;
C:\>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 화 Oct 28 16:39:08 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> conn / as sysdba
연결되었습니다.
SQL> alter system set log_archive_start=true scope=spfile
2 ;
시스템이 변경되었습니다.
SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST='F:\oracle\oradata\archive' scope=spfile;
시스템이 변경되었습니다.
SQL> alter system set log_archive_format='arch%t%r%s.ARC' scope=spfile;
시스템이 변경되었습니다.
SQL> shutdown immediate
데이터베이스가 닫혔습니다.
데이터베이스가 마운트 해제되었습니다.
ORACLE 인스턴스가 종료되었습니다.
SQL> startup mount
ORACLE 인스턴스가 시작되었습니다.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
데이터베이스가 마운트되었습니다.
SQL> alter database archivelog;
데이타베이스가 변경되었습니다.
SQL> alter database open;
데이타베이스가 변경되었습니다.
SQL> archive log list;
데이터베이스 로그 모드 아카이브 모드
자동 아카이브 사용
아카이브 대상 F:\oracle\oradata\archive
가장 오래된 온라인 로그 순서 493
아카이브할 다음 로그 495
현재 로그 순서 495
SQL>
::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::