欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Oracle下Truncate表的恢復(fù)

這篇文章主要介紹“Oracle下Truncate表的恢復(fù)”,在日常操作中,相信很多人在Oracle下Truncate表的恢復(fù)問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對(duì)大家解答”O(jiān)racle下Truncate表的恢復(fù)”的疑惑有所幫助!接下來,請(qǐng)跟著小編一起來學(xué)習(xí)吧!

網(wǎng)站設(shè)計(jì)、成都網(wǎng)站制作介紹好的網(wǎng)站是理念、設(shè)計(jì)和技術(shù)的結(jié)合。創(chuàng)新互聯(lián)建站擁有的網(wǎng)站設(shè)計(jì)理念、多方位的設(shè)計(jì)風(fēng)格、經(jīng)驗(yàn)豐富的設(shè)計(jì)團(tuán)隊(duì)。提供PC端+手機(jī)端網(wǎng)站建設(shè),用營銷思維進(jìn)行網(wǎng)站設(shè)計(jì)、采用先進(jìn)技術(shù)開源代碼、注重用戶體驗(yàn)與SEO基礎(chǔ),將技術(shù)與創(chuàng)意整合到網(wǎng)站之中,以契合客戶的方式做到創(chuàng)意性的視覺化效果。

Oracle Truncate表恢復(fù)(ODU)

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

·    (1)OFFLINE表所在的表空間

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

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

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

create table tt1 as select * from dba_objects;

create table tt2 as select * from tt1;

select * from dba_objects where object_name='TT1';  ---OBJECT_ID 87295  ---DATA_OBJECT_ID 87295

---object_id: Dictionary object number of the object.

---Data_object_id: Dictionary object number of the segment that contains the object.

truncate table tt1;

select *from tt1;

一:OFFLINE表所在的表空間

select * from dba_objects where object_name='TT1'; ---OBJECT_ID 87290  ---DATA_OBJECT_ID 87297

select tablespace_name from user_tables where table_name='T1'; ---USERS

alter tablespace USERS offline;

alter system checkpoint;

二:ODU版本3.0.9
Oracle下Truncate表的恢復(fù)

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

Oracle下Truncate表的恢復(fù)

四:掃描數(shù)據(jù)

Oracle下Truncate表的恢復(fù)

五:恢復(fù)表

Oracle下Truncate表的恢復(fù)

自動(dòng)生成以下三個(gè)文件

Oracle下Truncate表的恢復(fù)

六:通過sqlldr加載數(shù)據(jù)到數(shù)據(jù)庫

Oracle下Truncate表的恢復(fù)

Oracle下Truncate表的恢復(fù)

七:驗(yàn)證數(shù)據(jù)

select count(*) from tt1;  ---86155

select * from tt1;

Oracle下Truncate表的恢復(fù)

到此,關(guān)于“Oracle下Truncate表的恢復(fù)”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

分享文章:Oracle下Truncate表的恢復(fù)
轉(zhuǎn)載注明:http://chinadenli.net/article18/gpisgp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作移動(dòng)網(wǎng)站建設(shè)網(wǎng)站建設(shè)全網(wǎng)營銷推廣虛擬主機(jī)App開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站建設(shè)