DUL恢復(fù)簡(jiǎn)單表測(cè)試

--1. 構(gòu)造測(cè)試數(shù)據(jù)

創(chuàng)新互聯(lián)公司專(zhuān)業(yè)為企業(yè)提供項(xiàng)城網(wǎng)站建設(shè)、項(xiàng)城做網(wǎng)站、項(xiàng)城網(wǎng)站設(shè)計(jì)、項(xiàng)城網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)與制作、項(xiàng)城企業(yè)網(wǎng)站模板建站服務(wù),10余年項(xiàng)城做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。

SQL> alter database datafile '/oracle/app/oracle/oradata/test/users01.dbf' resize 100m;
SQL> create table ducw.test_dul tablespace users
  2  as
  3  select * from dba_objects;
SQL> select count(1) from ducw.test_dul;
SQL> exit;

--2. 構(gòu)造DUL使用的控制文件

在control.dul中必須包含SYSTEM表空間的文件信息,以及想U(xiǎn)NLOAD的表的表空間文件信息。


SQL> select ts# || ' '|| rfile# || ' '|| name || ' block_size '|| block_size
  2  from v$datafile
  3  /
TS#||''||RFILE#||''||NAME||'BLOCK_SIZE'||BLOCK_SIZE
--------------------------------------------------------------------------------
0 1 /oracle/app/oracle/oradata/test/system01.dbf block_size 8192
1 2 /oracle/app/oracle/oradata/test/sysaux01.dbf block_size 8192
2 3 /oracle/app/oracle/oradata/test/undotbs01.dbf block_size 8192
4 4 /oracle/app/oracle/oradata/test/users01.dbf block_size 8192
4 5 /oracle/app/oracle/oradata/test/users02.dbf block_size 8192

--2.1 DUL控制文件

(python3venv) [oracle@sqlaudit ~]$ cat control.dul 
0 1 /oracle/app/oracle/oradata/test/system01.dbf block_size 8192
1 2 /oracle/app/oracle/oradata/test/sysaux01.dbf block_size 8192
2 3 /oracle/app/oracle/oradata/test/undotbs01.dbf block_size 8192
4 4 /oracle/app/oracle/oradata/test/users01.dbf block_size 8192
4 5 /oracle/app/oracle/oradata/test/users02.dbf block_size 8192

--2.2 DUL參數(shù)文件

(python3venv) [oracle@sqlaudit ~]$ cat init.dul
#Platform specific parameter  
OSD_BIG_ENDIAN_FLAG=FALSE
OSD_DBA_FILE_BITS=10
OSD_C_STRUCT_ALIGNMENT=32
OSD_FILE_LEADER_SIZE=1
OSD_WORD_SIZE=32
# Size of dul dictionary caches. If one of these is too low startup will fail.
DC_COLUMNS=200000
DC_TABLES=100000
DC_OBJECTS=100000
DC_USERS=100
DC_SEGMENTS=100000
# Location and filename ofthe control file
CONTROL_FILE=/home/oracle/control.dul
# Database blocksize
DB_BLOCK_SIZE=8192
# Using Import to restore the data retrieved 
EXPORT_MODE=TRUE
# Using SQL*Loader to restore the data retrieved 
#EXPORT_MODE=FALSE
# Compatible parameter
COMPATIBLE=10
FILE_SIZE_IN_MB=1000
BUFFER=200000000

--3. 運(yùn)行DUL

rm *.ctl
rm *.dat
rm *.log
rm *.ddl
rm *.out

--3.1 在DUL運(yùn)行環(huán)境下執(zhí)行BOOTSTRAP命令,生成字典信息,為UNLOAD做必要的準(zhǔn)備。

(python3venv) [oracle@sqlaudit ~]$ ./dul 
DUL> bootstrap;


--3.2 在DUL運(yùn)行環(huán)境下執(zhí)行UNLOAD過(guò)程:

  1. UNLOAD TABLE owner.table ; 

    1. This will unload the one table definition and the table's data. 

  2. UNLOAD USER user name ; 

    1. This unloads all tables and data for the specified user. 

  3. UNLOAD DATABASE ; 

    1. This unloads all of the database tables available. (except the user SYS). 


DUL>
 
unload table ducw.test_dul;

網(wǎng)站欄目:DUL恢復(fù)簡(jiǎn)單表測(cè)試
當(dāng)前網(wǎng)址:http://muchs.cn/article6/gdchig.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站建設(shè)網(wǎng)頁(yè)設(shè)計(jì)公司、手機(jī)網(wǎng)站建設(shè)品牌網(wǎng)站制作、動(dòng)態(tài)網(wǎng)站外貿(mào)建站

廣告

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

成都seo排名網(wǎng)站優(yōu)化