DBA_AUTOTASK_JOB_HISTORY

11gR2
select * from
DBA_AUTOTASK_JOB_HISTORY
where client_name='sql tuning advisor'
and JOB_STATUS='SUCCEEDED';
sql tuning advisor
MONDAY_WINDOW
29-APR-13 10.00.00.696815 PM +00:00 +000000000 03:59:59.411638
ORA$AT_SQ_SQL_SW_6407      *>>> JOB_NAME*   
SUCCEEDED
29-APR-13 10.00.03.573767 PM GMT+000 01:00:13       Can anyone help to the details of "ORA$AT_SQ_SQL_SW_6407 ".
The query the job tuned. I tried the docs and were not able.
Thanks in advance.

Can anyone help to the details of "ORA$AT_SQ_SQL_SW_6407 ".What details you want to know? By default there are three maintenance window are configured for 3 type of jobs i.e. stats, space and tuning advisor :
1.auto optimizer stats collection
2.auto space advisor
3.sql tuning advisor
In your query you have said "where client_name='sql tuning advisor' " it means, you got the name of sql tuning advisor job and its all details like when it started and when it completed, because in DBA_AUTOTASK_JOB_HISTORY displays the history of automated maintenance task job runs. Jobs are added to this view after they finish executing.
If you are asking how and why oracle assigned the job name as ORA$AT_SQ_SQL_SW_6407; so please read below link :
Each job is assigned a job name that is generated at runtime. All automated maintenance task job names begin with ORA$AT. For example, the job for the Automatic Segment Advisor might be called ORA$AT_SA_SPC_SY_26. When an automated maintenance task job finishes, it is deleted from the Oracle Scheduler job system. However, the job can still be found in the Scheduler job history.http://docs.oracle.com/cd/B28359_01/server.111/b28310/tasks002.htm
Regards
Girish Sharma

