AIX下 oracle10g exp 超时问题

[复制链接]
查看11 | 回复9 | 2005-2-28 12:57:00 | 显示全部楼层 |阅读模式
OS: IBM AIX Version 5.3
DB:
SQL> select* from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE10.2.0.1.0Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Productio
NLSRTL Version 10.2.0.1.0 - Production
进行exp 的时候出现等待,exp无法进行
-bash-3.00$ exp userid=scott/tiger file=scott.dmp
Export: Release 10.2.0.1.0 - Production on Fri Apr 6 09:35:21 2007
Copyright (c) 1982, 2005, Oracle.All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
在这个地方exp就不动了,出现等待
查询v$session中的wait event
SQL> column EVENT formata30;
SQL> column wait_class format a30;
SQL> select sid,event,wait_class from v$session where program like '%exp%';
SID EVENT
WAIT_CLASS
---------- ------------------------------ ------------------------------

159 library cache pin
Concurrency
在v$session中 的 等待事件中发现 library cache pin 等待类型为
Concurrency,library cache pin 应该为shared pool 中library等待
exp 为什么会出现这个等待呢 ?

是什么原因导致这个等待事件的 发生呢 ?
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
http://www.itpub.net/showthread. ... 79&pagenumber=1
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
EXP等待一段时间后出现
EXP-00056: ORACLE error 4021 encountered
ORA-04021: timeout occurred while waiting to lock object
EXP-00000: Export terminated unsuccessfully
-bash-3.00$
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
如果只exp 一张表 的 话就 没有 问题
-bash-3.00$ exp userid=scott/tiger file=scott.dmp tables=emp
Export: Release 10.2.0.1.0 - Production on Fri Apr 6 09:52:40 2007
Copyright (c) 1982, 2005, Oracle.All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table
EMP 14 rows exported
Export terminated successfully without warnings.
这个问题可以总结位在这个os的oracle10g中,exp 在对整个数据库或者整个用户到处的时候就会出现等待,但是对单个用户表的时候就没有 问题

这个难道 是10g的bug吗?
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
1、尝试用expdp
2、升级补丁到10.2.02
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
最初由 shengang34 发布
[B]1、尝试用expdp
2、升级补丁到10.2.02 [/B]

exp 使用习惯了,正在考虑将数据库patch升级
当进行全用户导出的 时候发现在导出
. exporting cluster definitions
cluster的 时候出现了 问题,但是导出单独的 表没有 问题
猜想估计是与cluster有关的 数据字典试图出现了 问题,可能是与cluster有关的系统package有问题
可能需要运行某个数据字典语句重新建立数据库的 数据字典
但是要运行那一个呢 ?
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
最初由 rchsh 发布
[B]如果只exp 一张表 的 话就 没有 问题
-bash-3.00$ exp userid=scott/tiger file=scott.dmp tables=emp
Export: Release 10.2.0.1.0 - Production on Fri Apr 6 09:52:40 2007
Copyright (c) 1982, 2005, Oracle.All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table
EMP 14 rows exported
Export terminated successfully without warnings.
这个问题可以总结位在这个os的oracle10g中,exp 在对整个数据库或者整个用户到处的时候就会出现等待,但是对单个用户表的时候就没有 问题

这个难道 是10g的bug吗? [/B]

9205 上我也遇上过,不是BUG。
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
最初由 ZALBB 发布
[B]
9205 上我也遇上过,不是BUG。 [/B]

福兄,好久不见了
应该 是与cluster有关的数据字典出了问题,需要重新建立
要运行那个重建 sql呢
回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
查了一下metalink,上面页找不出什么解决方法


回复

使用道具 举报

千问 | 2005-2-28 12:57:00 | 显示全部楼层
最初由 rchsh 发布
[B]
福兄,好久不见了
应该 是与cluster有关的数据字典出了问题,需要重新建立
要运行那个重建 sql呢 [/B]

如果是BUG ,则每次EXP都是这个情况。你测试了几回?
我有个EXP备份计划,也曾经出现过这种情况。后再EXP,一切正常。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行