- 博客(1)
- 资源 (5)
- 收藏
- 关注
原创 序
*.数据库的分类 *.Oracle数据库 体系结构 *.Oracle数据库 软件安装和升级 *.SQL,PL/SQL *.Oracle数据库 对象及管理 *.Oracle数据库 数据导入导出 *.Oracle数据库 性能分析与优化 *
2015-06-30 15:41:50 268
oracle dba必备脚本
--监控索引是否使用
alter index &index_name monitoring usage;
alter index &index_name nomonitoring usage;
select * from v$object_usage where index_name = &index_name;
--求数据文件的I/O分布
select df.name,phyrds,phywrts,phyblkrd,phyblkwrt,singleblkrds,readtim,writetim
from v$filestat fs,v$dbfile df
where fs.file#=df.file# order by df.name;
--求某个隐藏参数的值
col ksppinm format a54
col ksppstvl format a54
select ksppinm, ksppstvl
from x$ksppi pi, x$ksppcv cv
where cv.indx=pi.indx and pi.ksppinm like '\_%' escape '\' and pi.ksppinm like '%meer%';
--求系统中较大的latch
select name,sum(gets),sum(misses),sum(sleeps),sum(wait_time)
2013-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人