OTools--csscan工具幫助記錄。

weifenghq發表於2007-03-19

如果我們在做資料遷移或其它對資料庫字符集有變更的動作前最好做一次全庫的資料庫檢查,確認當字符集發生變化時,會不會有例外的情況存在。我們可以透過Oracle自帶的工具csscan來完成檢測工作。在官方站點提供從8i 到9i的各常用平臺的download. 如果有需要可以到下面的連線中download.


csscan help=y


Character Set Scanner v1.1 : Release 9.2.0.1.0 - Production on Wed Mar 14 13:28:27 2007

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


You can let Scanner prompt you for parameters by entering the CSSCAN
command followed by your username/password:

Example: CSSCAN SYSTEM/MANAGER

Or, you can control how Scanner runs by entering the CSSCAN command
followed by various parameters. To specify parameters, you use keywords:

Example: CSSCAN SYSTEM/MANAGER FULL=y TOCHAR=utf8 ARRAY=102400 PROCESS=3

Keyword Default Prompt Description
---------- ------- ------ -------------------------------------------------
USERID yes username/password
FULL N yes scan entire database
USER yes user name of the table to scan
TABLE yes list of tables to scan
EXCLUDE list of tables to exclude from scan
TOCHAR yes new database character set name
FROMCHAR current database character set name
TONCHAR new NCHAR character set name
FROMNCHAR current NCHAR character set name
ARRAY 10240 yes size of array fetch buffer
PROCESS 1 yes number of scan process
MAXBLOCKS split table if larger than MAXBLOCKS
CAPTURE N capture convertible data
SUPPRESS suppress error log by N per table
FEEDBACK feedback progress every N rows
BOUNDARIES list of column size boundaries for summary report
LASTRPT N generate report of the last database scan
LOG scan base name of log files
PARFILE parameter file name
PRESERVE N preserve existing scan results
HELP N show help screen (this screen)
---------- ------- ------ -------------------------------------------------
Scanner terminated successfully.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/633084/viewspace-905798/,如需轉載,請註明出處,否則將追究法律責任。

相關文章