sqluldr2 linux64.bin,./sqluldr2_linux64_10204.bin (linux大數據量導出)

在linux下導出 csv,dat,txt 等各種詳單數據(只針對大數據量導出)

[root@racdb1 tmp]# ls

sqluldr2_linux64_10204.bin

[root@racdb1 tmp]# ./sqluldr2_linux64_10204.bin

SQL*UnLoader: Fast Oracle Text Unloader (GZIP, Parallel), Release 4.0.1

(@) Copyright Lou Fangxin (AnySQL.net) 2004 - 2010, all rights reserved.

License: Free for non-commercial useage, else 100 USD per server.

Usage: SQLULDR2 keyword=value [,keyword=value,...]

Valid Keywords:

user = username/password@tnsname

sql = SQL file name

query = select statement

field = separator string between fields

record = separator string between records

rows = print progress for every given rows (default, 1000000)

file = output file name(default: uldrdata.txt)

log = log file name, prefix with + to append mode

fast = auto tuning the session level parameters(YES)

text = output type (MYSQL, CSV, MYSQLINS, ORACLEINS, FORM, SEARCH).

charset = character set name of the target database.

ncharset= national character set name of the target database.

parfile = read command option from parameter file

for field and record, you can use '0x' to specify hex character code,

\r=0x0d \n=0x0a |=0x7c ,=0x2c, \t=0x09, :=0x3a, #=0x23, "=0x22 '=0x27

[root@racdb1 tmp]# ls

--導出命令

[root@racdb1 tmp]# ls

sqluldr2_linux64_10204.bin

[root@racdb1 tmp]# pwd

/home/data/tmp

[root@racdb1 tmp]# ./sqluldr2_linux64_10204.bin USER=用戶名/密碼@ip:1521/sid QUERY="select /*+ parallel(8) */ a||'|'||b from cs_xxx dt where rownum<10 " head=no FILE=/home/data/tmp/cs_xxx.dat

0 rows exported at 2013-02-19 11:11:18, size 0 MB.

9 rows exported at 2013-02-19 11:11:18, size 0 MB.

output file /home/data/tmp/cs_xxx.dat closed at 9 rows, size 0 MB.

[root@racdb1 tmp]# ll

total 184

-rw-r--r-- 1 root root 28 Feb 19 11:11 cs_xxx.dat

-rwxrwxrwx 1 root root 176170 Feb 19 11:01 sqluldr2_linux64_10204.bin

[root@racdb1 tmp]# more cs_third_cdr.dat

|

|

2532860098|

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值