日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

charset参数 sqluldr2_linux下配置 oracle数据导出工具sqluldr2

發(fā)布時間:2023/12/10 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 charset参数 sqluldr2_linux下配置 oracle数据导出工具sqluldr2 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

標簽:

一、下載工具:

打開http://www.anysql.net/在其右邊找到sqluldr2,然后點擊:

二、下載后解壓,有各種對應的版本,我們選擇linux64位的:

三、將其放到你要執(zhí)行的linux目錄下,修改 $HOME 目錄下.bash_profile 增加如下環(huán)境變量:

export LD_LIBRARY_PATH=$ORACLE_HOME/bin:$ORACLE_HOME/lib:/lib:/usr/lib

再用?./sqluldr2_linux64_10204.bin 加上對應的參數(shù)執(zhí)行就可以了。

先執(zhí)行./sqluldr2_linux64_10204.bin可以看到其參數(shù)說明:

[oracle@localhost ~]$ ./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.

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

下面舉一下例子:

1、

./sqluldr2_linux64_10204.bin user=c##scott/scott@orcl query="select * from emp" file="emp.txt"

2、

./sqluldr2_linux64_10204.bin user=c##scott/scott alter="DISABLE PARALLEL QUERY;" sql=sql/n3.sql charset=AL32UTF8 record=0x0d0x0a file=emp.csv

3、

./sqluldr2_linux64_10204.bin parfile=parfiles/scott query="select * from emp" file=/home/yaokangjun/emp.txt

其中parfile=parfiles/scott為其當前目錄parfiles配置文件scott,如scott為:

user=c##scott/scott@orcl

charset=ZHS16GBK

field=0X1F

record=0x0d0x0a

alter=set nls_date_format=‘yyyymmddhh24miss‘;

標簽:

總結

以上是生活随笔為你收集整理的charset参数 sqluldr2_linux下配置 oracle数据导出工具sqluldr2的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。