转 RAC单个节点执行expdp提示ORA-31693 ORA-31617 ORA-19505 ORA-27037错误

http://blog.itpub.net/31394774/viewspace-2217567/

1.在RAC单节点执行expdp,出现ORA-31693 ORA-31617 ORA-19505 ORA-27037错误


1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

[email protected]:/backup$ expdp directory=dir_dp schemas=hr dumpfile=hr.dmp logfile=hr.log parallel=2

 

Export: Release 11.2.0.4.0 - Production on Thu Oct 25 17:14:26 2018

 

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

 

Username: system 

Password: 

 

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 Testing options

Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01":  system/******** directory=dir_dp schemas=hr dumpfile=hr.dmp logfile=hr.log parallel=2 

Estimate in progress using BLOCKS method...

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 448 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/SEQUENCE/SEQUENCE

Processing object type SCHEMA_EXPORT/TABLE/TABLE

Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type SCHEMA_EXPORT/TABLE/COMMENT

Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE

Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE

Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX

Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT

Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS

Processing object type SCHEMA_EXPORT/VIEW/VIEW

Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT

Processing object type SCHEMA_EXPORT/TABLE/TRIGGER

Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

ORA-31693: Table data object "HR"."COUNTRIES" failed to load/unload and is being skipped due to error:

ORA-31617: unable to open dump file "/backup/hr.dmp" for write

ORA-19505: failed to identify file "/backup/hr.dmp"

ORA-27037: unable to obtain file status

SVR4 Error: 2: No such file or directory

Additional information: 3

ORA-31693: Table data object "HR"."DEPARTMENTS" failed to load/unload and is being skipped due to error:

ORA-31617: unable to open dump file "/backup/hr.dmp" for write

ORA-19505: failed to identify file "/backup/hr.dmp"

ORA-27037: unable to obtain file status

SVR4 Error: 2: No such file or directory

Additional information: 3

2.查找解决方案

在MOS上使用关键字“expdp ORA-27037”查找文章:

DataPump Export (EXPDP) Fails With Errors ORA-31693 ORA-31617 ORA-19505 ORA-27037 In a RAC Environment (文档 ID 1597395.1)

SYMPTOMS

Customer receives the following errors:

ORA-31693: Table data object "W7JCR_INTER"."ICMUT01102001" failed to load/unload and is being skipped due to error: 
ORA-31617: unable to open dump file "<dumpfile name and path>" for write 
ORA-19505: failed to identify file "<dumpfile name and path>" 
ORA-27037: unable to obtain file status 
Solaris-AMD64 Error: 2: No such file or directory 
Additional information: 3

Note: 
It is possible for this to occur on other operating systems since it is a mount point. The OS specific errors may therefore be different.

CAUSE

The problem occurs when Datapump Export is being performed on a multi-node RAC where the dumpfile destination is not shared to all nodes for access.  Since multiple nodes will be running the Datapump job, ALL nodes must have access to the mount point where the dump file will be written. 
  
The issue is addressed in the following bug report which was closed with status ‘Not a Bug‘: 
Bug 11677316 - DATA PUMP UNABLE TO OPEN DUMP FILE ORA-31617 ORA-19505 ORA-27037

SOLUTION

1. Share/mount the dumpfile destination with all RAC nodes performing the expdp

- OR -

2. Use CLUSTER=N during Datapump so it will only run on the node which has the mount point and permissions to write to it.

显然,问题是因为在单个节点备份的路径对RAC集群的其他节点不可见而导致的,所以需要通过修改备份路径或者增加CLUSTER=N参数进行解决。这里由于路径已经固定,所以选择后一种方法进行处理。

3.问题处理

修改备份命令,增加CLUSTER=N参数后重新执行:


1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

[email protected]:/backup$ expdp directory=dir_dp schemas=hr dumpfile=hr.dmp logfile=hr.log parallel=2 CLUSTER=N

Export: Release 11.2.0.4.0 - Production on Thu Oct 25 17:18:54 2018

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

Username: system

Password: 

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 Testing options

