您的位置:首页 > 其它

undo表空间管理

2010-08-12 17:50 239 查看
1.查看undo表空间

SQL> show parameter undo

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
SQL>

2.创建undo表空间

SQL> create undo tablespace myundotbs
2 datafile 'F:/oracle/product/10.1.0/oradata/orcl/myundotbs01.dbf' size 10M;

表空间已创建。

3.切换undo表空间

alter system set undo_tablespace = undo表空间名

4.undo_retention integer 900

undo_retention数据在undo表空间中保存的时间

5. v$transaction,v$undostat

6.决定undo表空间大小的三个因素

1.undo_retention 数据保存的时间

2.每秒最大产生的block数

3.db_block_size

7.相关视图

1.DBA_ROLLBACK_SEGS

2.V$rollstat 查在线

3.V$rollname

4.v$undostat

5.v$session

6.v$transaction
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: