SQL> startup mount
ORACLE instance started.
Total System Global Area 238034944 bytes
Fixed Size 2227136 bytes
Variable Size 180356160 bytes
Database Buffers 50331648 bytes
Redo Buffers 5120000 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> alter system set db_recovery_file_dest_size=1000M scope=both;
System altered.
SQL> alter system set db_recovery_file_dest='/app/oracle/fb_area' scope=both;
System altered.
SQL> alter database flashback on;
Database altered.
SQL>
SQL> create table lim.fb_test as select level as c1 from dual connect by level <= 10;
Table created.
SQL> select systimestamp from dual;
SYSTIMESTAMP
---------------------------------------------------------------------------
13-OCT-14 04.52.38.823340 PM +09:00
SQL> truncate table fb_test;
Table truncated.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 238034944 bytes
Fixed Size 2227136 bytes
Variable Size 180356160 bytes
Database Buffers 50331648 bytes
Redo Buffers 5120000 bytes
Database mounted.
SQL> flashback database to timestamp to_timestamp('2014/10/13 16:52:38','yyyy/mm/dd hh24:mi:ss');
Flashback complete.
SQL> alter database open resetlogs;
Database altered.
SQL> select * from lim.fb_test;
C1
----------
1
2
3
4
5
6
7
8
9
10
10 rows selected.
SQL>
- 강좌 URL : http://www.gurubee.net/lecture/4006
- 구루비 강좌는 개인의 학습용으로만 사용 할 수 있으며, 다른 웹 페이지에 게재할 경우에는 출처를 꼭 밝혀 주시면 고맙겠습니다.~^^
- 구루비 강좌는 서비스 제공을 위한 목적이나, 학원 홍보, 수익을 얻기 위한 용도로 사용 할 수 없습니다.