oracle的字符集检查工具CSSCAN(三)

oracle 提供了两个关于字符集检查的工具,一个csscan,一个是lcsscan(Language and Character Set File Scanner)
一 Database Character Set Scanner(csscan)
刚开始使用csscan时会遇到 CSS-00107错误,
CSS-00107: Character set migration utility schema not installed
原因可以从提示得到:未安装CSSCAN.
所以先安装csscan
以sys 身份执行如下语句:
sys@ORACL> @D:\oracle\product\11.1.0\db_1\RDBMS\ADMIN\ csminst.sql
授权成功。
授权成功。
用户已删除。
Please create password for user CSMIG:
输入 csmig_passwd 的值:  yang
原值    1: create user csmig identified by &csmig_passwd
新值    1: create user csmig identified by yang
用户已创建。
授权成功。
授权成功。
........
授权成功。
授权成功。
用户已更改。
已创建0行。
已更新 1 行。
同义词已创建。
......
视图已创建。
提交完成。
2)使用 csscan工具对数据库进行检查。被检测数据库是ZHS16GBK,要导入到AL32UTF8中的数据库中,检查是否有在数据迁移过程中是否有错误。
C:\Users\aaaa>csscan \"system/yang as sysdba \" user=yang tochar=al32utf8 array=104000 process=2
Character Set Scanner v2.2 : Release 11.1.0.6.0 - Production on 星期一 3月 14 12:19:06 2011
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Enumerating tables to scan...
. process 1 scanning YANG.TEST[AAARWYAAGAAAAAJAAA]
. process 2 scanning YANG.TEST[AAARWYAAGAAAH+JAAA]
. process 1 scanning YANG.TEST[AAARWYAAEAAAAGJAAA]
. process 2 scanning YANG.TEST_CHAR[AAARjpAAGAAAABhAAA]
. process 1 scanning YANG.FIXED[AAARfqAAGAAAABRAAA]
. process 2 scanning YANG.TEST_BYTE[AAARjoAAGAAAABZAAA]
. process 2 scanning YANG.A[AAARbbAAEAAAAKBAAA]
. process 2 scanning YANG.DEPT[AAARZ8AAEAAADpJAAA]
. process 1 scanning YANG.FIXED_CHAR[AAARfGAAGAAAABBAAA]
. process 2 scanning YANG.TCHAR[AAARbhAAEAAADoJAAA]
Creating Database Scan Summary Report...
Creating Individual Exception Report...
Scanner terminated successfully.
查看生成的日志文件:如果不指定具体的log 文件,默认会在执行命令的当前目录下产生scan.out  scan.txt scan.err,这里我们比较关注scan.err 因为它里面包含
字符集转换出错的数据。
Database Scan Individual Exception Report
[Database Scan Parameters]
Parameter                      Value                                           
------------------------------ ------------------------------------------------
CSSCAN Version                 v2.1                                            
Instance Name                  oracl                                           
Database Version               11.1.0.6.0                                      
Scan type                      User tables                                     
User name                      yang                                            
Scan CHAR data?                YES                                             
Database character set         ZHS16GBK                                        
FROMCHAR                       ZHS16GBK                                        
TOCHAR                         al32utf8                                        
Scan NCHAR data?               NO                                              
Array fetch buffer size        104000                                          
Number of processes            2                                               
Capture convertible data?      NO                                              
------------------------------ ------------------------------------------------
[Data Dictionary individual exceptions]
[Application data individual exceptions]
User  : YANG
Table : FIXED  - --转换出错的表
Column: VAL2   - --转换出错的字段。
Type  : CHAR(15)
Number of Exceptions         : 499    --行数。   
Max Post Conversion Data Size: 21        
ROWID              Exception Type      Size Cell Data(first 30 bytes)     
------------------ ------------------ ----- ------------------------------
AAARfqAAGAAAABVAA+ exceed column size   21 阿里云计算公司                
AAARfqAAGAAAABVAA/ exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVAA0 exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVAA1 exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVAA2 exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVAA3 exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVAA4 exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVAA5 exceed column size    21 阿里云计算公司                  
               。。。。。。。。                 
AAARfqAAGAAAABVABj exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVABk exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVABl exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVABm exceed column size   21 阿里云计算公司                
AAARfqAAGAAAABVABn exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVABo exceed column size    21 阿里云计算公司                
AAARfqAAGAAAABVABp exceed column size    21 阿里云计算公司                  


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22664653/viewspace-689375/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22664653/viewspace-689375/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值