热门标签 | HotTags
当前位置:  开发笔记 > 数据库 > 正文

expdpora-31640ora-19505

oracle@db01:oraapporaclebackupimpdpassysdbadirectoryDB_BACKUPdumpfilenewdb.20140918.dmplogfilenewdb_0919.logparallel4cImport:Release11.2.0.3.0

oracle@db01:/oraapp/oracle/backupimpdp \'/ as sysdba\' directory=DB_BACKUP dumpfile=newdb.20140918.dmp logfile=newdb_0919.log parallel=4 c Import: Release 11.2.0.3.0 - Production on Fri Sep 19 11:27:12 2014 Copyright (c) 1982, 2011, Oracle

oracle@db01:/oraapp/oracle/backup>impdp \'/ as sysdba\' directory=DB_BACKUP dumpfile=newdb.20140918.dmp logfile=newdb_0919.log parallel=4 c>
Import: Release 11.2.0.3.0 - Production on Fri Sep 19 11:27:12 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Master table "SYS"."SYS_IMPORT_FULL_04" successfully loaded/unloaded Starting "SYS"."SYS_IMPORT_FULL_04": "/******** AS SYSDBA" directory=DB_BACKUP dumpfile=newdb.20140918.dmp logfile=newdb_0919.log parallel=4 cOntent=all full=y 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/TABLESPACE_QUOTA Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA ORA-31693: Table data object "H1"."TRDX_FEE_TABLE" failed to load/unload and is being skipped due to error: ORA-31640: unable to open dump file "/oraapp/oracle/backup/newdb.20140918.dmp" for read ORA-19505: failed to identify file "/oraapp/oracle/backup/newdb.20140918.dmp" ORA-27037: unable to obtain file status IBM AIX RISC System/6000 Error: 2: No such file or directory Additional information: 3 ORA-31693: Table data object "H1"."TRDX_Q" failed to load/unload and is being skipped due to error: ORA-31640: unable to open dump file "/oraapp/oracle/backup/newdb.20140918.dmp" for read ORA-19505: failed to identify file "/oraapp/oracle/backup/newdb.20140918.dmp" ORA-27037: unable to obtain file status IBM AIX RISC System/6000 Error: 2: No such file or directory Additional information: 3 ORA-31693: Table data object "H1"."TRDX_OI" failed to load/unload and is being skipped due to error: ORA-31640: unable to open dump file "/oraapp/oracle/backup/newdb.20140918.dmp" for read ORA-19505: failed to identify file "/oraapp/oracle/backup/newdb.20140918.dmp" ORA-27037: unable to obtain file status IBM AIX RISC System/6000 Error: 2: No such file or directory Additional information: 3 ORA-31693: Table data object "H1"."TRDX_Q" failed to load/unload and is being skipped due to error: ORA-31640: unable to open dump file "/oraapp/oracle/backup/newdb.20140918.dmp" for read ORA-19505: failed to identify file "/oraapp/oracle/backup/newdb.20140918.dmp" ORA-27037: unable to obtain file status IBM AIX RISC System/6000 Error: 2: No such file or directory Additional information: 3
Import> exit

SQL> select * from v$version;
BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production
SQL>
使用expdp导入数据到Rac环境,parallel 并行为4,发现导入报以上错误,分析发现Rac环境使用并行导入时会尝同时写数据库到两个节点,如果目录在本地磁盘, 则导入时候会报此错误。(导出时也存在此问题) 解决办法是在导出导入的时候加上cluster参数等于N进行单节点导入操作。 即:impdp \'/ as sysdba\' directory=db_backup dumpfile=newdb.dmp logfile=newdb.log parallel=4 cOntent=all full=y cluster=n



. . imported "H1"."TRDX_OC" 5.950 MB 60692 rows . . imported "H1"."TRDX_Q" 4.643 MB 15728 rows ORA-31693: Table data object "H1"."TRDX_P" failed to load/unload and is being skipped due to error: ORA-02354: error in exporting/importing data ORA-12081: update operation not allowed on table "H1"."TRDX_P" . . imported "H1"."TRDX_QU" 5.687 MB 18639 rows ORA-31693: Table data object "H1"."TRDX_HL" failed to load/unload and is being skipped due to error: ORA-02354: error in exporting/importing data ORA-12081: update operation not allowed on table "H1"."TRDX_HLD" . . imported "H1"."TRDX_API_TX" 5.079 MB 48360 rows . . imported "H1"."TRDX_DE" 4.361 MB 91505 rows ORA-31693: Table data object "H1"."TRDX_ASSE" failed to load/unload and is being skipped due to error: ORA-02354: error in exporting/importing data ORA-12081: update operation not allowed on table "H1"."TRDX_ASSET"

