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

Oracle數(shù)據(jù)字典的恢復(fù)場(chǎng)景

數(shù)據(jù)庫(kù) Oracle
以下的文章主要介紹的是Oracle數(shù)據(jù)庫(kù)中的ODU幾種相關(guān)恢復(fù)場(chǎng)景中Oracle數(shù)據(jù)字典的相關(guān)內(nèi)容的介紹,以下就是文章的主要內(nèi)容的介紹。

以下的文章主要介紹的是Oracle數(shù)據(jù)庫(kù)中的ODU幾種相關(guān)恢復(fù)場(chǎng)景,因?yàn)镺DU實(shí)際應(yīng)用命令比較多,尤其是unload命令,其實(shí)際應(yīng)用是非常復(fù)雜的,以下的文章將簡(jiǎn)單介紹幾種場(chǎng)景下使用ODU進(jìn)行數(shù)據(jù)恢復(fù)時(shí),使用的命令序列。

場(chǎng)景1. 數(shù)據(jù)庫(kù)不能啟動(dòng),但是SYSTEM表空間中的Oracle數(shù)據(jù)字典是完整的。

生成數(shù)據(jù)字典:unload dict

列出用戶: list user

列出用戶下的所有表: list table username

恢復(fù)表: unload table username.tablename

也可以按用戶恢復(fù): unload user username

場(chǎng)景2. 表被TRUNCATE。

OFFLINE表所在的表空間

生成Oracle數(shù)據(jù)字典:unload dict

顯示表的段頭:desc username.tablename

找到實(shí)際的data object id: dump datafile file# block block#

掃描數(shù)據(jù):scan extent

恢復(fù)表:unload table username.tablename object object_id

UPDATE:

從3.0.7版本開始,恢復(fù)Truncate表更方便,只需要執(zhí)行下面的步驟:

OFFLINE表所在的表空間

生成Oracle數(shù)據(jù)字典:unload dict

掃描數(shù)據(jù):scan extent

恢復(fù)表:unload table username.tablename object auto

場(chǎng)景3. 表被DROP。

OFFLINE表所在的表空間

使用logminer從日志里面挖掘被drop掉的表其data object id,如果不能挖掘,按下面的場(chǎng)景4進(jìn)行恢復(fù)。

掃描數(shù)據(jù):scan extent

如果沒有表結(jié)構(gòu)信息,需要自動(dòng)來(lái)判斷:unload object data_object_id sample

恢復(fù)表:unload object data_object_id column coltype coltype…

場(chǎng)景4. 系統(tǒng)表空間損壞。

掃描數(shù)據(jù):scan extent

搜索數(shù)據(jù):unload object all sample

從結(jié)果文件sample.txt查找需要的數(shù)據(jù)

恢復(fù)需要的表:unload object data_object_id column coltype coltype…

場(chǎng)景5. 表中數(shù)據(jù)被DELETE。

將參數(shù)unload_deleted設(shè)置為YES

生成Oracle數(shù)據(jù)字典:unload dict

恢復(fù)表: unload table username.tablename

【編輯推薦】

  1. Oracle樹的存儲(chǔ)過(guò)程的實(shí)際操作4步驟
  2. Oracle 11g調(diào)用相關(guān)函數(shù)的5種方法
  3. 對(duì)Oracle數(shù)據(jù)字典的文檔描述
  4. 想提高Oracle性能,如何優(yōu)化數(shù)據(jù)庫(kù)?
  5. 配置Oracle RAC中應(yīng)注意的問(wèn)題
責(zé)任編輯:佚名 來(lái)源: 博客園
相關(guān)推薦

2015-07-22 17:21:34

Oracle數(shù)據(jù)字典

2010-04-09 10:13:13

Oracle數(shù)據(jù)字典

2010-03-31 16:38:02

Oracle數(shù)據(jù)字典

2010-04-06 17:17:16

Oracle數(shù)據(jù)字典

2010-04-27 16:18:26

Oracle數(shù)據(jù)字典

2010-04-22 09:36:56

Oracle數(shù)據(jù)字典

2010-04-14 14:09:38

Oracle管理腳本

2010-05-10 15:22:34

Oracle數(shù)據(jù)字典

2010-11-15 16:08:15

ORACLE系統(tǒng)表

2010-04-06 17:36:15

Oracle數(shù)據(jù)字典

2009-10-22 16:35:48

Oracle系統(tǒng)管理員Oracle數(shù)據(jù)字典

2010-04-22 10:00:41

Oracle數(shù)據(jù)字典

2011-05-26 10:01:16

Oracle數(shù)據(jù)庫(kù)ODU

2010-07-14 13:50:48

SQL Server數(shù)

2023-05-03 09:18:24

RedisDB數(shù)據(jù)字典Dict

2022-10-10 08:01:08

MySQL字典表

2023-03-06 07:48:01

數(shù)據(jù)字典Spring

2018-01-19 09:38:28

數(shù)據(jù)庫(kù)Oracle數(shù)據(jù)字典

2017-09-05 09:18:54

OracleCLOB大數(shù)據(jù)

2023-03-04 20:50:19

MySQL字典InnoDB
點(diǎn)贊
收藏

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