charset参数 sqluldr2_sqluldr2安装
主機環境:Redhat 6
下載地址:http://www.onexsoft.com/zh/download
安裝步驟:
64位安裝包為:mysqluldr2linux64.zip
解壓:unzip mysqluldr2linux64.zip,解壓后為mysqluldr2_linux64.bin
將mysqluldr2_linux64.bin移到$ORACLE_HOME/bin目錄下即可。
常見參數如下:
/sqluldr2linux64.bin --help
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
常見幾個例子:
根據查詢語句導出:sqluldr2linux64.bin user=test/test@orcl query="select * from testdb" file="test.txt"
如果查詢sql比較長,則可以把sql語句放入到文件中:sqluldr2linux64.bin user="username/pwd" sql="/home/query.sql" field="0x09" record=0x0a file="/home/table.txt" charset=UTF8
總結
以上是生活随笔為你收集整理的charset参数 sqluldr2_sqluldr2安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 日志文件在VS中输出为乱码问题
- 下一篇: FFmpeg中MPEG-4编码程序追踪,