易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle 10g undo表空间使用率居高不下bug

对于UNDO
表空间大小的定义需要考虑UNDO_RETNETION
参数、产生的UNDO BLOCKS/
秒、UNDO BLOCK
的大小。undo_retention
:对于UNDO
表空间的数据文件属性为autoextensible,
则undo_retenion
参数必须设置,UNDO
信息将至少保留至undo_retention
参数设定的值内,但UNDO
表空间将会自动扩展。对于固定UNDO
表空间,将会通过表空间的剩余空间来最大限度保留UNDO
信息。如果FIXED UNDO
表空间没有对保留时间作GUARANTEE
(alter tablespace xxx retention guarantee;
),则undo_retention
参数将不会起作用。(警告:如果设置UNDO
表空间为retention guarantee
,则未过期的数据不会被复写,如果表空间不够则会导致DML
操作失败或者transation
挂起)
   
Oracle
10g
有自动Automatic Undo Retention Tuning
这个特性。设置的undo_retention
参数只是一个指导值,
,Oracle
会自动调整Undo (
会跨过undo_retention
设定的时间)
来保证不会出现Ora-1555
错误.
。通过查询V$UNDOSTAT
(该视图记录4
天以内的UNDO
表空间使用情况,超过4
天可以查询DBA_HIST_UNDOSTAT
视图) 的tuned_undoretention
(该字段在10G
版本才有,9I
是没有的)字段可以得到Oracle
根据事务量(如果是文件不可扩展,则会考虑剩余空间)采样后的自动计算出最佳的retenton
时间.
。这样对于一个事务量分布不均匀的
数据库
来说,
,就会引发潜在的问题--
在批处理的时候可能Undo
会用光, 而且这个状态将一直持续, 不会释放。
如何取消
10g

auto UNDO Retention Tuning
,有如下三种方法:
 
from metalink 420525.1

Automatic Tuning of Undo_retention Causes Space Problems
1.)
Set the autoextend and maxsize attribute of each datafile in the undo
ts so it is autoextensible and its maxsize is equal to its current size
so the undo tablespace now has the autoextend attribute but does not
autoend:
SQL> alter database datafile '<datafile_flename>'
autoextend on maxsize <current_size>;
With
this setting, v$undostat.tuned_undoretention is not calculated based on
a percentage of the undo tablespace size, instead
v$undostat.tuned_undoretention is set to the maximum of (maxquerylen
secs + 300) undo_retention specified


相关文档:

oracle dblink 的应用

oracle dblink 的应用
url:http://blog.chinaunix.net/u/19820/showart_334013.html
1、用dblink链接oracle
(1)与平台无关的写法:
create public database
link cdt connect to apps
identified by apps using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.31.205.100)(PORT = 15 ......

Oracle 常用网址 积累中。。

官方文档:http://tahiti.oracle.com/
metalink:http://metalink.oracle.com
itpub:www.itpub.com
TOM:asktom.oracle.com
oracle forum:http://forums.oracle.com/forums/main.jspa?categoryID=84
OTN:http://www.oracle.com/technology/index.html
www.oracle.com.cn
www.eygle.com
 
Oracle ERP
www.erp10 ......

oracle 存储过程

create or replace procedure check_records (ikbid in number,ikch in varchar2 ,ixh in varchar2,ixnd in varchar2,ikkxq in varchar2,info out varchar2,msg out varchar2)
as
v1 number;
v2 number;
v3 number;
begin
 select XZRS into v2 from KCB_JW where KCH=ikch;
 select count(*) into v3 fro ......

Oracle中TO_DATE格式

TO_DATE格式(以时间:2007-11-02   13:45:25为例)
   
        Year:      
        yy two digits 两位年            &n ......

Oracle Undo的学习

Oracle Undo的学习
 回滚段

以说是用来保持数据变化前映象而提供一致读和保障事务完整性的一段磁盘存储区域。当一个事务开始的时候,会首先把变化前的数据和变化后的数据先写入日志缓
冲区,然后把变化前的数据写入回滚段,最后才在数据缓冲区中修改(日志缓冲区内容在满足一定的条件后可能被写入磁盘,但在事 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号