從數據庫服務器上使用exp導出時顯示如下:
[oracle@kf15-1]:/users/oracle>$ exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_unix.dmp satistics=none buffer=1000000
Export: Release 10.2.0.4.0 - Production on 星期四 8月 26 16:37:08 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
連接到: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已導出 ZHS16CGB231280 字符集和 AL16UTF16 NCHAR 字符集
即將導出指定的表通過常規路徑...
. . 正在導出表 TABLE_NAME導出了 11174 行
成功終止導出, 沒有出現警告。
=================================================================
從數據庫客戶端上使用exp導出時顯示如下:
C:/Documents and Settings/user>exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_win.dmp statistics=none buffer=1000000
Export: Release 10.2.0.1.0 - Production on 星期四 8月 26 16:40:31 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連接到: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已導出 ZHS16GBK 字符集和 AL16UTF16 NCHAR 字符集
服務器使用 ZHS16CGB231280 字符集 (可能的字符集轉換)
即將導出指定的表通過常規路徑...
. . 正在導出表 TABLE_NAME導出了 11174 行
成功終止導出, 沒有出現警告。
=================================================================
其中有一段“可能的字符集轉換”,原因在于數據庫軟件安裝時使用缺省字符集ZHS16GBK,而服務器端在建庫的時候將字符集改成了非缺省的ZHS16CGB231280,客戶端沒有艱苦的步驟,所以仍使用ZHS16GBK。
在Windows下修改oracle使用字符集?的方法為:
打開注冊表;選擇HKEY_LOCAL_MACHINE —> ORACLE —> KEY_OraClient10g_home1中的NLS_LANG,將其鍵值“SIMPLIFIED CHINESE_CHINA.ZHS16GBK”改為“SIMPLIFIED CHINESE_CHINA.ZHS16CGB231280”。
=================================================================
修改過客戶端字符集以后,從數據庫客戶端上使用exp導出時顯示如下:
C:/Documents and Settings/user>exp username/passwd@kf15-1/i1000 tables=table_name file=table_name_win.dmp statistics=none buffer=1000000
Export: Release 10.2.0.1.0 - Production on 星期四 8月 26 17:15:15 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連接到: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已導出 ZHS16CGB231280 字符集和 AL16UTF16 NCHAR 字符集
即將導出指定的表通過常規路徑...
. . 正在導出表 TABLE_NAME導出了 11174 行
成功終止導出, 沒有出現警告。