xyz's profile逍遥者寒号的小屋BlogLists Tools Help

Blog


    March, 2007

    Oracle优化监控

    数据缓冲区命中率:
    (通常>90%,否则请调整sga_target或db_cache_size)
    select 100 - ( pr - x) / (cg + dg - x)*100 "db_buffer hit radio(%)" from
    (select value pr from v$sysstat where name ='physical reads'),
    (select sum(value) x from v$sysstat where name ='physical reads direct' or name ='physical reads direct (lob)'),
    (select value cg from v$sysstat where name ='consistent gets'),
    (select value dg from v$sysstat where name = 'db block gets')
    /

    共享池的命中率:
    (通常>95%,甚至99%,否则请调整sga_target或share_pool_size)
    select sum(pinhits-reloads)/sum(pins)*100 "Share pool hit radio(%)" from v$librarycache
    /

    数据字典命中率:
    select (1 - (sum(getmisses) / sum(gets))) * 100 "Data Dictionary Hit Ratio(%)"
      from v$rowcache;
    /
    排序区:
    (disk与memory的比不能过高,否则调整sort_area_size
    select name,value from v$sysstat where name like '%sort%'
    /
    log_buffer:
    (通常redo entries/redo buffer allocation retries > 100否则调整log_buffer):
    select name,value from v$sysstat
     where name in('redo entries','redo buffer allocation retries')
    /

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://xyzhh.spaces.live.com/blog/cns!B4A8BE2681ED7440!167.trak
    Weblogs that reference this entry
    • None