Similar Messages

  • Optimizer Statitics Gathering Task is not updating stale statistics

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production PL/SQL Release 11.2.0.2.0 - Production
    ******************** List stale statistics for Schema IGR using dbms_stats.gather_database_stats **************************
    DECLARE
    ObjList dbms_stats.ObjectTab;
    BEGIN
    dbms_stats.gather_database_stats(objlist=>ObjList, options=>'LIST STALE');
    FOR i in ObjList.FIRST..ObjList.LAST
    LOOP
    IF ObjList(i).ownname = 'IGR' THEN
    dbms_output.put_line(ObjList(i).ownname || '.' || ObjList(i).ObjName || ' ' || ObjList(i).ObjType || ' ' || ObjList(i).partname);
    END IF;
    END LOOP;
    END;
    IGR.USER_INFO TABLE 189 < --------------------- 189 Tables with stale statistics
    PL/SQL procedure successfully completed.
    **************************** Check date IGR Table(s) last analyzed ***********************************************
    SELECT MAX(last_analyzed) last_analyzed
    FROM dba_tables
    WHERE owner = 'IGR'
    LAST_ANALYZED
    14-DEC-11
    *************************** Check status of Task 'auto optimizer stats collection' **********************************
    SELECT client_name, job_name, job_status, job_start_time
    FROM dba_autotask_job_history
    WHERE client_name = 'auto optimizer stats collection'
    ORDER BY job_start_time
    CLIENT_NAME JOB_NAME JOB_STATUS JOB_START_TIME
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11952 SUCCEEDED 12-FEB-12 10.07.23.059313 AM EUROPE/LONDON
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11955 SUCCEEDED 12-FEB-12 02.07.33.879238 PM EUROPE/LONDON
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11958 SUCCEEDED 12-FEB-12 06.07.43.783262 PM EUROPE/LONDON
    auto optimizer stats collection ORA$AT_OS_OPT_SY_11961 SUCCEEDED 12-FEB-12 10.07.54.206488 PM EUROPE/LONDON
    Any suggestions welcome
    Thanks
    Steve

    Thank you for the feedback.
    I have manually updated the statistics on a single Table successfully and the Table has been removed from the list of stale statistics. So this is further evidence the daily Task "Optimizer Statistics Gathering Task" is failing to update stale statistics.
    Any further comment or suggestion welcome
    Thanks
    Steve
    SQL> SELECT owner, table_name, last_analyzed, num_rows
    FROM dba_tables
    WHERE owner = 'IGR' AND table_name = 'SYSAUDIT';
    OWNER TABLE_NAME LAST_ANAL NUM_ROWS
    IGR SYSAUDIT 14-DEC-11 59036
    1 begin
    2 dbms_stats.gather_table_stats(
    3 ownname=> 'IGR',
    4 tabname=> 'SYSAUDIT',
    5 estimate_percent=> 100,
    6 cascade=> DBMS_STATS.AUTO_CASCADE,
    7 degree=> null,
    8 no_invalidate=> DBMS_STATS.AUTO_INVALIDATE,
    9 granularity=> 'AUTO',
    10 method_opt=> 'FOR ALL COLUMNS SIZE AUTO');
    11* end;
    PL/SQL procedure successfully completed.
    SQL> /
    OWNER TABLE_NAME LAST_ANAL NUM_ROWS
    IGR SYSAUDIT 13-FEB-12 104970

  • 11g auto-task issue

    when I checked the "dba_autotask_job_history" , I detect there are different from "job_start_time" and "window_start_time" for the client auto-task, the detail as below.
    what cause the different form "job_start_time" and "window_start_time", and that's why?
    thanks!
    job_start_time: 2012-05-16 06:06:53     
    window_start_time: 2012-05-16 02:00:00     
    client_name: auto optimizer stats collection     
    job_name: ORA$AT_OS_OPT_SY_531     
    job_satus: SUCCEEDED     
    window_name: EVERY_NIGHT     
    window_duration: +000000000 07:41:12.160939     
    job_duration: +000 00:00:00

    easonmy wrote:
    when I checked the "dba_autotask_job_history" , I detect there are different from "job_start_time" and "window_start_time" for the client auto-task, the detail as below.
    what cause the different form "job_start_time" and "window_start_time", and that's why?
    thanks!
    job_start_time: 2012-05-16 06:06:53     
    window_start_time: 2012-05-16 02:00:00     
    client_name: auto optimizer stats collection     
    job_name: ORA$AT_OS_OPT_SY_531     
    job_satus: SUCCEEDED     
    window_name: EVERY_NIGHT     
    window_duration: +000000000 07:41:12.160939     
    job_duration: +000 00:00:00when all else fails, Read The Fine Manual
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_3087.htm#REFRN23379

  • DBA_AUTOTASK_TASK is empty

    I'm trying to check out the new automatic tasks in 11gR2 and I'm having a little trouble getting them to run. I check dba_autotask_client and I see that all three default tasks are there and enabled:
    SQL> SELECT client_name,status,consumer_group FROM dba_autotask_client;
    CLIENT_NAME STATUS CONSUMER_GROUP
    auto optimizer stats coll ENABLED ORA$AUTOTASK_STATS_GROUP
    ection
    auto space advisor ENABLED ORA$AUTOTASK_SPACE_GROUP
    sql tuning advisor ENABLED ORA$AUTOTASK_SQL_GROUP
    But when I check dba_autotask_task there are no rows returned:
    SQL> select client_name,status from DBA_AUTOTASK_TASK;
    no rows selected
    Same when I check dba_autotask_job_history:
    SQL> select * from DBA_AUTOTASK_JOB_HISTORY;
    no rows selected
    But when I check the maintenance windows they are enabled:
    select * from DBA_AUTOTASK_WINDOW_HISTORY;
    WINDOW_NAME WINDOW_START_TIME WINDOW_END_TIME
    SATURDAY_WINDOW 27-AUG-11 06.00.00.329614 28-AUG-11 02.00.00.003701
    AM +00:00 AM +00:00
    SUNDAY_WINDOW 28-AUG-11 06.00.00.243683 29-AUG-11 02.00.00.017650
    AM +00:00 AM +00:00
    MONDAY_WINDOW 29-AUG-11 10.00.00.090754 30-AUG-11 03.42.02.261462
    PM +00:00 PM +00:00
    MONDAY_WINDOW 01-AUG-11 10.00.00.153345 02-AUG-11 02.00.00.014974
    Any idea how to get them to run?

    All the queries you post run on my system.
    There's an Oracle note on this that might help :
    11g: Scheduler Maintenance Tasks or Autotasks [ID 756734.1]
    Best Regards
    mseberg
    All these queries work on all of my Oracle 11 systems.
    Sorry I cannot help.
    mseberg
    Edited by: mseberg on Aug 30, 2011 3:10 PM
    SELECT
    CLIENT_NAME, JOB_STATUS, JOB_START_TIME, JOB_DURATION
    FROM
    DBA_AUTOTASK_JOB_HISTORY
    WHERE
    CLIENT_NAME = 'auto optimizer stats collection';
    SELECT
    client_name, job_status, job_start_time, job_duration
    FROM
    dba_autotask_job_history
    WHERE
    client_name like '%stats%'
    ORDER BY
    job_start_time;
    SQL> select client_name,status from DBA_AUTOTASK_TASK;
    CLIENT_NAME                                                      STATUS
    sql tuning advisor                                               ENABLED
    auto optimizer stats collection                                  ENABLED
    auto space advisor                                               ENABLEDhttp://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1133388300346992024
    begin
    DBMS_AUTO_TASK_ADMIN.DISABLE;
    end;
    /

  • ORA-27492: unable to run job scheduler unavailable

    Hello Fellow Oracle users, this is the first post in this forum but I need some help with my Oracle Scheduler.
    This morning when I came into office, I realize from the Oracle Enterprise Manager (11g) that all of my scheduled jobs did not run at all. So I tried to do a manual run by choosing the job and clicking "Run Now".
    This error was shown (job not real name)
    java.sql.SQLException: ORA-27492: unable to run job "SCHEMA.DATA1": scheduler unavailable Check the log/trace file for more Details+
    I have no idea where to look up the log/trace file , so I could not find any reasons why this happen.
    https://forums.oracle.com/forums/thread.jspa?threadID=646581
    I've looked up this thread and tried the suggestions posted there and I believe it ain't the problem with queue process nor job process limits.
    I've tried select * from dba_scheduler_global_attribute where attribute_name='SCHEDULER_DISABLED' and I don't get any row selected.
    I hope I'm clear enough on the issue I'm facing, hope I'll get some answers to fixing this. Thank you very much.
    Regards,
    Matthew

    Hi,
    I am not an expert on this, i am learning.
    Check you history:
    select client_name,window_name,to_char(job_start_time,'yy-mon-dd hh24:mi:ss') job_start_time,job_status
    from DBA_AUTOTASK_JOB_HISTORY;Are you in windows? In you server services check make sure OracleJobSchedulerXXX is running.
    Also you can check the logs with:
    http://docs.oracle.com/cd/E11882_01/server.112/e25494/scheduse008.htm#CHDGIDFD
    I hope this help.
    Best,

  • Maintenance task question

    Hi All,
    I found this article: http://www.gokhanatil.com/2010/02/automated-maintenance-tasks-in-oracle-11g.html
    My server has all enable but i am not getting anything when i query the dba_autotask_task like:
    select task_name, status
    from dba_autotask_taskThis mean all tasks are not running, correct?
    how can I enable?
    Thanks

    Nothing is running when i query the job hsitory.
    select client_name,window_name,to_char(job_start_time,'yy-mon-dd hh24:mi:ss') job_start_time,job_status
    from DBA_AUTOTASK_JOB_HISTORY;
    SELECT client_name, window_name, jobs_created, jobs_started, jobs_completed
    FROM dba_autotask_client_history
    WHERE client_name like '%stats%';Am I querying the wrong place?
    Best,

  • Automated jobs in 11r2

    Hi,
    We using oracle 11r2 on aix.
    How to find default automated jobs(like stats gathering etc) in oracle and its' timing.
    Thanks.

    A good starting point would be to query dba_autotask_job_history.
    John Watson
    Oracle Certified Master DBA
    http://skillbuilders.com

  • DBA_HIST_UNDOSTAT IS EMPTY

    I have a issue with a view DBA_HIST_UNDOSTAT when i try to do a query the view is empty.

    All the queries you post run on my system.
    There's an Oracle note on this that might help :
    11g: Scheduler Maintenance Tasks or Autotasks [ID 756734.1]
    Best Regards
    mseberg
    All these queries work on all of my Oracle 11 systems.
    Sorry I cannot help.
    mseberg
    Edited by: mseberg on Aug 30, 2011 3:10 PM
    SELECT
    CLIENT_NAME, JOB_STATUS, JOB_START_TIME, JOB_DURATION
    FROM
    DBA_AUTOTASK_JOB_HISTORY
    WHERE
    CLIENT_NAME = 'auto optimizer stats collection';
    SELECT
    client_name, job_status, job_start_time, job_duration
    FROM
    dba_autotask_job_history
    WHERE
    client_name like '%stats%'
    ORDER BY
    job_start_time;
    SQL> select client_name,status from DBA_AUTOTASK_TASK;
    CLIENT_NAME                                                      STATUS
    sql tuning advisor                                               ENABLED
    auto optimizer stats collection                                  ENABLED
    auto space advisor                                               ENABLEDhttp://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1133388300346992024
    begin
    DBMS_AUTO_TASK_ADMIN.DISABLE;
    end;
    /

