Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: auto-tuning in Oracle 10g
Ina Schmitz wrote:
> Hi NG,
>
> as I read in the documentation, Oracle is auto-tuning its initialization
> parameters. When and how often does this autotuning take place? Is there any
> possibility to ask a sql*plus query to find out when Oracle has done the
> auto-tuning for the last time?
>
> Thanks for ideas.
> Ina
col instart_fmt noprint;
col inst_name format a12 heading 'Instance';
col db_name format a12 heading 'DB Name';
col snap_id format 99999990 heading 'Snap Id';
col snapdat format a18 heading 'Snap Started' just c;
col lvl format 99 heading 'Snap|Level';
set heading on;
break on inst_name on db_name on host on instart_fmt skip 1;
ttitle off;
SELECT TO_CHAR(s.startup_time,' DD MON "at" HH24:MI:SS') INSTART_FMT,
di.instance_name INST_NAME, di.db_name DB_NAME, s.snap_id SNAP_ID,
TO_CHAR(s.end_interval_time,'DD MON YYYY HH24:MI') SNAPDAT,
s.snap_level lvl
FROM dba_hist_snapshot s, dba_hist_database_instance di
WHERE di.dbid = s.dbid
AND di.instance_number = s.instance_number
AND di.startup_time = s.startup_time
ORDER BY snap_id;
Will get you the history of snapsots.
To change the interval use
DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS. A demo of this
package is in Morgan's Library at www.psoug.org.
HTH
-- Daniel A. Morgan http://www.psoug.org damorgan_at_x.washington.edu (replace x with u to respond)Received on Wed Mar 01 2006 - 12:04:41 CST
![]() |
![]() |