AIX环境下EXPDP卡住问题处理

问题现象:

最近一用户准备搭建测试环境,由于该用户正式库是AIX小机,测试环境是X86平台,因此只能通过expdp进行数据导出,但是在导出的时候,发现EXPDP一直卡在如下位置,几个小时都不动弹:

Export: Release 11.2.0.3.0 - Production on Fri Dec 5 13:06:21 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

Starting "SYSTEM"."SYS_EXPORT_FULL_01":  system/******** dumpfile=dump:full20141204b_%U_db.dmp logfile=dump:full_expdp1204b_db.log full=y exclude=PACKAGE,FUNCTION,PROCEDURE,INDEX,TABLE:"IN (select table_name
from

dba_tables where table_name in (‘电子病历图形‘,‘检验图像结果‘,‘检验报告图像‘) and owner=‘ZLHIS‘)" cluster=n TRACE=480300

Estimate in progress using BLOCKS method...

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 125.3 GB

Processing object type DATABASE_EXPORT/TABLESPACE

Processing object type DATABASE_EXPORT/PROFILE

Processing object type DATABASE_EXPORT/SYS_USER/USER

Processing object type DATABASE_EXPORT/SCHEMA/USER

Processing object type DATABASE_EXPORT/ROLE

Processing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/GRANT/SYSTEM_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/ROLE_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/DEFAULT_ROLE

Processing object type DATABASE_EXPORT/SCHEMA/TABLESPACE_QUOTA

Processing object type DATABASE_EXPORT/RESOURCE_COST

Processing object type DATABASE_EXPORT/SCHEMA/DB_LINK

Processing object type DATABASE_EXPORT/TRUSTED_DB_LINK

Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/SEQUENCE

Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/SEQUENCE/GRANT/CROSS_SCHEMA/OBJECT_GRANT

Processing object type DATABASE_EXPORT/DIRECTORY/DIRECTORY

Processing object type DATABASE_EXPORT/DIRECTORY/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type DATABASE_EXPORT/CONTEXT

Processing object type DATABASE_EXPORT/SCHEMA/PUBLIC_SYNONYM/SYNONYM

Processing object type DATABASE_EXPORT/SCHEMA/SYNONYM

Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_SPEC

Processing object type DATABASE_EXPORT/SCHEMA/TYPE/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/TYPE/GRANT/CROSS_SCHEMA/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM

Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PROCOBJ

Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM

Processing object type DATABASE_EXPORT/SCHEMA/PROCACT_SCHEMA

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/PRE_TABLE_ACTION

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/GRANT/CROSS_SCHEMA/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/TABLE/COMMENT

Processing object type DATABASE_EXPORT/SCHEMA/VIEW/VIEW

Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/VIEW/GRANT/CROSS_SCHEMA/OBJECT_GRANT

Processing object type DATABASE_EXPORT/SCHEMA/VIEW/COMMENT

Processing object type DATABASE_EXPORT/SCHEMA/TYPE/TYPE_BODY

查看等待事件

根据等待事件,查看该会话执行的SQL语句如下:

这里可以看到有个表统计信息的信息,但是执行该SQL语句,发现无法查询出结果,上metalink上,找到一篇如下文档:

EXPDP HANGS ON AIX WHEN EXCLUDE IS USED WITH QUERY CLAUSE (文档 ID 1513238.1)

YMPTOMS

This article is specifically written for EXPDP/HANG on AIX platforms.  If the HANG is seen on WIN/Linux then this article is not likely to assist

and if seen on any other platform it is worth looking at the symptoms to see if they match, if they do then there is no adverse impact

in applying the advised solution to see if it resolves.

The following symptoms are relevant :-

a) EXPDP at FULL or SCHEMA level gets beyond the ‘Total estimation using BLOCKS method‘ phase and then seems to hang

b) The INCLUDE/EXCLUDE option is being used with a QUERY clause e.g.

INCLUDE=TABLE:"not in (select do.object_name from dba_objects do where do.object_name = ‘DUAL‘)"

EXCLUDE=TABLE:"IN (select table_name from  all_tables where  ((table_name like ‘XN_%‘ )   or (table_name like ‘TR_%‘ ))) "

c) If in addition to the EXLUDE in (B) we also use EXCLUDE=STATISTICS the EXPDP no longer hangs and runs to completion.

SOLUTION

To implement a solution for unpublished Bug:14095143, please execute any of the below alternative solutions:

  • Upgrade to 12.1 when it will become available

    OR

  • Apply patchset release 11.2.0.4 when it becomes available (not available as of time of publishing this article: DEC-2012) in which Bug:14095143 is fixed.

    OR

  • Download and apply interim Patch:14095143, if available for your platform and RDBMS release. To check for conflicting patches,
    please use the MOS Patch Planner Tool. If no patch is available, file a Service Request through My Oracle Support for your specific Oracle version and platform.  An AIX oneoff fix is made for 11203

    OR

  • Use the workaround of specifying the EXCLUDE=STATISTICS command line option for EXPDP.

可以看到,我们确实EXPDP中使用了EXCLUDE=TABLE:"IN (select * )  这种类似的排除语句,文档给出的解决方法是排除统计信息,尝试修改导出语句,排除统计信息,EXPDP顺利完成。

时间: 2024-08-05 19:56:10

AIX环境下EXPDP卡住问题处理的相关文章

如何在aix环境下创建DB2数据库

创建DB2(DB2认证 DB2培训 )数据库(数据库培训 数据库认证 )应该是每个DB2使用者都需要掌握的知识,下面就为您介绍在AIX(AIX认证考试 IBM AIX培训 )环境下创建DB2数据库的方法,如果您在创建DB2数据库方面遇到过问题,不妨一看. 查看环境变量 db2set 如果发现db2set中db2codepage不是819,执行 以下是代码片段: db2set db2codepage=819 db2 create database test05 on /home/db2inst1

AIX环境下文件远程传输复制工具--rsync安装测试

一.RSYNC简介   rsync(remote synchronize)是一个远程数据同步工具,可通过LAN/WAN快速同步多台主机间的文件.rsync使用所谓的"rsync算法"来使本地和远程两个主机之间的文件达到同步,这个算法只传送两个文件的不同部分,而不是每次都整份传送,因此速度相当快.  rsync的基本特点如下:1.可以镜像保存整个目录树和文件系统:2.可以很容易做到保持原来文件的权限.时间.软硬链接等:3.无须特殊权限即可安装:4.优化的流程,文件传输效率高:5.可以使用

AIX 环境下ODM库同步

IBM AIX v5.3操作系统环境下有时会出现ODM库与rootvg硬盘上数据不同步的情况.使用命令lsvg -l datavg检查文件系统类型,发现显示为"???"这就表示ODM库中定义与实际不一致. 可以使用以下命令来实现rootvg文件系统与ODM库同步,完成后即可使用lsvg -l来检查#synclvodm -P datavg#syncvg -v datavg

AIX 环境下动态路由

IBM AIX v5.3操作系统环境下动态路由配置如下: 1,用命令lssrc -S routed和lssrc -S gated分别检查routed和gated子系统是是活动状态.如果这两个子系统为活动状态,则需要全部停止.#stopsrc -s routed#stopsrc -s gated 2,使用命令no -a |grep -i ipignoreredirects查看该值是否为1,如果不为1则执行以下命令设置为1,从而禁止动态路由;#no -o ipignireredirects=1 3,

aix裸设备环境下为数据库添加新的数据文件

裸设备环境下,数据如果要添加数据文件比其他环境要稍微麻烦点,因为一个裸设备下面只能创建一个数据文件,以下为一次添加数据文件的记录,如下: 1.查看卷组lsvg 2查看物理卷 3.查看逻辑卷  lspv显示在卷组中的物理卷信息 4.lsvg  datavg 5.如果有closed就表示没用的 6.alter tablespace ZL9EPRLOB Add datafile '/dev/rora_data017_8g' size 5000m AUTOEXTEND OFF; 7.如果没有就需要先创建

Mac环境下Myeclispe2015工具的安装与破解

首先是Myeclispe2015的下载,废话不多说,已传至百度云,直接下载即可. Myeclispe2015 for mac下载地址: 链接: http://pan.baidu.com/s/1qWzKzOK 密码: recx 然后是破解工具的下载(适用于2014与2015): 链接: http://pan.baidu.com/s/1jGxULnS 密码: crz3 Myeclispe工具下载完之后,直接安装即可, 打开myeclipse-2015-stable-2.0-offline-insta

C语言在VS2017环境下写俄罗斯方块的感悟

C语言给几乎所有人的印象就是语法太严格.使用太拘谨,错误特别多,纠结太细致.很难提起兴趣来.同时还有如下的巨大弱势: 1:C语言写了很久还是只开发黑窗口程序,看不到实际应用在哪里,严重打击兴趣: 2:如果想要使用高效的集成开发环境,却很难和图形库链接上(主要是太多横空出世.突如其来的.不懂的操作细节,比如链接Lib库,为什么要那样做?不清楚,只是照着做而已):以至于高效IDE的魅力也大大失去了光彩. 3:硬要写图形化窗口你可能还真得跑到TC这种连复制粘贴都不友好的环境下去玩.实际公司中不用这低级

rac下 expdp 报错:ORA-31693 ORA-31617 ORA-19505 ORA-27037

rac expdp导出时报错:ORA-31693: Table data object "scott"."dept" failed to load/unload and is being skipped due to error:ORA-31617: unable to open dump file "/home/oraclerac/dump_dir/oravs_expdp_05.dmp" for writeORA-19505: failed t

如何诊断rac环境下sysdate 返回错误时间问题

最近处理了一些rac环境下访问sysdate返回错误时间的问题,而这种问题往往出现在数据库链接是通过Listener创建的情况下,而且,大部分情况下都是和时区设置相关的.在这篇文章中我们会针对如何诊断这种问题进行解释.这篇文章适用于版本11.2.0.2 及以上版本. 首先,对问题当中涉及到的知识进行介绍. 1. 从版本11.2.0.2 开始oracle 集群(GI)开始拥有了自己的时区和一些其他配置,这些配置保存在配置文件<gi_home>/crs/install/s_crsconfig_&l