1.dmp格式导入方法:
1.看看创建了哪些子目录:SELECT * FROM dba_directories;
查询结果如下:
2.执行命令:xx.dmp放入到/home/oracle/dumpdata 目录下 ,然后导入 impdp xxx/xxx DIRECTORY=dd DUMPFILE=xxx.dmp ,看这个dd对应得就是/home/oracle/dumpdata,具体命令:impdp tdxm110/tdxm110 DIRECTORY=dd DUMPFILE=procedure.dmp remap_SCHEMA=txcy:tdxm110(由于导出的时候是txcy,导入的时候是tdxm110账户)
2.dat、unl格式:根据以下内容创建push.ctl文件。
导入命令为:sqlldr tdxm110/tdxm110 control=pushlog3.ctl data=Inc_PushBillSync_20190821113500_006001.dat
sql格式:sqlplus 账户名/密码@oracle_dic.sql
load data
append into table pushlog1
fields terminated by '|'
trailing nullcols
(
ywid ,
callingnumber ,
callednumber ,
pushrole ,
tjid ,
calltype ,
calltime ,
cysend_result ,
cypushtime date "yyyymmddhh24miss",
cysend_delay ,
cysend_type ,
noussdsendresult ,
ussdsendresult ,
cycontent ,
cyid ,
cyhid ,
duration ,
retransnumber ,
replycontent ,
platform
)
来源:https://blog.csdn.net/qq_30615731/article/details/100539819