expdp user/password@ORCL tables= 表名 DUMPFILE=导出文件名.DMP DIRECTORY=导出路径
设置字符集 set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
导入数据脚本:
load data--控制文件标识
CHARACTERSET AL32UTF8
infile 'C:\Users\cmnmmss\Documents\csv\PON\2018-08-28-09\PONFILE_2018082809.csv'--要输入的数据文件名
append
into table itms_pm_dev.O_PON_CF_KPI_PON_GBASE --test为用户名,emp为表名--向哪个表追加记录
fields terminated by ','--指定分割符,终止字段值
TRAILING NULLCOLS
( PONID ,
OLTID ,
PONDOWNCRC ,
PONDOWNFLOW ,
PONUPFLOW ,
PONDOWNPOWER ,
PONUPPOWER ,
PONDOWNRATE ,
PONUPRATE ,
PONDOWNRAWFLOW ,
PONUPRAWFLOW ,
OLTAREA ,
load_time_d "20180828",
load_time_h "09"
)
导入命令:
sqlldr user/password@ORCL control='E:\sqlldr\PONPONFILE.ctl' log=E:\sqlldr\PONPONFILE.log