Starting "SYSTEM"."SYS_EXPORT_SCHEMA_02":  system/******** directory=dir_dp schemas=hr dumpfile=hr.dmp logfile=hr.log parallel=2 CLUSTER=N 

Estimate in progress using BLOCKS method...

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 448 KB

. . exported "HR"."COUNTRIES"                            6.367 KB      25 rows

. . exported "HR"."DEPARTMENTS"                          7.007 KB      27 rows

. . exported "HR"."EMPLOYEES"                            16.80 KB     107 rows

. . exported "HR"."JOBS"                                 6.992 KB      19 rows

. . exported "HR"."JOB_HISTORY"                          7.054 KB      10 rows

. . exported "HR"."LOCATIONS"                            8.273 KB      23 rows

. . exported "HR"."REGIONS"                              5.476 KB       4 rows

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/SEQUENCE/SEQUENCE

Processing object type SCHEMA_EXPORT/TABLE/TABLE

Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type SCHEMA_EXPORT/TABLE/COMMENT

Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE

Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE

Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX

Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT

Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS

Processing object type SCHEMA_EXPORT/VIEW/VIEW

Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT

Processing object type SCHEMA_EXPORT/TABLE/TRIGGER

Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

Master table "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded

******************************************************************************

Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_02 is:

  /backup/hr.dmp

Job "SYSTEM"."SYS_EXPORT_SCHEMA_02" successfully completed at Thu Oct 25 17:19:21 2018 elapsed 0 00:00:13

问题顺利解决。

step 1: in db

su - opdb

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

sqlplus db/db1234DBA

create or replace directory schema_exp as ‘/dbatmp/expdata_for_ods/dump‘;
grant read,write on directory schema_exp to public;

cd /dbatmp/expdata_for_ods

vi expdp_tab.par

directory=schema_exp
dumpfile=expdp__table_tt_%U.dmp
logfile=expdp__table_tt.log
parallel=6
filesize=10240M
exclude=INDEX
tables=(SYMBOLS.tt)
CLUSTER=N

nohup expdp db/db1234DBA parfile=expdp_tab.par &

step 2: copy file from db to osdhstdb 10.196.8.62:/db/odshst/data/dump/db

su - opdb
cd /dbatmp/expdata_for_ods/dump
scp *.dmp [email protected]:/db/odshst/data/dump/db

step 3 in 10.196.8.62 odshst

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

/bin/su - opodshst

sqlplus db/dbdb1

create directory schema_imp as ‘/db/odshst/data/dump/db‘;

cd /db/odshst/data/dump/db

vi impdp_table.par

userid=db/dbdb1
directory=schema_imp
logfile=impdp_table.log
parallel=6
dumpfile=expdp__table_tt_%U.dmp
TABLE_EXISTS_ACTION=REPLACE
EXCLUDE=INDEX

nohup impdp impdp_table.par &

#########

原文地址:https://www.cnblogs.com/feiyun8616/p/11824022.html

时间: 2024-10-10 14:41:24

转 RAC单个节点执行expdp提示ORA-31693 ORA-31617 ORA-19505 ORA-27037错误的相关文章

Kubernetes node节点执行Kubectl提示无法连接至api-server

今天在Kubernetes的node节点上运行命令 [ kubectl ] 命令出现了如下错误 [[email protected] ~]# kubectl -s 10.0.0.31:8080 get nodes The connection to the server 10.0.0.31:8080 was refused - did you specify the right host or port? 出现这个问题的原因是kubectl命令需要使用kubernetes-admin来运行,解决

zk保证定时任务集群部署时单个节点执行

@Component public class ZKLeaderLatch { private static CuratorFramework zkClient; private static LeaderLatch leaderLatch; public ZKLeaderLatch(@Value("${zkservers}")String servers, @Value("${masterkey}")String masterkey) { String conne

Oracle Study之--Oracle 11g RAC添加节点错误

Oracle Study之--Oracle 11g RAC添加节点错误 系统环境:     操作系统:RedHat EL5     Cluster:  Oracle 11gR2 Grid     Oracle:   Oracle 11gR2  故障一:新节点和原节点时间不同步,添加节点失败 1.在新节点执行"root.sh"  [root@wqy3 install]# /u01/11.2.0/grid/root.sh  Running Oracle 11g root.sh script

实验:Oracle单节点RAC添加节点

环境:RHEL 6.5 + Oracle 11.2.0.4 单节点RAC 需求:单节点RAC添加新节点 1.添加节点前的准备工作 2.正式添加节点 3.其他配置工作 1.添加节点前的准备工作 参考Oracle官方文档: Oracle? Clusterware Administration and Deployment Guide 11g Release 2 (11.2) -> Adding and Deleting Cluster Nodes 1.1 确保硬件连接正常 1.1 Make phys

Oracle 11gR2 RAC 添加节点

1. 概述 生产,测试数据库添加节点. 2. 安装前准备 1.首先,物理链路的准备.这过程包括对db3进行存储映射.心跳互联等物理环境的准备: 2.根据db1.db2的操作系统配置,安装.配置db3的操作系统:注意此处需要配置的操作系统内容较多.大致包括确认RAC需要的系统安装包.系统核心参数配置.ASMLIB的配置./etc/hosts配置等等.详细可参考官方的安装指导手册. 3.根据db1.db2的操作系统组.用户的信息,在db3上创建相应的组.用户:创建对于的目录信息:注意:创建的组.用户

oracle 11g rac dbca建库时提示创建监听

Oracle 11g rac dbca建库时提示创建监听 在安装oracle 11g rac时,使用dbca建库的过程中提示需要创建监听: Default Listener "LISTENER" is not configured in Grid Infrantructure home.Use NetCA to configure Default Listener and return DBCA 解决步骤如下 因为oracle 11g rac在安装过程中会自动创建监听,无需手动创建,首

redhat6 + 11G RAC 双节点部署

  一.配置网络环境 node1 [[email protected] ~]#vi/etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=node1 [[email protected] ~]# vi/etc/sysconfig/network-scripts/ifcfg-eth0 # Intel Corporation 82540EM GigabitEthernet Controller DEVICE=eth0 BOO

并查集间单个节点的转移(UVa 11987 Almost Union-Find)

从来没有这么艰难地完成一道算法题过!经过8次失败之后总算提交成功了!所以决定写一篇博文,对并查集的相关内容做一些总结. 普通并查集的操作无非是两种,find_set(x)即找到节点x所在的集合的代表节点,或者是union_set(x,y),即将x和y所在的两个集合合并起来.如下图所示,有左右两个并集 通常,我们会选用并查集中父节点为自己的元素作为这个并查集的代表,例如图中的节点a和节点e.那么,我们如何通过集合中的一个节点找到该节点所在集合的代表节点呢?其实很简单,例如上图中的d节点,它首先通过

localhost错误导致Rac root.sh执行失败

环境: AIX 7.1 Oracle Rac 11.2.0.3 [email protected]:/oraapp/grid/gridhome>./root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME=  /oraapp/grid/gridhome Enter the full path