oracle导入脚本乱码,imp导入乱码解决
在imp導入時,發現兩個數據庫的字符集是一樣的,但imp導入后,注釋是亂碼:
SQL> SQL> SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.ZHS16GBK
報錯如下:
Import: Release 10.2.0.4.0 - Production on Fri Dec 29 09:40:26 2017
Copyright (c) 1982, 2007, Oracle. ?All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export file created by EXPORT:V10.02.01 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses ZHS16GBK character set (possible charset conversion)
export client uses ZHS16GBK character set (possible charset conversion)
IMP-00017: following statement failed with ORACLE error 1917:
檢查發現客戶端的編碼不一樣,于是在.bash_profile配置
在imp的客戶端配置:
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
問題解決。
來自 “ ITPUB博客 ” ,鏈接:http://blog.itpub.net/31429550/viewspace-2149478/,如需轉載,請注明出處,否則將追究法律責任。
總結
以上是生活随笔為你收集整理的oracle导入脚本乱码,imp导入乱码解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle结果集过大,多重子查询/大结
- 下一篇: php fpm.conf 注释,使用se