1

我一直在尝试各种选项和不同的用户帐户来运行 expdp,以便它可以包含用户/模式信息,所以当我运行 impdp 命令时,如果它不存在,它将重新创建用户。我不能得到这个工作。我已经尝试过使用用户(dba 角色的成员),并且在运行 expdp 命令时也尝试过使用“as sysdba”帐户。我从日志中可以看到,没有导出 USER 元数据。因此,当我尝试运行 impdp 时,它抛出了一个关于“用户不存在”的错误。我需要做什么才能使其正常工作?

====== 日志 =======

C:\>expdp schemas=myschema directory=DATA_PUMP_DIR dumpfile=expdp_myschema.dmp l
ogfile=expdp_myschema.log

Export: Release 12.1.0.2.0 - Production on Tue Aug 2 11:54:05 2016

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

Username: / as sysdba

Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions

WARNING: Oracle Data Pump operations are not typically needed when connected to
the root or seed of a container database.

Starting "SYS"."SYS_EXPORT_SCHEMA_01":  /******** AS SYSDBA schemas=myschema dir
ectory=DATA_PUMP_DIR dumpfile=expdp_myschema.dmp logfile=expdp_myschema.log
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
. . exported "MYSCHEMA"."PRODUCT"                        5.507 KB       1 rows
Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
  C:\APP\ORACLE\ADMIN\ORADEV\DPDUMP\EXPDP_MYSCHEMA.DMP
Job "SYS"."SYS_EXPORT_SCHEMA_01" successfully completed at Tue Aug 2 11:54:18 20
16 elapsed 0 00:00:09
4

0 回答 0