1. 通过dmp 导入导出,这种情况一般需要注意用户的命名空间
2. 通过sqlldr实现
a.新建导入控制文件 input.ctl
Load data Characterset UTF8 Infile 'H:\POI\baidu.txt' Append into table tbl_poi_baidu fields terminated by "," Optionally enclosed by '""' Trailing nullcols (POI_NAME,CLASS_ALL,ADDR,PHONE,TEL,LONGITUDE,LATITUDE,CITY,CITYCODE,PROVINCE,DISTRICT,STREET,STREENUMBER,CLASS_1,CLASS_2,CLASS_3,CLASS_4)
b.命令行窗口输入
sqlldr userid=sde/sde control=input.ctl log=log.out discard=discard.txt errors=1000000
文件字符集要与Oracle服务等字符集一致,建议文件另存为UTF-8无BOM,导入文件内添加 Characterset UTF8
,解决Oracle数据导入中文乱码:export NLS_LANG='SIMPLIFIED CHINESE_CHINA.AL32UTF8'
DOS环境下文件快速合并: copy *.csv newfile.txt
https://www.jb51.net/article/92898.htmhttps://www.jb51.net/article/92898.htm
3. 通过sqluldr.exe 结合语句导入,注意需要将sqluldr.exe 放在和脚本同个目录下