Oracle 9i statspack not scheduling (merged 3) [message #387317] |
Wed, 18 February 2009 17:39 |
jrmtl
Messages: 27 Registered: February 2006
|
Junior Member |
|
|
Hi all,
I have an oracle 9.2.0.8 db where statspack is installed and had the spauto.sql script schedule to run every hour.
I removed the schedule with dbms_job.remove and recreated for every 30 min,
now i see that the job does not run anymore and even when I put back the original hourly job ?
I do see the job through dba_jobs
any ideas?
Thx
|
|
|
|
|
|
|
|
Re: Oracle 9i statspack not scheduling [message #387331 is a reply to message #387317] |
Wed, 18 February 2009 19:39 |
jrmtl
Messages: 27 Registered: February 2006
|
Junior Member |
|
|
This is what i did and it worked.
SQL> @spauto.sql;
PL/SQL procedure successfully completed.
Job number for automated statistics collection for this instance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note that this job number is needed when modifying or removing
the job:
JOBNO
----------
338
Job queue process
~~~~~~~~~~~~~~~~~
Below is the current setting of the job_queue_processes init.ora
parameter - the value for this parameter must be greater
than 0 to use automatic statistics gathering:
NAME TYPE VALUE
------------------------------------ ----------- ---------------------------
job_queue_processes integer 3
Next scheduled run
~~~~~~~~~~~~~~~~~~
The next scheduled run for this job is:
JOB NEXT_DATE NEXT_SEC
---------- --------- --------
338 18-FEB-09 21:04:00
SQL>
==============
But come run time the job doesn't execute ?
|
|
|
|
|
Re: Oracle 9i statspack not scheduling [message #387336 is a reply to message #387317] |
Wed, 18 February 2009 20:25 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
>I am looking at it from two diffrent sessions.
Please explain how this is true when you do NOT show COMMIT in previously posted session.
from sqlplus post results in a whole new session::
set term on echo on time on
column next format a20
column interval format a24
column what format a32
select to_char(next_date,'YYYY-MM-DD:HH24:MI') next, interval, what, broken
from dba_jobs
/
[Updated on: Wed, 18 February 2009 20:47] Report message to a moderator
|
|
|
|