sqlldr使用

$ pwd
/oracle/sqldr

$ ls -ltr
total 0
-rw-r--r--    1 oracle   dba              93 Jan 21 15:08 cnaps2_dn.add
-rw-r--r--    1 oracle   dba            4263 Jan 21 15:08 cnaps_pkg_info.add
-rw-r--r--    1 oracle   dba            1419 Jan 21 15:08 create_table.sql
-rw-r--r--    1 oracle   dba             116 Jan 21 15:17 cnaps2_dn.ctl
-rw-r--r--    1 oracle   dba            1482 Jan 21 15:17 cnaps2_dn.log

控制文件内容:
$ cat  cnaps2_dn.ctl
load data
infile '/oracle/sqldr/cnaps2_dn.add'
into table cnaps2_dn  fields terminated by '|'
(
BANK_NO,
DN_VALUE
)

$ sqlldr cnaps2/cnaps2@devrac1 control=./cnaps2_dn.ctl

SQL*Loader: Release 10.2.0.4.0 - Production on Tue Jan 21 15:17:42 2014

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

Commit point reached - logical record count 1

$ sqlldr cnaps2/cnaps2@devrac1 control=./cnaps_pkg_info.ctl

SQL*Loader: Release 10.2.0.4.0 - Production on Tue Jan 21 15:49:17 2014

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

Commit point reached - logical record count 64
Commit point reached - logical record count 128
Commit point reached - logical record count 192
Commit point reached - logical record count 194

APPEND INTO :向表里追加数据

TRUNCATE :truncate 方式删除

rows -- 常规路径绑定数组中或直接路径保存数据间的行数
          (默认: 常规路径 64, 所有直接路径)

 

 

转载于:https://www.cnblogs.com/zhaoyangjian724/p/3797948.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值