您的位置:首页 > 数据库

在sqlplus中看redo log大小,和文…

2017-05-02 10:47 232 查看
 

From ITpub

http://www.itpub.net/thread-1360842-1-1.html

在sqlplus中看redo log大小,和文件系统中看不一样!

在sqlplus中看redo
log大小,和文件系统中看不一样!

莫非Oracle只用那么多,但是文件系统上却要占用更多一点?莫非是整个扇区没有用完?

算了一下:

sqlplus中的size和文件系统中的size都是整数个扇区,但os上的多了一个扇区,多的这个扇区是干什么的呢?

52428800/512=102400

52429312/512=102401

SQL> select*from v$log;

    GROUP# 
 
THREAD#  SEQUENCE# 
  
 BYTES   
MEMBERS ARC STATUS

---------- ---------- ---------- ---------- ---------- ---
----------------

FIRST_CHANGE# FIRST_TIM

------------- ---------

    
  
 1 
  
    
1    
  
 23 
 52428800 
  
     1 YES
INACTIVE

    
  600163 24-OCT-10

    
  
 2 
  
    
1    
  
 24 
 52428800 
  
     1
NO  CURRENT

    
  601691 24-OCT-10

    
  
 3 
  
    
1    
  
 22 
 52428800 
  
     1 YES
INACTIVE

    
  599830 21-SEP-10

[oracle@dg1 dg1]$ ll

total 1090060

-rw-r-----  1 oracle
oinstall   7094272 Oct 24 03:24
control01.ctl

-rw-r-----  1 oracle
oinstall   7094272 Oct 24 03:24
control02.ctl

-rw-r-----  1 oracle
oinstall   7094272 Oct 24 03:24
control03.ctl

-rw-r-----  1 oracle oinstall
104865792 Oct 24 03:22 example01.dbf

-rw-r-----  1 oracle
oinstall  52429312 Oct 24 03:17
redo01.log

-rw-r-----  1 oracle
oinstall  52429312 Oct 24 03:24
redo02.log

-rw-r-----  1 oracle
oinstall  52429312 Oct 24 02:58
redo03.log

-rw-r-----  1 oracle oinstall
262152192 Oct 24 03:23 sysaux01.dbf

-rw-r-----  1 oracle oinstall
503324672 Oct 24 03:23 system01.dbf

-rw-r-----  1 oracle
oinstall  20979712 Aug 17 14:10
temp01.dbf

-rw-r-----  1 oracle
oinstall  41951232 Oct 24 03:24
undotbs01.dbf

-rw-r-----  1 oracle
oinstall   5251072 Oct 24 03:22
users01.dbf
 
 
是 Redo log file header?? The first
block?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: