Oracle OCM考试系列教程_OCM考试实验笔记之二_数据迁移
Oracle OCM考试系列教程_OCM考试实验笔记之二_数据迁移
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
EXPDP/IMPDP
相关文档:
1 Utilities
2 Data Pump Export
3 Data Pump Import
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
注意授予用户相关目录的读、写权限
grant read,write on directory EM_TTS_DIR_OBJECT to u1;
一、使用SYS用户:
impdp \'sys/wsmnjj as sysdba\'
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
SQL*Loader
相关文档:Utilities
7 SQL*Loader Command-Line Reference
8 SQL*Loader Control File Reference
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
※※※
一、简单的控制文件和加载命令行:
load data
infile 'e:\Oracle\lx\loader1.txt'
into table mnjj.yd fields terminated by ','(GKBH,SPBH,DGRQ,JG,JD)
sqlldr userid=mnjj/mnjj control=loader1.ctl
二、各种控制文件的写法:
load data
infile 'e:\Oracle\lx\l2.txt'
into table mnjj.yd fields terminated by x'09' (GKBH,SPBH filler,DGRQ date
'yyyy-mm-dd',JG,JD)
load data
infile 'e:\Oracle\lx\l2.txt'
into table mnjj.yd (GKBH position(1:8), SPBH position(*+6:17), DGRQ
position(*+11:38) date 'yyyy-mm-dd', JG position(*+6:49), JD position(*+
1:56))
457