循序漸進oracle第8章:Oracle的閃回特性之恢復已經提交刪除的表資料
/* 2008/06/06
*環境:Windows XP +Oracle10.2.0.1
*循序漸進oracle——資料庫管理、最佳化與備份恢復
*循序漸進oracle第8章:Oracle的閃回特性之恢復已經提交刪除的表資料
*/
1 、檢視閃回的空間大小和位置
SQL> show parameter db_recovery
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest string G:\oracle\product\10.2.0/flash
_recovery_area
db_recovery_file_dest_size big integer 2G
預設為2G大小
2、恢復已經刪除提交了資料
SQL> connect scott/mzl
已連線。
SQL> select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
50 support denver
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS beijing
SQL> delete dept where deptno=10;
已刪除 1 行。
SQL> commit;
提交完成。
SQL> select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
50 support denver
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS beijing
SQL> create table dept_recover
2 as
3 select * from dept where 1=0;
表已建立。
SQL> create table dept_recover
2 as
3 select * from dept as of timestamp to_timestamp('2008-06-07 1:00:00','yyyy-
mm-dd hh24:mi:ss');
表已建立。
SQL> select * from dept_recover;
DEPTNO DNAME LOC
---------- -------------- -------------
50 support denver
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS beijing
SQL> drop table dept;
表已刪除。
SQL> create table dept
2 as
3 select * from dept_recover;
表已建立。
SQL> select * from dept;
DEPTNO DNAME LOC
---------- -------------- -------------
50 support denver
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS beijing
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12778571/viewspace-341810/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【北亞資料恢復】誤刪除oracle表和誤刪除oracle表資料的資料恢復方法資料恢復Oracle
- Oracle閃回功能恢復偶然丟失的資料(轉)Oracle
- [Oracle]Oracle資料庫資料被修改或者刪除恢復資料Oracle資料庫
- 恢復Oracle資料庫誤刪除資料的語句Oracle資料庫
- linux下恢復誤刪除oracle的資料檔案LinuxOracle
- Oracle恢復誤刪資料Oracle
- 【資料庫資料恢復】LINUX環境下ORACLE資料庫誤刪除的資料恢復資料庫資料恢復LinuxOracle
- 【oracle資料庫資料恢復】誤操作導致的資料庫誤刪除的資料恢復案例Oracle資料庫資料恢復
- oracle使用小記、刪除恢復Oracle
- Oracle閃回技術 為Oracle閃回配置資料庫Oracle資料庫
- 【資料庫資料恢復】HP-UX系統ORACLE資料庫被誤刪除的資料恢復資料庫資料恢復UXOracle
- Oracle資料庫閃回Oracle資料庫
- Oracle 檔案意外刪除恢復(Linux)OracleLinux
- 【資料庫資料恢復】如何恢復Oracle資料庫truncate表的資料資料庫資料恢復Oracle
- Oracle中刪除表中的重複資料Oracle
- Oracle資料庫恢復之resetlogsOracle資料庫
- ORACLE刪除-表分割槽和資料Oracle
- Oracle 12.2新特性: PDB級閃回資料庫(Flashback PDB)Oracle資料庫
- Oracle 12C新特性-RMAN恢復表Oracle
- Oracle drop分割槽表單個分割槽無法透過閃回恢復Oracle
- Oracle 閃回資料庫測試Oracle資料庫
- 詳解oracle資料庫閃回Oracle資料庫
- 刪除linux下的oracle資料庫LinuxOracle資料庫
- Oracle快速找回被刪除的表Oracle
- MySQL資料庫表誤刪除恢復(一)MySql資料庫
- 【RECO_ORACLE】Oracle閃回PDB的方法Oracle
- Orcale利用閃回功能恢復資料
- [20210930]bbed恢復刪除的資料.txt
- oracle刪除重資料方法Oracle
- 【北亞資料恢復】異常斷電導致Oracle資料庫報錯的oracle資料恢復資料恢復Oracle資料庫
- 【NetApp資料恢復案例】針對NetApp誤刪除資料的恢復APP資料恢復
- 如何使用 testdisk 恢復已刪除的檔案
- 在LVM中恢復已刪除的物理卷LVM
- 【資料庫資料恢復】Oracle資料庫誤truncate table的資料恢復案例資料庫資料恢復Oracle
- 【資料庫資料恢復】誤truncate table的Oracle資料庫資料恢復方案資料庫資料恢復Oracle
- 【儲存資料恢復案例】Netapp誤操作刪除lun的資料恢復資料恢復APP
- 【儲存資料恢復】NetApp儲存誤刪除的資料恢復案例資料恢復APP
- Oracle資料庫閃回區空間不足Oracle資料庫
- 【伺服器資料恢復】LINUX誤刪除、格式化的資料恢復伺服器資料恢復Linux