Oracle数据库中,Undo主要有三大作用:
1、Read Consistent ,一致性读是相对于(Dirty Read)而言的
2、Transaction Rollback
3、Transaction Recovery
select* from dba_data_files
select* from v$rollstat
select* from dba_rollback_segs
select* from v$transaction 可以查询到当前事务使用的undo段
create undo tablespace undotbs02 datafile '/oracle/app/oradata/test/undotbs02.dbf' size 20m ; 增加undo表空间
SQL> show parameter undo_tablespace
NAME TYPE VALUE
------------------------------------ ----------- -----------
undo_tablespace string UNDOTBS1
SQL> alter system set undo_tablespace='UNDOTBS02' scope=both;修改undo值,一个实例只能用一个undo表空间
undo是oracle的精华
3、Transaction Recovery
select* from dba_data_files
select* from v$rollstat
select* from dba_rollback_segs
select* from v$transaction 可以查询到当前事务使用的undo段
create undo tablespace undotbs02 datafile '/oracle/app/oradata/test/undotbs02.dbf' size 20m ; 增加undo表空间
SQL> show parameter undo_tablespace
NAME TYPE VALUE
------------------------------------ ----------- -----------
undo_tablespace string UNDOTBS1
SQL> alter system set undo_tablespace='UNDOTBS02' scope=both;修改undo值,一个实例只能用一个undo表空间
undo是oracle的精华
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29362142/viewspace-2135928/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29362142/viewspace-2135928/