【问题标题】:Is there a way to see what character set was used to export an Oracle dump (dmp) file, using a text editor?有没有办法使用文本编辑器查看用于导出 Oracle 转储 (dmp) 文件的字符集?
【发布时间】:2020-06-23 07:37:39
【问题描述】:

有没有办法使用文本编辑器查看用于导出 Oracle 转储 (dmp) 文件的字符集?

我知道我可以在 .dmp 文件中看到 Oracle 版本 - 它以明文形式显示。

但是,我可以看到字符集吗?它似乎在任何地方都不是明文,但我猜它在“某处”,也许是十六进制?

我问的原因是我收到一条消息,说明在尝试导入时,导入服务器字符集与 .dmp 文件中的字符集之间存在潜在冲突。但是,警告没有显示 export 字符集。它对两者都说 'Import',我认为这是一个误导性消息 - 因此想要检查 .dmp 文件以获取信息。

谢谢。

【问题讨论】:

    标签: oracle import export


    【解决方案1】:

    这是出口:

    E:\>exp scott/tiger@orcl file=scott.dmp
    
    Export: Release 11.2.0.3.0 - Production on Wed Mar 11 11:49:56 2020
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Productio
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Tes
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses EE8MSWIN1250 character set (possible charset conversion)
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SCOTT
    EXP-00091: Exporting questionable statistics.
    . . exporting table                            EMP         14 rows exported
    <snip>
    . exporting statistics
    Export terminated successfully with warnings.
    

    结果是scott.dmp 文件。如果您使用show=y import 的选项,则不会导入任何内容,但您会看到导出对象的列表。您对前几行感兴趣:

    E:\>imp scott/tiger@orcl file=scott.dmp show=y
    
    Import: Release 11.2.0.3.0 - Production on Wed Mar 11 11:50:17 2020
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Tes
    
    Export file created by EXPORT:V11.02.00 via conventional path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses EE8MSWIN1250 character set (possible charset conversion)
    . importing SCOTT's objects into SCOTT
     "BEGIN  "
    <snip>
    

    我猜你看到提到的字符集,不是吗?希望对您有所帮助。

    【讨论】:

    • 感谢您的回复。这些行之一是否标识用于导出的字符集? import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character setimport server uses EE8MSWIN1250 character set (possible charset conversion) 他们都指定“导入”
    猜你喜欢
    • 1970-01-01
    • 2012-06-16
    • 2018-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-26
    • 2016-03-08
    • 2012-02-22
    相关资源
    最近更新 更多