www.1q.co.kr(park1q.com)

ID :  Password : Auto  

   ȸ¿ø:0¸í / ¼Õ´Ô:0¸í
 

 

Technote

ÀÚ·á ¹× °ü¸®ÆÁ

  • DBA Notes
  • Q & A

    ºÏ¸¶Å©
  • Asktom
       (Oracle ÀÇ ´ëÇ¥ Forum)
  • Technical Bulltin(KR)
       (±â¼úÁö¿ø°Ô½ÃÆÇ)
  • Dbazine

  •  

     


     ÃÖ±Ù(AWR º¸°üÁֱ⳻) º¯°æµÈ ÆĶó¹ÌÅÍ ÃßÃâ(10g ÀÌ»ó)
    park1q  2018-10-19 10:44:42, Á¶È¸ : 7,177, Ãßõ : 3819

    • ÃÖ±Ù º¯°æµÈ ÆĶó¹ÌÅÍ¿Í ±× º¯°æ Àü/ÈÄÀÇ °ªÀ» ÃßÃâÇÑ´Ù.

     
    select snap_id,
           to_char(end_interval_time,'yyyy/mm/dd hh24:mi:ss') end_interval_time ,
           parameter_name,
           bef_value,
           value cur_value,
           isdefault,
           ismodified
      from (select p.snap_id,
                   s.end_interval_time,
                   p.parameter_name,
                   lag(p.value,1) over(partition by p.instance_number , p.parameter_name order by p.snap_id ) bef_value,
                   p.value,
                   p.isdefault,
                   p.ismodified,
                   min(p.snap_id) over() min_snap_id
              from dba_hist_parameter p,
                   (select dbid,
                           instance_number,
                           max(a.end_interval_time) end_interval_time,
                           max(snap_id) last_snap_id
                      from dba_hist_snapshot a
                     where dbid = (select dbid from v$database)
                       and instance_number = (select instance_number from v$instance)
                     group by dbid, instance_number, trunc(end_interval_time)) s
             where p.dbid = s.dbid
               and p.instance_number = s.instance_number
               and p.snap_id = s.last_snap_id
           )
     where snap_id != min_snap_id
       and (value != bef_value or (bef_value is null and value is not null))
    • °á°ú

       SNAP_ID END_INTERVAL_TIME        PARAMETER_NAME           BEF_VALUE   CUR_VALUE   ISDEFAULT ISMODIFI
    ---------- ------------------------ ------------------------ ----------- ----------- --------- --------
           335 10/09/06 15:00:26.390    fixed_date                           NONE        TRUE      MODIFIED
           360 10/09/09 09:11:32.390    _optim_peek_user_binds               FALSE       TRUE      MODIFIED


      ÃßõÇϱâ ÇÁ¸°Æ®   ¸ñ·Ïº¸±â

    Copyright 1999-2024 Zeroboard

     

     
     
    [Today:7 / Total:171781]    Design by p@rk1q