zoukankan      html  css  js  c++  java
  • oracle 12c expdp 按用户导出 报ora-39170

    APPLIES TO:

    Oracle Database - Enterprise Edition - Version 11.2.0.4 to 18.3.0.0.0 [Release 11.2 to 18]
    Information in this document applies to any platform.
    This problem can occur on any platform.

    SYMPTOMS

    While exporting a schema with the datapump export utility the following errors occur :
    
     $ expdp schemas=<NAME1>.<NAME2> directory=dp_dir dumpfile=<DUMP_NAME>.dmp
    
    Export: Release 11.2.0.4.0 - Production on Wed Aug 17 04:59:44 2016
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    
    Username: / as sysdba
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    ORA-39001: invalid argument value
    ORA-39170: Schema expression '<NAME1>' does not correspond to any schemas.

    CAUSE

    The problem is caused by the fact that the dot (".")  in the schema name is parsed. The right escape sequence must be used in order to avoid this.  

    SOLUTION

    The right escape sequence is  '"' ( back slash + double quote).
    
    The following datapump export statement  will work OK :
    
    $ expdp schemas='"<NAME1>.<NAME2>"' directory=dp_dir dumpfile=<DUMP_NAME>.dmp
    
    Export: Release 11.2.0.4.0 - Production on Wed Aug 17 04:57:10 2016
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    
    Username: / as sysdba
    
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA schemas="<NAME1>.<NAME2>" directory=dp_dir dumpfile=<DUMP_NAME>.dmp
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    . . exported "<NAME1>.<NAME2>"."TEST" 0 KB 0 rows
    Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    ******************************************************************************
    Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
    /tmp/<DUMP_NAME>.dmp
    Job "SYS"."SYS_EXPORT_SCHEMA_01" successfully completed at Wed Aug 17 04:57:46 2016 elapsed 0 00:00:31

    参考文档:(文档 ID 388763.1)

  • 相关阅读:
    【Thymeleaf/SpringBoot/MyBatis】如何将themeleaf页面的表单数据提交到后台处理
    【Oracle】生成连续序列的两种方法
    【oracle】统计字段里逗号的数量,采用函数regexp(field,',')
    人的成长与发展不会一帆风顺,坚守理想和信念,不以一时颠簸为意,才能更好地走向未来。
    【SpringBoot/Thymeleaf】如何使SpringBoot程序显示网页
    【jQuery/Thymeleaf】在Thymeleaf页面用jQuery的Ajax方法取得后台数据显示在页面上
    JavaScript常用正則表達式
    CSS的入門
    ASP操作xml之如何生成XML数据
    ISAPI筛选器及对ASP源文件的保护
  • 原文地址:https://www.cnblogs.com/cqdba/p/10980134.html
Copyright © 2011-2022 走看看