免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2055 | 回复: 9
打印 上一主题 下一主题

为什么回滚段在没有任务的时候,几乎被完全占用? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-02 17:08 |只看该作者 |倒序浏览
一直无法解决的问题?!

/u1/app/oracle/ora73/oradata/ora73/rbs01.dbf
/u1/app/oracle/ora73/oradata/ora73/rbs02.dbf
/u1/app/oracle/ora73/oradata/ora73/rbs03.dbf

在没有任务的时候,三个RBS的回滚文件,占用率都在97%左右。

用清理回滚段语句
alter rollback segment rb01 shrink;
alter rollback segment rb02 shrink;
alter rollback segment rb03 shrink;

后占用率变为96%,93%,92% 左右。


在oracle dba studio 里查看,例程->;未解决事务下,又很多几年前的
事务。强制回滚报ora 00600错!

请各位大虾,帮忙分析一下原因。

论坛徽章:
0
2 [报告]
发表于 2003-09-02 17:10 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

ora 00600 的 arguments 是 [18104][0][0][][][][][]

论坛徽章:
0
3 [报告]
发表于 2003-09-02 17:23 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

开个新回滚段,把旧的全offline,再重新online看看,或者alter rollback segment rb01 shrink to xxxm?可以吗?

论坛徽章:
0
4 [报告]
发表于 2003-09-02 17:32 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

alter rollback segment rb01 shrink to xxxm 试过 ,没用什么大用。

让回滚段占用率由99%变成93%。

论坛徽章:
0
5 [报告]
发表于 2003-09-03 10:10 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

restart your oracle ?

论坛徽章:
0
6 [报告]
发表于 2003-09-03 18:35 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

我有同样的问题,REBOOT都不行

论坛徽章:
0
7 [报告]
发表于 2003-09-04 12:56 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

我有两台机器有这种问题,其中一台用offline .online .再清空后问题就
解决了。另一台还是不行。

会不会是另一台的数据量比较大,又一直没做彻底的清理的原因呢??

还想请问一下,造成这种现象的原因是什么?

论坛徽章:
0
8 [报告]
发表于 2003-09-05 15:33 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

请问每一个rbs的使用情况是怎样看的?

论坛徽章:
0
9 [报告]
发表于 2003-09-05 17:07 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

查了metalink
说是
FAILED DISTRIBUTED TRANSACTIONS  

Before you begin, make note of the local transaction ID, <local_tran_id>;, from  the error message reported.

1. Determine if you can attempt a commit or rollback of this
transaction.  You can do the following select to help determine what
action to take:

SQL>; select state, tran_comment, advice from dba_2pc_pending


   where local_tran_id = '<local_tran_id>;';

  Review the TRAN_COMMENT column as this could give more information  as to the origin of the transaction or what type of transaction it was.  Review the ADVICE column as well.  Many applications prescribe advice  about whether to force commit or force rollback the distributed  transaction upon failure.  2. Commit or rollback the transaction.
To commit:

   SQL>; commit force '<local_tran_id>;';
   To rollback:

   SQL>; rollback force '<local_tran_id>;';
WARNING: Step 3 (purge_lost_db_entry) and Step 4 should ONLY be used  when the other database is lost or has been recreated.   Any other use may leave the other database in an unrecoverable or  inconsistent state.  3. If your are using release  7.3.x or greater and you need to execute  purge_lost_db_entry from the suggestions above
execute the following command in either Server Manager or SQL*Plus:
   SQL>; execute sys.dbms_transaction.purge_lost_db_entry('<local_tran_id>;');
  SQL>; COMMIT;   NOTE:  You must run above procedure as sys (since package is owned by sys),

you must have execute privileges, or have DBA privileges   4. If running a release below 7.3 but were suggested to execute  purge_lost_db_entry :
  Connect to Server Manager or SQL*Plus and execute the following
  commands:

SQL>; connect sys/<password>;

SQL>; set transaction use rollback segment system;

SQL>; delete from dba_2pc_pending where



local_tran_id = '<local_tran_id>;';

SQL>; delete from pending_sessions$ where



local_tran_id = '<local_tran_id>;';

SQL>; delete from pending_sub_sessions$ where



local_tran_id = '<local_tran_id>;';

SQL>; COMMIT;
  Solution Explanation:
=====================
The above steps work ONLY after verifying that the other database the Distributed Transaction is dependent on is no longer available.  The steps above will allow these transactions to be deleted and no longer cause RECO to keep giving you the error messages stated in the problem.

论坛徽章:
0
10 [报告]
发表于 2003-09-05 20:03 |只看该作者

为什么回滚段在没有任务的时候,几乎被完全占用?

重建好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP