查看当前redo logfile文件使用率
2013-04-14 22:01
155 查看
set linesize 200 pagesize 1400;
select le.leseq "Current log sequence No",
100 * cp.cpodr_bno / le.lesiz "Percent Full",
(cpodr_bno - 1) * 512 "bytes used exclude header",
le.lesiz * 512 - cpodr_bno * 512 "Left space",
le.lesiz *512 "logfile size"
from x$kcccp cp, x$kccle le
where LE.leseq = CP.cpodr_seq
and bitand(le.leflg, 24) = 8;
Current log sequence No Percent Full bytes used exclude header Left space logfile size
----------------------- ------------ ------------------------- ---------- ------------
539 81.5224609 42740736 9687552 52428800
如上结果显示当前重做日志号为539,使用量百分比是90.7%
当前日志被使用到了 42740736+512 bytes(重做日志文件头)的位置,
还剩余 9687552bytes的空间,该重做日志的总大小为52428800;
select le.leseq "Current log sequence No",
100 * cp.cpodr_bno / le.lesiz "Percent Full",
(cpodr_bno - 1) * 512 "bytes used exclude header",
le.lesiz * 512 - cpodr_bno * 512 "Left space",
le.lesiz *512 "logfile size"
from x$kcccp cp, x$kccle le
where LE.leseq = CP.cpodr_seq
and bitand(le.leflg, 24) = 8;
Current log sequence No Percent Full bytes used exclude header Left space logfile size
----------------------- ------------ ------------------------- ---------- ------------
539 81.5224609 42740736 9687552 52428800
如上结果显示当前重做日志号为539,使用量百分比是90.7%
当前日志被使用到了 42740736+512 bytes(重做日志文件头)的位置,
还剩余 9687552bytes的空间,该重做日志的总大小为52428800;
相关文章推荐
- 查看current redo logfile使用率
- 获取手机屏幕像素及密度--查看当前调用的布局文件
- 查看当前文件夹下含有wyy字串的文件及详细信息
- linux 查看文件夹下的文件个数(当前目录的文件数)
- redofile日志文件使用率
- Oracle 联机重做日志文件OnlineRedoLogFile
- 查看Oracle数据库中每个数据文件使用率
- mysql 查看当前使用的配置文件my.cnf
- linux查看当前文件和文件夹大小
- git status 查看当前修改文件
- linux 下查看有当前文件夹有多少个文件
- source insight 怎么查看当前文件所在路径
- 查看数据文件的空间使用率
- linux 查看文件夹下的文件个数(当前目录的文件数)//包含子目录
- 创建视图查看当前session产生的redo
- 添加右键操作:当前路径打开cmd, 添加用Notepad++打开文件, 删除.svn文件夹, 修改IE查看源文件编辑器
- vs2008中在解决方案资源管理器查看当前打开文件
- 查看当前目录下有多少文件
- 根据pid查看可执行文件路径和当前工作路径
- Linux下查看磁盘使用率及文件和文件夹大小