自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle表空間中的實(shí)際數(shù)據(jù)文件丟失的恢復(fù)

數(shù)據(jù)庫 Oracle
本文主要講述的是Oracle表空間的實(shí)際數(shù)據(jù)文件丟失的恢復(fù)的實(shí)際操作步驟,以下就是文章具體內(nèi)容的描述,望你會(huì)有所收獲。

以下的文章主要介紹的是Oracle表空間的實(shí)際數(shù)據(jù)文件丟失的恢復(fù),我們假設(shè)Oracle數(shù)據(jù)庫其處于歸檔模式。我們?cè)跀?shù)據(jù)庫里重建一個(gè)Oracle表空間,一共有3個(gè)相關(guān)的數(shù)據(jù)文件。各10M,表空間內(nèi)有一張23M的表。

 

  1. SQL> select count(*) from ldy.t1;  
  2. COUNT(*)  
  3. 605136  
  4. SQL> col segment_name for a20  
  5. SQL> col tablespace_name for a20  
  6. SQL> select segment_name,tablespace_name,bytes/1024/1024 mb from dba_segments where owner='LDY';  
  7. SEGMENT_NAME TABLESPACE_NAME MB  
  8. T1 LDY 23  

 

關(guān)閉數(shù)據(jù)庫,將Oracle表空間的其中一個(gè)數(shù)據(jù)文件刪除,啟動(dòng)后報(bào)錯(cuò):

 

  1. SQL> startup 

Oracle例程已經(jīng)啟動(dòng)。

 

  1. Total System Global Area 612368384 bytes  
  2. Fixed Size 1250428 bytes  
  3. Variable Size 230689668 bytes  
  4. Database Buffers 373293056 bytes  
  5. Redo Buffers 7135232 bytes  

 

數(shù)據(jù)庫裝載完畢。

ORA-01157: 無法標(biāo)識(shí)/鎖定數(shù)據(jù)文件 6 - 請(qǐng)參閱 DBWR 跟蹤文件

ORA-01110: 數(shù)據(jù)文件 6: 'E:\ORACLE\ORADATA\LDY01.DBF'

此時(shí)數(shù)據(jù)庫為mount狀態(tài)。

 

  1. SQL> select open_mode from v$database;  
  2. OPEN_MODE  
  3. MOUNTED  

 

增加回該數(shù)據(jù)文件。

 

  1. SQL>alter database create datafile 'E:\ORACLE\ORADATA\LDY01.DBF'; 

數(shù)據(jù)庫已更改。

介質(zhì)恢復(fù)。

 

  1. SQL>recover datafile 6; 

完成介質(zhì)恢復(fù)。

數(shù)據(jù)庫打開,正常查詢。

 

  1. SQL> alter database open; 

數(shù)據(jù)庫已更改。

 

  1. SQL> select count(*) from ldy.t1;  
  2. COUNT(*)  
  3. 605136   

以上的相關(guān)內(nèi)容就是對(duì)@Oracle表空間的數(shù)據(jù)文件丟失的恢復(fù)的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle存儲(chǔ)過程中如何準(zhǔn)確的實(shí)現(xiàn)分頁
  2. Oracle數(shù)據(jù)庫與FoxPro數(shù)據(jù)如何轉(zhuǎn)換
  3. Oracle數(shù)據(jù)庫中如何用GROUPING SETS進(jìn)行分組自定義
  4. 用Oracle SQL語句來實(shí)現(xiàn)進(jìn)制間的相互轉(zhuǎn)換
  5. Oracle數(shù)據(jù)庫中null的具體使用方案
責(zé)任編輯:佚名 來源: 博客園
相關(guān)推薦

2011-03-22 16:20:19

恢復(fù)數(shù)據(jù)庫

2010-04-08 15:59:50

Oracle undo

2011-03-25 10:26:34

Oracle數(shù)據(jù)庫管理表空間

2011-08-29 16:41:14

OracleRMAN恢復(fù)數(shù)據(jù)文件的恢復(fù)

2011-05-17 11:33:43

oracle數(shù)據(jù)庫

2010-04-06 10:11:11

Oracle備份

2010-04-02 18:01:39

Oracle清理

2010-04-23 12:39:02

Oracle7.X 回

2011-08-29 17:00:47

Oracle數(shù)據(jù)庫RM表空間數(shù)據(jù)塊介質(zhì)

2010-10-29 14:03:39

Oracle移動(dòng)數(shù)據(jù)文

2010-04-30 16:01:17

2010-05-10 18:05:15

Oracle釋放und

2011-05-24 10:26:12

Oracle數(shù)據(jù)庫日志文件

2011-08-23 11:09:36

Oraclerman恢復(fù)system表空間恢復(fù)

2010-05-05 17:46:07

Oracle7.X

2010-05-10 18:46:14

Oracle更改表空間

2010-04-27 14:18:56

Oracle控制文件

2010-04-27 17:38:43

Oracle數(shù)據(jù)文件

2010-05-07 12:35:05

Oracle spat

2017-09-06 14:58:57

Oracle數(shù)據(jù)文件臨時(shí)文件
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)