8----->8I的IMP问题,我没有遇到过的问题!

[复制链接]
查看11 | 回复3 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
平台:HP-UX 11.0
源数据库:ORACLE805.2 OPS
目标数据库:ORACLE817.2OPS
问题:
在源数据库节点使用806的EXP从源数据库中EXP数据到大文件系统上,
再将大文件系统的DMP文件IMP到目标数据库中。在IMP过程中发现:
大约读入2G数据后,IMP停留在某一个表上,IMP看起来停止了。而且在目标数据库中查询这个表确实没有数据。并且,将这个表跳过,重新从“HANG”的地方开始IMP,仍然如此。百思不得其解,求助!多谢!

BTW:对不起,我在其他论坛没有发贴权限,只好发到这里了。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
我定位到了引起这个现象的记录(痛苦啊,一百万条记录中定位一条啊),是字符集的问题。目标数据库是american_america.ZHS16GBK,源数据库是american_america.ZHS16CGB231280,这条记录将其值取出,再UPDATE回去,问题解决。按道理这个现象是不应该出现的,因为ZHS16GBK字符集比ZHS16CGB231280要大。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
當你要進行EXP/IMP時,而source database 的 nls_language 設定與 target database 的 nls_language不同時, 你在export data 時, 可以先將 nls_lanaguage設定成 target database 的 nls_lanaguage, 如此可避免字元集不相容的情形發生
Export and Character Set Conversion
Conventional path export writes export files using the character set specified for the
user session, for example, 7-bit ASCII or IBM CODE Page 500 (EBCDIC).
Direct path export exports in the database character set only. If the character set of the
export session is not the same as the database character set when an export is initiated,
Export displays a warning and aborts. Specify the session character set to be the same
as that of the database before retrying the export.
The export file contains a flag that shows the character encoding scheme used for its
character data.
Import and Character Set Conversion
The import session and the target database character set can differ from the source
database character set. This situation requires one or more character set conversion
operations.
If necessary, the export file data is first converted during import to the character
encoding scheme specified for the user session, and then to the database character set.
During the conversion, any characters in the export file that have no equivalent in the
target character set are replaced with a default character, which is defined by the target
character set. To guarantee 100% conversion, the target character set must be a
superset of or equivalent to the source character set.
Guidelines
Because character set conversion lengthens the processing time required for import,
limit the number of character set conversions to as few as possible. In the ideal
scenario, the import session and target database character sets are the same as the
source database character sets, requiring no conversion.
Note: The setting of the character set at the session level and its impact on various
database operations are covered in detail in the lesson “Using National Language
Support.”
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
我是以ZHS16CGB231280字符集导出的,然后以此字符集导入到ZHS16GBK数据库中。按理,
目标数据库ZHS16GBK字符集比ZHS16CGB231280大,应该不会的啊,而且,10多G的数据就那么几行数据就是用这种方式不行。我开始做的时候也考虑过你建议的那样,但是想了一下应该不会就偷懒没有设置:))。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行