导入的同时出现以上错误,根据Mos [Doc 1270847.1]描述是由于这些表上存在物化视图,建议使用TABLE_EXISTS_ACTION=APPEND参数导入数据; 此参数默认是SKIP。

推荐阅读
  • 本文详细介绍了如何使用libpq库与PostgreSQL后端建立连接。通过探讨PQconnectdb()函数的工作原理及其在实际应用中的使用方法,帮助读者理解并掌握建立高效、稳定的数据库连接的关键步骤。 ... [详细]
  • Windows服务与数据库交互问题解析
    本文探讨了在Windows 10(64位)环境下开发的Windows服务,旨在定期向本地MS SQL Server (v.11)插入记录。尽管服务已成功安装并运行,但记录并未正确插入。我们将详细分析可能的原因及解决方案。 ... [详细]
  • 数据库内核开发入门 | 搭建研发环境的初步指南
    本课程将带你从零开始,逐步掌握数据库内核开发的基础知识和实践技能,重点介绍如何搭建OceanBase的开发环境。 ... [详细]
  • 本文深入探讨 MyBatis 中动态 SQL 的使用方法,包括 if/where、trim 自定义字符串截取规则、choose 分支选择、封装查询和修改条件的 where/set 标签、批量处理的 foreach 标签以及内置参数和 bind 的用法。 ... [详细]
  • 使用C#开发SQL Server存储过程的指南
    本文介绍如何利用C#在SQL Server中创建存储过程,涵盖背景、步骤和应用场景,旨在帮助开发者更好地理解和应用这一技术。 ... [详细]
  • 本文探讨了适用于Spring Boot应用程序的Web版SQL管理工具,这些工具不仅支持H2数据库,还能够处理MySQL和Oracle等主流数据库的表结构修改。 ... [详细]
  • 本文详细介绍了如何通过多种编程语言(如PHP、JSP)实现网站与MySQL数据库的连接,包括创建数据库、表的基本操作,以及数据的读取和写入方法。 ... [详细]
  • 在当前众多持久层框架中,MyBatis(前身为iBatis)凭借其轻量级、易用性和对SQL的直接支持,成为许多开发者的首选。本文将详细探讨MyBatis的核心概念、设计理念及其优势。 ... [详细]
  • 在使用 DataGridView 时,如果在当前单元格中输入内容但光标未移开,点击保存按钮后,输入的内容可能无法保存。只有当光标离开单元格后,才能成功保存数据。本文将探讨如何通过调用 DataGridView 的内置方法解决此问题。 ... [详细]
  • 本文详细介绍了如何在 Linux 平台上安装和配置 PostgreSQL 数据库。通过访问官方资源并遵循特定的操作步骤,用户可以在不同发行版(如 Ubuntu 和 Red Hat)上顺利完成 PostgreSQL 的安装。 ... [详细]
  • 如何在PostgreSQL中查看数据表
    本文将指导您使用pgAdmin工具连接到PostgreSQL数据库,并展示如何浏览和查找其中的数据表。通过简单的步骤,您可以轻松访问所需的表结构和数据。 ... [详细]
  • 利用存储过程构建年度日历表的详细指南
    本文将介绍如何使用SQL存储过程创建一个完整的年度日历表。通过实例演示,帮助读者掌握存储过程的应用技巧,并提供详细的代码解析和执行步骤。 ... [详细]
  • 本文介绍了如何通过 Maven 依赖引入 SQLiteJDBC 和 HikariCP 包,从而在 Java 应用中高效地连接和操作 SQLite 数据库。文章提供了详细的代码示例,并解释了每个步骤的实现细节。 ... [详细]
  • 在使用SQL Server进行动态SQL查询时,如果遇到LIKE语句无法正确返回预期结果的情况,通常是因为参数传递方式不当。本文将详细探讨这一问题,并提供解决方案及相关的技术背景。 ... [详细]
  • 本文介绍如何通过创建替代插入触发器,使对视图的插入操作能够正确更新相关的基本表。涉及的表包括:飞机(Aircraft)、员工(Employee)和认证(Certification)。 ... [详细]
author-avatar
于俊毅智文建志
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有