码迷,mamicode.com
首页 > 其他好文 > 详细

控制文件

时间:2016-06-22 15:19:37      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:

查看控制文件控制信息

SQL> select * from v$controlfile_record_section;
TYPE RECORD_SIZE RECORDS_TOTAL RECORDS_USED FIRST_INDEX LAST_INDEX LAST_RECID
---------------------------- ----------- ------------- ------------ ----------- ---------- ----------
DATABASE 316 1 1 0 0 0
CKPT PROGRESS 8180 11 0 0 0 0
REDO THREAD 256 8 1 0 0 0
REDO LOG 72 16 3 0 0 3
DATAFILE 520 100 9 0 0 120
FILENAME 524 2298 14 0 0 0
TABLESPACE 68 100 7 0 0 3
TEMPORARY FILENAME 56 100 1 0 0 10
RMAN CONFIGURATION 1108 50 1 0 0 7
LOG HISTORY 56 292 181 1 181 181
OFFLINE RANGE 200 163 0 0 0 0
ARCHIVED LOG 584 280 35 1 35 35
BACKUP SET 40 409 15 1 15 15
BACKUP PIECE 736 200 15 1 15 15
BACKUP DATAFILE 200 245 23 1 23 23
BACKUP REDOLOG 76 215 35 1 35 35
DATAFILE COPY 736 200 1 1 1 1
BACKUP CORRUPTION 44 371 0 0 0 0
COPY CORRUPTION 40 409 0 0 0 0
DELETED OBJECT 20 818 46 1 46 46
PROXY COPY 928 246 0 0 0 0
BACKUP SPFILE 124 131 3 1 3 3
DATABASE INCARNATION 56 292 2 1 2 2
FLASHBACK LOG 84 2048 0 0 0 0
RECOVERY DESTINATION 180 1 1 0 0 0
INSTANCE SPACE RESERVATION 28 1055 1 0 0 0
REMOVABLE RECOVERY FILES 32 1000 0 0 0 0
RMAN STATUS 116 141 33 1 33 33
THREAD INSTANCE NAME MAPPING 80 8 8 0 0 0
MTTR 100 8 1 0 0 0
DATAFILE HISTORY 568 57 0 0 0 0
STANDBY DATABASE MATRIX 400 31 31 0 0 0
GUARANTEED RESTORE POINT 212 2048 0 0 0 0
RESTORE POINT 212 2083 0 0 0 0
DATABASE BLOCK CORRUPTION 80 8384 0 0 0 0
ACM OPERATION 104 64 6 0 0 0
FOREIGN ARCHIVED LOG 604 1002 0 0 0 0
 
37 rows selected.
 
RECORD_SIZE RECORDS_TOTAL RECORDS_USED
RECORD_SIZE记录的大小
RECORDS_TOTAL可记录数的总量
RECORDS_USED已经使用的数量
下面使用如下记录来说明
TYPE RECORD_SIZE RECORDS_TOTAL RECORDS_USED FIRST_INDEX LAST_INDEX LAST_RECID
REDO LOG 72 16 3 0 0 3
redo 最多可创建16个日志组,已经创建了3个,如果要创建16个以上就需要重建控制文件,修改参数
SQL> alter database backup controlfile to trace as ‘/home/oracle/crontol_trace.trc‘;
 
CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
MAXLOGFILES 16 --将这个值改大
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 ‘/u01/app/oracle/oradata/prod/redo01.log‘ SIZE 50M BLOCKSIZE 512,
GROUP 2 ‘/u01/app/oracle/oradata/prod/redo02.log‘ SIZE 50M BLOCKSIZE 512,
GROUP 3 ‘/u01/app/oracle/oradata/prod/redo03.log‘ SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
‘/u01/app/oracle/oradata/prod/system01.dbf‘,
‘/u01/app/oracle/oradata/prod/sysaux01.dbf‘,
‘/u01/app/oracle/oradata/prod/undotbs01.dbf‘,
‘/u01/app/oracle/oradata/prod/users01.dbf‘,
‘/u01/app/oracle/oradata/prod/example01.dbf‘,
‘/u01/app/oracle/oradata/prod/hzqtbs.dbf‘,
‘/u01/app/oracle/oradata/prod/hzqtbs02.dbf‘,
‘/u01/app/oracle/oradata/prod/hzqtbs01.dbf‘,
‘/u01/app/oracle/oradata/prod/hzqtbs03.dbf‘
CHARACTER SET AL32UTF8
;
 
 
 
 

控制文件

标签:

原文地址:http://www.cnblogs.com/houzhiqing/p/dedd7757165300bc930b8f3fdadc03cf.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!