首页 > 编程知识 正文

oracle怎么设置主键,oracle设置密码永不过期

时间:2023-05-05 04:24:08 阅读:175382 作者:3698

我最近升级了两个数据库,从10.2.0.5到11.2.0。 我遇到了被捉弄的问题。 两个版本的undo_retention设置相同。 表空间大小大致相同,10.2.0.5可以闪回的时间超过一天,利用率很高。

但是,11.2.0.3的使用率很少,闪回的时间控制在约3小时。

SQL show parameter undo

NAME TYPE VALUE

请参见----------------------------------------- -

_in_memory_undo boolean FALSE

undo_management string AUTO

undo_retention integer 10800

undo_tablespace string UNDOTBS1

11.2.0.3还原使用情况:

运行时间

-----------------

25-Oct-2012 10:41

# # # # # # # inuseundodata # # # # # # # # inuseundodata

PCT_INUSE

------------

7.77824668

tablespace _ name extent _ manallocatiosegmenretention

请参见----------------------------------------- -

undotbs 1本地systemmanualnoguarantee

Sum of Free

----------------

19,211,091,968

总字节数

----------------

23、294、115、840

# # # # # # # undo segments # # # # # # # # # # #

状态总扩展

----------------

expired3,574

美国1590

ACTIVE 3

----------------

5,167

状态undo segments

请参见------------------------------------------------------- -

在线49

OFFLINE 736

----------------

sum 785

之后,发现原因如下。 只是,没想到会成为这样的原因:

在原来的10.2.0.5下,还原的数据文件都是自动扩展关闭的;

在新的11.2.0.3下,还原数据文件具有自动扩展。 之后,添加了自动扩展关闭的东西。

参考:

10 gnewfeatureonautomaticundoretention [ id 240746.1 ]

automatictuningofundoretentionin 10g。

=========================================================================================

upto9iwedon’thavethatmuchcontroloverora-01555 errors.but from 10 gonwardwehavethis

new feature,automatictuningofundo _ retention,whichhelpcontrolora-01555 situation better。

制造设置:

======================

undo _ management=auto/* defaultstomanualin 10g R2 * /

howitworks(steptotest ) :

=================================

if undo _ management=auto (nomatterthesettingforundo _ retention ) automatic undo tuning will be used。

monwillcalculatethemaxquerylenevery 30 sec interval.baseduponthemaxquerylen,MMON decides the

tuned _ undo retention.thatmeansthenewundoretentionwillbesettotuned _ undo retention。

note : forafixedsizeundotablespace,thedatabasecalculatesthemaximundoretentionperiodbased

ondatabasestatisticsandonthesizeoftheundotablespace.foroptimalundomanagement,rather than

tuningbasedon 100 % ofthetablespacesize,thedatabasetunestheundoretentionperiodbased

on 85% of the tablespace size。

通用计算

----------------

tuned _ undo retention=maxquerylen 300 sec。

If UNDO_RETENTION is set 0,thevaluespecifiedactsasaminimumsetting。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。