0.Oracle 监视脚本(的83)++.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
0.Oracle监视脚本(的83)

Oracle OCM 课程实践 ;IOUG-A Master Class;Monitoring The dba_free_space poltergeist;set pages 100 col ts_name form a20 head Tablespace col pieces form 9990 head Pcs col ts_size form 999,990 head SizeMb col largestpc form 999,990 head LrgMB col totalfree form 999,990 head FreeMb col pct_free form 990 head %Free col whatsused form 999,990 head Used col pct_used form 990 head %Used col problem head Prob?? spool umcdbp1 . . . spool off;select q2.other_tname ts_name, pieces, ts_size ts_size, nvl(largest_chunk,0) largestpc, nvl(total_free,0) totalfree, nvl(round((total_free/ts_size)*100,2),0) pct_free, ts_size-total_free whatsused, nvl(100-round((total_free/ts_size)*100,2),100) pct_used, decode(nvl(100-round((total_free/ts_size)*100,0),100), 85,+,86,+,87,+,88,+,89,++,90,++,91,++, 92,++,93,++,94,+++,95,+++,96,+++,97,++++, 98,+++++,99,+++++,100,+++++,) problem from (select dfs.tablespace_name,count(*) pieces, round(max(dfs.bytes)/1024/1024,2) largest_chunk, round(sum(dfs.bytes)/1024/1024,2) total_free from dba_free_space dfs group by tablespace_name) q1, (select tablespace_name other_tname, round(sum(ddf2.bytes)/1024/1024,2) ts_size from dba_data_files ddf2 group by tablespace_name) q2 where q2.other_tname = q1.tablespace_name(+) order by nvl(100-round((total_free/ts_size)*100,0),100) desc;;Monitoring Unable to extend – available extents;Monitoring Unable to extend – within 5;COL trname for a30 select tsh.tablespace_name, ..||substr(tf.name,length(name)-23) trname, tf.bytes,tsh.bytes_free from v$tempfile tf, v$temp_space_header tsh where tf.file# = tsh.file_id; TS Name File BYTES BYTES_FREE LOC_TEMP ../od01/loc_temp01.dbf 2,098,200,576 1,887,436,800 LOC_TEMP ../od02/loc_temp02.dbf 2,098,200,576 1,258,291,200 LOC_TEMP ../od04/loc_temp03.dbf 2,098,200,576 1,887,4

您可能关注的文档

文档评论(0)

ayangjiayu3 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档