flashback技術之---flashback drop
簡而言之,flashback drop就是將已經被drop的表從recycebin中恢復回來,表被drop後,實際上只是改了個名,並沒有釋放空間。
1. 啟用和禁用recyclebin:
ALTER SESSION SET recyclebin = OFF;
ALTER SYSTEM SET recyclebin = OFF;
ALTER SESSION SET recyclebin = ON;
ALTER SYSTEM SET recyclebin = ON;
2.使用recyclebin進行flashback drop
SQL> create table test tablespace users as select * from dba_objects;
Table created.
SQL> select object_name,original_name,operation,type,ts_name,createtime,droptime from recyclebin;
no rows selected
SQL> drop table test;
Table dropped.
SQL> select object_name,original_name,operation,type,ts_name,createtime,droptime from recyclebin;
OBJECT_NAME ORIGINAL_N OPERATION TYPE TS_NAME CREATETIME DROPTIME
------------------------------ ---------- --------- ---------- ---------- ------------------- -------------------
BIN$xRCsD3sxEqbgQAB/AQAqpw==$0 TEST DROP TABLE USERS 2012-07-18:09:42:38 2012-07-18:09:42:48
SQL> FLASHBACK TABLE test TO BEFORE DROP RENAME TO TEST_BAK;
Flashback complete.
SQL> select count(*) from test_bak;
COUNT(*)
----------
44940
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10972173/viewspace-738208/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- flashback技術之---flashback query
- flashback技術之---flashback table
- flashback技術之---flashback databaseDatabase
- flashback技術之---flashback Transaction Query
- flashback技術之---flashback version query
- 【Flashback】使用Flashback Drop技術閃回被DROP表的指定版本資料
- flashback總結三之Flashback_DROP
- 【Flashback】Flashback Drop閃回刪除功能實踐
- Flashback閃回技術
- flashback drop/query/table/database/archiveDatabaseHive
- oracle flashback技術詳解Oracle
- Oracle Flashback 技術 總結Oracle
- Oracle Flashback技術總結Oracle
- Flashback Drop的應用與限制
- oracle11g flashback技術Oracle
- Oracle Flashback 技術大解密Oracle解密
- Oracle回收站及flashback drop(上)Oracle
- Oracle回收站及flashback drop(下)Oracle
- oracle flashback特性(2.1)--Flashback Table之RECYCLEBINOracle
- flashback總結一之Flashback_DatabaseDatabase
- flashback總結四之Flashback_Query
- Oracle閃回技術--Flashback Version QueryOracle
- flashback閃回技術應用解析
- 應用oracle flashback--Flashback Table之RECYCLEBINOracle
- flashback總結六之Flashback_Transaction_Query
- Flashback Drop閃回刪除功能實踐
- Oracle10g的Flashback之Flashback Transaction QueryOracle
- 【徵文】應用oracle flashback(2.1)--Flashback Table之RECYCLEBINOracle
- flashback總結五之Flashback_Query_Version(上)
- 閃回之 回收站、Flashback Drop (table、index、trigger等)Index
- 全面學習oracle flashback特性(2.1)--Flashback Table之RECYCLEBINOracle
- Oracle Database 11g閃回技術flashbackOracleDatabase
- Oracle 10g Flashback 技術小結(zt)Oracle 10g
- oracle flashback特性(2.2)--Flashback Table之從UNDO中恢復Oracle
- 【徵文】應用oracle flashback(2.3)--Flashback Table之注意事項Oracle
- flashback總結五之Flashback_Query_Version(下)_補充
- 【Flashback】Flashback Query功能實踐
- 【Flashback】Flashback Table功能實踐