楼主: yanghx_yhx

我已经增加了回滚段,但是为什么还是出现ORA-01555错误?

[复制链接]
论坛徽章:
2
授权会员
日期:2007-09-09 07:55:30ITPUB元老
日期:2007-09-09 07:58:37
21#
发表于 2004-12-30 10:05 | 只看该作者
谢谢各位

使用道具 举报

回复
论坛徽章:
31
授权会员
日期:2005-10-30 17:05:332012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:09:23
22#
发表于 2004-12-30 10:05 | 只看该作者
建一个很大的回滚段先
然后把别的回滚段先offline
如果这种事物频繁,这种方法可能不是很好

使用道具 举报

回复
论坛徽章:
0
23#
 楼主| 发表于 2004-12-30 10:05 | 只看该作者

怎么样查询到回滚段的OPTIMAL设置?

怎么样查询到回滚段的OPTIMAL设置?

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2007-09-09 07:55:30ITPUB元老
日期:2007-09-09 07:58:37
24#
发表于 2004-12-30 10:06 | 只看该作者

ORA-01555 Using Automatic Undo Management- Causes and solutions

ORA-01555 Using Automatic Undo Management- Causes and solutions

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2007-09-09 07:55:30ITPUB元老
日期:2007-09-09 07:58:37
25#
发表于 2004-12-30 10:06 | 只看该作者
PURPOSE -------  This article discusses the circumstances under which a query can return the ORA-01555 "snapshot too old (rollback segment too small" Error when using the AUM( Automatic Undo Management) feature and also the possible  solutions to this error.      SCOPE & APPLICATION -------------------  For users experiencing the  ORA-01555 Error.   ORA-01555 Using Automatic Undo Management- Causes and solutions -----------------------------------------------------------------  There are various reasons behind the error ORA-01555. When using plain  rollback segments as in Oracle 8i and below versions, the reasons and  possible solutions have been identified in Note:1005107.6 and Note:45895.1 This article shall focus on the Ora-1555 errors received even when using the AUM(Automatic Undo Management) feature as in Oracle 9i and 10G versions   Undo_retention : ------------------  Ora-1555 error can be caused if Undo_retention parameter is set. Retention is specified  in units of seconds. This parameter determines the lower threshold value of undo  retention. The system retains undo for at least the time specified in this  parameter.  The UNDO_RETENTION parameter is only honored if the current undo tablespace has  enough space. If an active transaction requires undo space and the undo tablespace  does not have available space, then the system starts reusing unexpired undo space.  This can cause some queries to fail with ORA-01555(snapshot too old) message.  Please note that Oracle does not reuse unexpired extents until and unless  there are no more free extents available.  The Sequence for using extents is as follows:  1. A new extent will be allocated from the undo tablespace when the requirement arises  2. If this fails because of no available free extents and we cannot autoextend, then it tries to steal an expired extent from another undo segment.   3. If it still fails because there are no extents with expired status then it tries to reuse an unexpired extent from the current undo segment.  4. If even that fails, it tries to steal an unexpired extent from another undo segment.  5. If all the above fails, it report an "Out-Of-Space" error.        Solution :  1.  The UNDO tablespace is too small. Increase the size of the Undo tablespace. Please note that the undo tablespace should be large enough to store the undo data  generated by active transaction as well as those ?preserved? to honor the undo  retention setting.  2. Increase the value of the Undo_retention parameter. This is important for  systems running long queries.  The parameter's value should at least be equal to  the length of longest running query on a given database instance.  This can be determined by querying V$UNDOSTAT view once the database has been running for a while.  SQL> select max(maxquerylen) from v$undostat;   3. Retention Guarantee  With Oracle 10G version we have an option to guarantee undo retention. When this  option is enabled the database never overwrites unexpired undo data that is, undo  data whose age is less than the undo retention period.   You can enable the guarantee option by specifying the RETENTION GUARANTEE clause  for the undo tablespace when it is created by either the CREATE DATABASE or CREATE  UNDO TABLESPACE statement Or at a later period using the ALTER TABLESPACE statement.   RELATED DOCUMENTS -----------------   [NOTE:40689.1]   ORA-01555 "Snapshot too old" - Detailed Overview  [NOTE:1005107.6] ORA-01555 "Snapshot too old" - Causes and Solutions  [NOTE:45895.1]   ORA-01555 "Snapshot too old" in Very Large Databases   Search Words: ============= ORA-1555, AUM

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2007-09-09 07:55:30ITPUB元老
日期:2007-09-09 07:58:37
26#
发表于 2004-12-30 10:07 | 只看该作者
以上metalink作谢大家

使用道具 举报

回复
论坛徽章:
0
27#
 楼主| 发表于 2004-12-30 10:10 | 只看该作者

angelsliu:你的问题为什么要在我的问题上问呢?

我们的问题不是一回事吗。

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2007-09-09 07:55:30ITPUB元老
日期:2007-09-09 07:58:37
28#
发表于 2004-12-30 10:23 | 只看该作者
共同学习嘛,呵呵,要不留下你的Email/msn我们常沟通

使用道具 举报

回复
论坛徽章:
0
29#
发表于 2004-12-30 10:35 | 只看该作者

Re: 个人意见 不一定对

最初由 lxwin2008 发布
[B]如果在AUTO下 你想增大回滚 只能增大undo_rentention参数
如果你想用手动来解决 可以改成手动模式后 自己建立大的回滚段 就可以了 在biti的书上有介绍

你的问题是回滚段大小 不是数量 [/B]


8i 好像没有undo_rentention 吧?

使用道具 举报

回复
论坛徽章:
0
30#
 楼主| 发表于 2004-12-30 10:39 | 只看该作者

8i 里面没有undo_rentention

我和angelsliu的问题不一样。

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表