|
本帖最后由 botang 于 2016-11-22 23:18 编辑
上完1Z0-052第9/10章(Oracle数据库的Undo和读一致性问题)
上完1Z0-052介绍课程最前面章节
(052共19章,053共21章,063多租户共9章,49-6)
查询undo表空间信息:
- select * from v$session where terminal='pts/3';
- select * from v$transaction ;
- select * from dba_rollback_segs ;
- select * from dba_tablespaces ;
- select * from dba_data_files df where df.tablespace_name='UNDOTBS1';
- alter database datafile '+DATA/orcl/datafile/undotbs1.258.816169553'
- resize 200M;
- alter database datafile '+DATA/orcl/datafile/undotbs1.258.816169553'
- autoextend off;
-
- alter tablespace undotbs1 retention guarantee;
-
-
- select * from v$undostat;
-
-
- select * from dict where table_name like '%UNDO%' or table_name like '%ROLL%';
-
- select * from DBA_HIST_UNDOSTAT;
-
- select * from V$ROLLSTAT;
-
复制代码 做ora-01555实验:
- select * from dba_tablespaces;
- select * from dba_temp_files;
- alter tablespace temp add tempfile '/u01/app/oracle/temp02.dbf'
- size 10G autoextend on maxsize 20G;
-
- create undo tablespace undotbs2 datafile size 256K autoextend off;
-
- drop tablespace undotbs1;
-
- ---------------------
-
- select * from dba_rollback_segs;
-
- create undo tablespace undotbs1 ;
-
- select * from dba_data_files df
- where df.tablespace_name='UNDOTBS1';
-
- alter system set undo_tablespace=undotbs1;
-
- drop tablespace undotbs2;
复制代码 闪回做ora-01555实验:
DBA_HIST_UNDOSTAT相关:
日志缓冲区相关:
- [oracle@station90 admin]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 20 17:40:16 2016
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> show parameter log_buffer
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- log_buffer integer 7036928
- SQL> alter system set log_buffer=8M ;
- alter system set log_buffer=8M
- *
- ERROR at line 1:
- ORA-02095: specified initialization parameter cannot be modified
复制代码- select * from v$session
- where terminal='pts/3';
-
- select * from v$process
- where addr='00000001EC742EA0';
-
- select * from v$sga_dynamic_components;
复制代码
|
|