Oracle的sqlldr使用例子
2007-01-26 17:02
423 查看
Oracle的sqlldr使用例子:
................................................................................
调用的shell脚本
sqlldr userid=hello/world control=/hello/world/shellscript.ctl data=/hello/world/wap.log log=/hello/world/logs/sqlldr_wap_bendi_$dd.log errors=600000
................................................................................
sqlldr的ctl脚本
shellscript.ctl
load data
append
into table TestTable
fields terminated by ';' optionally enclosed by ' " '
TRAILING NULLCOLS
(student_name ,
create_time DATE 'yyyy-MM-dd HH24:mi:ss',
create_editor CHAR(2000),
return_state ,
class_name ,
mobile_code,
qq_code,
address,
shool_id "func_TestTable(:student_name,0)",
id "TestTable.Nextval")
................................................................................
注意:
1. shool_id "func_TestTable(:student_name,0)", sqlldr里可以调用自定义函数给某个字段赋值。
................................................................................
调用的shell脚本
sqlldr userid=hello/world control=/hello/world/shellscript.ctl data=/hello/world/wap.log log=/hello/world/logs/sqlldr_wap_bendi_$dd.log errors=600000
................................................................................
sqlldr的ctl脚本
shellscript.ctl
load data
append
into table TestTable
fields terminated by ';' optionally enclosed by ' " '
TRAILING NULLCOLS
(student_name ,
create_time DATE 'yyyy-MM-dd HH24:mi:ss',
create_editor CHAR(2000),
return_state ,
class_name ,
mobile_code,
qq_code,
address,
shool_id "func_TestTable(:student_name,0)",
id "TestTable.Nextval")
................................................................................
注意:
1. shool_id "func_TestTable(:student_name,0)", sqlldr里可以调用自定义函数给某个字段赋值。
相关文章推荐
- oracle 游标使用的一个例子
- Oracle 正则表达式函数-REGEXP_SUBSTR 使用例子
- Oracle 正则表达式函数-REGEXP_INSTR 使用例子
- oracle中escape的使用例子
- 在 Oracle中使用UTL_SMTP 进行邮件发送的例子代码
- oracle使用dblink跨库查询的例子
- Oracle 使用spool导出 sqlldr导入后少数据情况
- oracle sqlldr使用(导入速度快,但对数据本身的处理功能弱)
- Java中使用Oracle的客户端 load data和sqlldr命令执行数据导入到数据库中
- oracle的sqlldr的使用总结
- 使用oracle sqlldr加载数据
- oracle下的sqlldr命令使用方法(sqlldr工具的使用(批量将文本文件数据加载到数据表))
- ORACLE中使用动态游标的例子
- oracle中的SQLLDR工具使用
- oracle JDBC使用例子
- 【转】Oracle 正则表达式函数-REGEXP_REPLACE 使用例子
- Oracle 正则表达式函数-REGEXP_SUBSTR 使用例子
- Oracle教程之sql loader使用例子
- Oracle中,常用SQL语句使用和例子
- Oracle使用sqlldr load导入txt出现中文乱码