Oracle导入UNL数据
$1/$2@$3 用户名密码数据库名
1、loadunl.sh文件
##模板表部分数据(tap_gen_template)
sqlldr userid=$1/$2@$3control= ./tap_gen_template.ctl data= ./tap_gen_template.unl ;
2、tap_gen_template.ctl
LOAD DATA CHARACTERSET ZHS16GBK
INFILE 'tap_gen_template.unl'
BADFILE 'tap_gen_template.bad'
APPEND INTO TABLE tap_gen_template
FIELDS TERMINATED BY '|' optionally enclosed by '"'
TRAILING NULLCOLS
(TEMPLATEID,NAME char(1000),TEMPLATEOWNERID,SHAREDSET,USERID char(1000),REGION_ID,CREATIONTIME "my_to_date(:CREATIONTIME)",LASTUPDATEDTIME "my_to_date
(:LASTUPDATEDTIME)",LASTUPDATEDUSERID char(1000),AUTO,AUTORUNTIME char(1000),AUTORUNCYCLE,DATASOURCE,SOURCETEMPLATEID,SUM_LEVEL,SUMLEVELEXPRESS,DESCRIPTION char
(1000),THEMEID,NETYPECODE,TEMPLATECATEGORYID,PATHNODEID,NEFILTER,TIMEFILTER,ISNEWVERSION,TECHNOLOGY,VENDORID,NEGRANULITY)
3、 tap_gen_template.unl
1110078|GSM_参数_母板_(爱立信)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|0|Detail||6|0|5|61|||1|GSM|1|300|
1110065|GSM_参数_母板_(华为)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|1|Detail||6|0|5|61|||1|GSM|8|300|
1110064|GSM_参数_母板_(卡特)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|1|Detail||6|0|5|61|||1|GSM|0|300|
Informix导入UNL数据
1、loadunl.sql
load from ./tap_gen_template.unl insert into tap_gen_template;
2、1110078|GSM_参数_母板_(爱立信)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|0|Detail||6|0|5|61|||1|GSM|1|300|
1110065|GSM_参数_母板_(华为)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|1|Detail||6|0|5|61|||1|GSM|8|300|
1110064|GSM_参数_母板_(卡特)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|1|Detail||6|0|5|61|||1|GSM|0|300|
1110079|GSM_参数_母板_(摩托罗拉)语音优先_NEW|0|0|63c26d7f-6e39-40b0-9526-94c58f2d77ca|-1|2012-4-11 15:35:36|2012-4-11 15:35:36|63c26d7f-6e39-40b0-9526-
94c58f2d77ca|0||0|0|-1|-100|Detail||6|0|5|61|||1|GSM|3|300|