Examine these facts about objects in the SYSTEM schema:
1.EMP is a table.
2.EMP_PK is a primary key constraint on EMP.ENO.
3.EMP_IDX is an index on EMP.MGR_NO.
4.EMP_SEQ is a sequence used to generate values for EMP.ENO.
5.EMP_OPS_PKG is a package that performs DML operations on EMP.
6.EMP_VU is a view on EMP.
- EMP_TRG is a trigger on EMP.
Examine this command:
$ expdp system/oracle \
FULL =Y \
EXCLUDE=TABLE:"= 'EMP' "\
DIRECTORY=data_pump_dir \
DUMPFILE=full_db.dmp \
LOGFILE=full_db.1og
Which three objects will be exported?
A)EMP_PK
B)EMP_SEQ
C)EMP_OPS_PKG
D)EMP_VU
E)EMP_IDX
F)EMP_TRG
G)EME_FN
Answer: BCD(已驗證)
CUUG:如果在導出的過程中排除了一張表,那麼跟這張表相關的資料就不會導出,比如表的結構、資料、索引、限制、觸發器等。但是其它跟這張表相關的關系不是密切的對象還是會導出,比如:該表引用的序列、通路該表的存儲過程、建立在該表上的視圖等。這道題是新題,相關的内容以前沒有出現過。
expdp system/oracle DUMPFILE=scott.dmp
DIRECTORY=dmpdir SCHEMAS=scott
EXCLUDE=TABLE:"IN('EMP')"
SCHEMAS=scott
注意以上 exclude 的文法。
趙:
參數說明:full=y 導出整個資料庫,exclude=table 排除表,logfile 生成一個日志檔案。