Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 导出导入oracle_Sql_Oracle_Import - Fatal编程技术网

Sql 导出导入oracle

Sql 导出导入oracle,sql,oracle,import,Sql,Oracle,Import,在导入数据仓库数据库的过程中,我遇到了以下问题。代码ORA-39002和ORA-39166引发这些错误的原因可能是什么: C:\Users\kmaaz>expdp bank/b123 tables=employee,transaction,branch,account directory=my_dir dumpfile=tables_dump.dmp logfile=tables_log.log Export: Release 12.1.0.2.0 - Production on Mon

在导入数据仓库数据库的过程中,我遇到了以下问题。代码
ORA-39002
ORA-39166
引发这些错误的原因可能是什么:

C:\Users\kmaaz>expdp bank/b123 tables=employee,transaction,branch,account directory=my_dir dumpfile=tables_dump.dmp logfile=tables_log.log

Export: Release 12.1.0.2.0 - Production on Mon May 28 07:21:51 2018

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

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 options
Starting "BANK"."SYS_EXPORT_TABLE_01":  bank/******** tables=employee,transaction,branch,account directory=my_dir dumpfile=tables_dump.dmp logfile=tables_log.log
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
. . exported "BANK"."ACCOUNT"                            10.21 KB       1 rows
. . exported "BANK"."BRANCH"                             6.789 KB       1 rows
. . exported "BANK"."EMPLOYEE"                           7.632 KB       1 rows
. . exported "BANK"."TRANSACTION"                            0 KB       0 rows
Master table "BANK"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for BANK.SYS_EXPORT_TABLE_01 is:
  D:\EXPORT\TABLES_DUMP.DMP
Job "BANK"."SYS_EXPORT_TABLE_01" successfully completed at Mon May 28 07:21:59 2018 elapsed 0 00:00:07


C:\Users\kmaaz>impdp dwh/d123 tables=employee,transaction,branch,account directory=my_dir dumpfile=tables_dump.dmp logfile=tables_log.log

Import: Release 12.1.0.2.0 - Production on Mon May 28 07:22:08 2018

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

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 options
ORA-39002: invalid operation
ORA-39166: Object DWH.ACCOUNT was not found or could not be exported or imported.
ORA-39166: Object DWH.BRANCH was not found or could not be exported or imported.
ORA-39166: Object DWH.TRANSACTION was not found or could not be exported or imported.
ORA-39166: Object DWH.EMPLOYEE was not found or could not be exported or imported.

  • 首先,确保您拥有
    IMP\u FULL\u数据库
    权限 当然
  • 很可能是
    ORA-39166
    [找不到对象]错误 由于impdp中缺少
    REMAP_SCHEMA=BANK:DWH
    子句而引发 声明。由于这个原因,对象的位置无法确定 下定决心

这与java有什么关系?最好不要发布数据库密码。。。