ITPub博客

首页 > 数据库 > Oracle > v$datafile各属性解释

v$datafile各属性解释

原创 Oracle 作者:yaoronghui2005 时间:2009-09-17 10:38:53 0 删除 编辑

http://youngcow.net/doc/oracle10g/server.102/b14237/dynviews_1076.htm

[@more@]

1、created_change# --scn_to_timestamp 转换成建立时间;2、status:system,online,offline;3enabled :read only ,read write,disable;

4、checkpoint_change#,checkpoint_time--当alter database datafile ' resize 5m的时候触发改变;...

执行alter system switch logfile或者alter system flush buffer_cache或者alter system archive log current以后各个数据文件记录的检查点统一和日志文件对齐

525357 2009-9-17 11:07:18
525357 2009-9-17 11:07:18
525357 2009-9-17 11:07:18
525357 2009-9-17 11:07:18
525357 2009-9-17 11:07:18

5、offline_change#:最近一次的alter datafile ... offline;

6、online_change#,online_time最近一次的alter datafile ... online;

7、bytes,blocks,create_bytes : 当前大小,当前块数,初始建立的大小;name:文件路径和名称;

8、UNRECOVERABLE_CHANGE#,last_change#:alter system switch logfilearchive log currentflush buffer_cache都不能影响这些属性

n、其他属性就不知道了...

ColumnDatatypeDescription
FILE#NUMBERFile identification number
CREATION_CHANGE#NUMBERChange number at which the datafile was created
CREATION_TIMEDATETimestamp of the datafile creation
TS#NUMBERTablespace number
RFILE#NUMBERTablespace relative datafile number
STATUSVARCHAR2(7)Type of file (system or user) and its status. Values: OFFLINE, ONLINE, SYSTEM, RECOVER, SYSOFF (an offline file from the SYSTEM tablespace)
ENABLEDVARCHAR2(10)Describes how accessible the file is from SQL:
  • DISABLED - No SQL access allowed

  • READ ONLY - No SQL updates allowed

  • READ WRITE - Full access allowed

  • UNKNOWN - should not occur unless the control file is corrupted

CHECKPOINT_CHANGE#NUMBERSCN at last checkpoint
CHECKPOINT_TIMEDATETimestamp of the checkpoint#
UNRECOVERABLE_CHANGE#NUMBERLast unrecoverable change number made to this datafile. If the database is in ARCHIVELOG mode, then this column is updated when an unrecoverable operation completes. If the database is not in ARCHIVELOG mode, this column does not get updated.
UNRECOVERABLE_TIMEDATETimestamp of the last unrecoverable change. This column is updated only if the database is in ARCHIVELOG mode.
LAST_CHANGE#NUMBERLast change number made to this datafile (null if the datafile is being changed)
LAST_TIMEDATETimestamp of the last change
OFFLINE_CHANGE#NUMBEROffline change number of the last offline range. This column is updated only when the datafile is brought online.
ONLINE_CHANGE#NUMBEROnline change number of the last offline range
ONLINE_TIMEDATEOnline timestamp of the last offline range
BYTESNUMBERCurrent datafile size (in bytes); 0 if inaccessible
BLOCKSNUMBERCurrent datafile size (in blocks); 0 if inaccessible
CREATE_BYTESNUMBERSize when created (in bytes)
BLOCK_SIZENUMBERBlock size of the datafile
NAMEVARCHAR2(513)Name of the datafile
PLUGGED_INNUMBERDescribes whether the tablespace is plugged in. The value is 1 if the tablespace is plugged in and has not been made read/write, 0 if not.
BLOCK1_OFFSETNUMBEROffset from the beginning of the file to where the Oracle generic information begins. The exact length of the file can be computed as follows: BYTES + BLOCK1_OFFSET.
AUX_NAMEVARCHAR2(513)Auxiliary name that has been set for this file via CONFIGURE AUXNAME
FIRST_NONLOGGED_SCNNUMBERFirst nonlogged SCN
FIRST_NONLOGGED_TIMEDATEFirst nonlogged time

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/450962/viewspace-1027052/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle问题
请登录后发表评论 登录
全部评论
  • 博文量
    153
  • 访问量
    176623