Maybe you are looking for

  • Calling Java Stored Procedure failed SQLXML

    I tried to upload a simple class to Oracle in which I want to use java.sql.SQLXML class using: loadjava -u user/passwd@host:1521:xyz -v -resolve C:\develop\workspaces\Test\src\lbb\apc\test\JavaStoredProcedureTest.java loadjava answers with: creating

  • Problems when deploying EJB

    Hi, I try to deploy an ejb in oracle 8.1.7. All the steps of the deployment work fine until the step : "Generating EJBHome and EJBObject on the server..." At this step, it returns the following error messages : Compilation errors in oracle/aurora/ejb

  • Upgrading from 10.1.5 to Os 10.4.3 Combined

    I have a rather outdated version of OSX as you can see from my topic. I downloaded the 10.4.3 combined update but cannot get it to install. I know how to play video games on PC and write and print papers from apple works. I can cruise the internet to

  • Html in flash

    how do you put html in flash? like...I have a code that uses html (javascript) and I want to put it in there. its a voting poll...ether way how do I do that? thanks

  • Jsp shopping cart

    i am new to jsp and am trying to create a shopping cart i have found some code but as it is older code i cant get it to work on the latest version, The following wont compile and i get these errors C:\Inetpub\wwwroot\jsp\ShoppingServlet.java:3: packa