Dbms_job not running
Hello,
My scheduled dbms_job is not running. They have been running in the past months but not a few days ago. The jobs would run when I bounce the database but would not run again as scheduled, next_date. Thank you.
As mentioned in the previous post, you check broken job status, fix it and rerun it.
You may refer Supplied packages documentation for DBMS_JOBS procedures.
Ashok
Similar Messages
-
Problems with DBMS_JOB - not running jobs
Hello,
for some reason our Database (after night restart - shutdown at 23:00, startup at 0:20) stopped to run jobs from DBMS_JOB. I've enabled them manually (DBMS_JOB.RUN(2334)) - but they still not run after reaching the NEXT_DATE,NEXT_SEC time.
I've noticed that:
select * from dba_scheduler_global_attribute where ATTRIBUTE_NAME='CURRENT_OPEN_WINDOW';
ATTRIBUTE_NAME VALUE
CURRENT_OPEN_WINDOW TUESDAY_WINDOW
Current day of week is wednesday not tuesday - and I think that is the reason.
I've tried this statement:
SQL> execute DBMS_SCHEDULER.CLOSE_WINDOW(WINDOW_NAME => 'TUESDAY_WINDOW');
BEGIN DBMS_SCHEDULER.CLOSE_WINDOW(WINDOW_NAME => 'TUESDAY_WINDOW'); END;
ERROR at line 1:
ORA-00449: background process '' unexpectedly terminated with error
ORA-06512: at "SYS.DBMS_ISCHED", line 347
ORA-06512: at "SYS.DBMS_SCHEDULER", line 968
ORA-06512: at line 1
Is there any other way to fix this problem without restart of database?
Thank you for any help
Best regardsManually execute the job and let it run itself beginning next Tuesday.
-
DBMS_JOB not running properly
DB Version:9i Rel 2
I have scheduled the execution of an Auditing Stored proc every 30 seconds. But this SP is not running.
Is there any other init.ora parameter i need to set to schedule a job to run for such a small frequency?
I have issued a COMMIT after the job creation. Is this necessary?
my code
variable myjob_no number;
begin
dbms_job.submit
(job => :myjob_no, --out parameter
what => 'BEGIN MY_STOREPROC; END;', --the auditing sp
next_date => sysdate, --start date, starting now
interval => 'sysdate+(30/86400)' -- run every 30 seconds
end;
commit;The COMMIT is definitely necessary.
However, as far as I remember, the parameter job_queue_interval was deprecated in 9i and set to 60 seconds internally.
An audit procedure NOT using Oracle's built-in auditing capabilities also looks like a bad idea.
Can you explain what you are trying to accomplish?
Sybrand Bakker
Senior Oracle DBA -
DBMS_JOB Not running for the scheduled time, but run with .run fucntion.
Hi all,
I am executing a job every 15 minutes which have to delete the rows created in every 30 minutes.
========================================
Jobs Submitted as -
begin
sys.dbms_job.isubmit(job => 202,what => 'del_test_info_p;',next_date =>sysdate,interval => 'sysdate + 15/1440');
commit;
end;
==================================
Procedure that is running in Job -
CREATE OR REPLACE procedure del_test_info_p is
cnt number;
begin
select count(*) into cnt from test where ((created_at+30/1440)<=systimestamp);
update jobcount set cnt=cnt+1 ;
delete from test where ((created_at+30/1440)<systimestamp);
update jobcount set cnt=cnt+1 ;
commit;
dbms_output.put_line (cnt ||' ROWS DELETED');
end del_test_info_p;
=====================================
PROBLEM - Job is running in every 15 minutes as per user_jobs but rows are not deleteing from the test table whose created time is more then 30 minutes from systimestamp. Even the views are not having logs of any job run.
Checked the queries and run the job Manually using dbms_job.run.. gives correct output and deletes the row.
Please suggest where is the problem and how I can correct it.
With Regards
Amit NanoteHI All,
I have found solution for this. Dont use Systimestamp in the DML's if using in a job (scheduled).
There is a statement in procedure del_test_info_p
delete from test where ((created_at+30/1440)<systimestamp);
Here usage of systimestamp restricting that procedure to execute.
Create procedure as -
CREATE OR REPLACE procedure del_test_info_p is
tstamp timestamp;
begin
select systimestamp into tstamp from dual;
delete from test where ((created_at+30/1440)<tstamp);
commit;
end del_test_info_p;
Thank You. -
DBMS_JOB not running every 30 minutes
Hi All
I am using DBMS job to schedule a job as I am still using version 9 oracle:
variable jobno number;
begin
dbms_job.submit(:jobno, statspack.snap(i_snap_level => 6, i_modify_parameter => 'true'), SYSDATE, 'sysdate + 30/1440', TRUE);
commit;
end;
However the job still runs hourly(default) even with the interval specified as 'sysdate + 30/1440'
Please advice
Thanks
ParvezJOB_QUEUE_INTERVAL is obsolete in 9i. You can set a hidden parameter of JOBQUEUE_INTERVAL but from what I can tell, the job queue cordinator wakes up every 5 seconds to run.
I use dbms_jobs in 9i and 10g without any problems. I actually have a scheduler that wake up every 60 seconds to run.
When running select * from dba_jobs, is your job broken? What is the NEXT_DATE value?
If everything looks ok, try removing the job and then inserting the job again. -
Job not running on expected time
Hi,
Please see the job details
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
*( job => X*
*,what => 'BEGIN INVS_RIM_DATA_LOAD(''01A'',''RIMADMIN'',TRUNC(SYSDATE)); END;'*
*,next_date => to_date('15/08/2011 23:09:00','dd/mm/yyyy hh24:mi:ss')*
*,interval => 'TRUNC(SYSDATE+1)+23.15/24'*
*,no_parse => TRUE*
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
END;
commit;
For taking the cold backup, db is shut down on every Friday 11:00PM and open by 02:30 PM Saturday. So job expected to run on Friday night will be running by Saturday 02:30AM. It is ok for us. But problem is job is not running on Saturday night.
When checked on Sunday morning the user_jobs shows details as
Last_date : 13-Aug-2011 02:30:14 AM
Next_Date : 14-Aug-2011 11:09:00 PM
Issue we are facing is job is not running on 13-Aug 11:09:00 PM
Please help me to fix this issue.Well, it runs on the expected time (for me). This is your interval: TRUNC(SYSDATE+1)+23.15/24
If the last job run at 13-Aug-2011 02:30:14 AM, then the next one should be:
= TRUNC( '13-Aug-2011 02:30:14 AM' + 1 ) + 23.15/24
= TRUNC( '14-Aug-2011 02:30:14 AM' ) + 23.15/24
= '14-Aug-2011' + 23.15/24
= '14-Aug-2011 11:09:00 PM'
You can create an additional job which will work at Saturday nights. This is the easiest fix I can think.
Regards
Gokhan Atil -
Oracle dbms_job not executing as scheduled
HI PPl,
I have schedule a job with interval as "NULL". And I can query and get the job details from dba_jobs.
But the job is not running.
after quering I found out that
SQL> select count(*) from dba_jobs_running;
COUNT(*)
0
Please help.As it is a critical development environment.
regardsHI ,
When i run the job manually using the below commnd it is executing.
exec dbms_job.run(141);
But it is not automatically executing.
Also find the output attched.
SQL> select LOG_DATE,OWNER,JOB_NAME,STATUS from DBA_SCHEDULER_JOB_RUN_DETAILS;
LOG_DATE OWNER
JOB_NAME
STATUS
12-MAY-10 11.48.50.425368 AM +04:00 ORACLE_OCM
MGMT_STATS_CONFIG_JOB_1
SUCCEEDED
12-MAY-10 11.48.50.668264 AM +04:00 SYS
PURGE_LOG
SUCCEEDED
LOG_DATE OWNER
JOB_NAME
STATUS
12-MAY-10 11.48.50.449582 AM +04:00 ORACLE_OCM
MGMT_CONFIG_JOB_1
SUCCEEDED
12-MAY-10 11.48.50.424068 AM +04:00 ORACLE_OCM
MGMT_STATS_CONFIG_JOB
LOG_DATE OWNER
JOB_NAME
STATUS
SUCCEEDED -
How to use DBMS_JOB to run the OWB scripts?
Can anyone pls explain how I can use the DBMS_JOB to run the scripts which are generated by OWB.
SuroopCREATE OR REPLACE PACKAGE "LOAD_DATAMART"
AS
TYPE t_global IS RECORD
( plsql_map VARCHAR2(50) := 'transactions_map_exp', -- Default mapping plsql program
plsql_map_main VARCHAR2(50) := 'transactions_map_exp.main', -- Default mapping plsql main program
servers NUMBER(2) := 19, -- Default concurrent loading servers
max_reloads NUMBER(3) := 3 , -- Default maximum load retrys
mail_sender VARCHAR2(99) := '"Certegy Data Warehouse"', -- Default Mail Sender
mail_notice VARCHAR2(99) := '[email protected]', -- Default Recepient Notification
mail_error VARCHAR2(99) := '[email protected]' -- Default Recepient for Errors.
GLOBAL t_global ;
PROCEDURE start_monitor_load(p_date IN DATE);
PROCEDURE monitor_load( p_date IN DATE , p_dwh_load# IN NUMBER DEFAULT NULL, p_servers IN NUMBER DEFAULT GLOBAL.servers );
PROCEDURE start_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs IN VARCHAR2);
PROCEDURE create_job_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs VARCHAR2 DEFAULT 'batch01_rbs' );
FUNCTION dependency_on(p_type IN VARCHAR2, p_date IN DATE) RETURN BOOLEAN;
PROCEDURE send_mail (p_sender IN VARCHAR2, p_recipient IN VARCHAR2, p_subject IN VARCHAR2, p_message IN VARCHAR2);
PROCEDURE start_load_guard;
PROCEDURE load_guard(p_job IN INTEGER);
END load_datamart;
CREATE OR REPLACE PACKAGE BODY "LOAD_DATAMART"
AS
PROCEDURE start_monitor_load(p_date IN DATE) IS
v_plsql VARCHAR2(32000);
BEGIN
v_plsql := 'load_datamart.monitor_load(to_date('''||TO_CHAR(p_date,'DD-MON-YYYY HH24:MI:SS')||''',''DD-MON-YYYY HH24:MI:SS''));';
EXECUTE IMMEDIATE 'declare v_job integer; begin dbms_job.submit(v_job,:v_plsql); end;'
USING v_plsql;
END start_monitor_load;
PROCEDURE monitor_load( p_date IN DATE, p_dwh_load# IN NUMBER DEFAULT NULL , p_servers IN NUMBER DEFAULT GLOBAL.servers ) IS
TYPE t_server IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
v_server t_server;
v_dwh_load# NUMBER;
v_reload_limit NUMBER := 0;
v_plsql_error VARCHAR2(32000);
pending_jobs BOOLEAN;
p_batch VARCHAR2(20) := 'batch01_rbs';
FUNCTION job_server_running(p_dwh_load_seq NUMBER) RETURN BOOLEAN IS
CURSOR c1 IS SELECT * FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#
AND load_seq = p_dwh_load_seq;
r1 c1%ROWTYPE;
PROCEDURE try_resubmit_job(p_dwh_load_seq OUT NUMBER) IS
v_load_seq NUMBER;
BEGIN
SELECT COUNT(*) INTO v_load_seq
FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_Load#;
IF v_load_seq < v_reload_limit THEN
INSERT INTO DWH_LOAD_DETAIL(dwh_load#,load_seq,load_server,plsql_map,map_parameters)
VALUES(v_dwh_load#,v_load_seq+1,0,r1.plsql_map,r1.map_parameters||'| SEQ '||v_load_seq);
COMMIT;
ELSE
RAISE_APPLICATION_ERROR(-20000,'Maximum '||v_reload_limit||' retrys reached, load aborted.');
END IF;
END;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%NOTFOUND THEN
RETURN FALSE;
ELSIF c1%FOUND AND r1.job_end_time IS NULL THEN
RETURN TRUE;
ELSIF c1%FOUND AND r1.job_end_time IS NOT NULL THEN
IF r1.job_end_time = 'BROKEN' THEN
try_resubmit_job(r1.load_seq); -- Oracle Errors
END IF;
RETURN FALSE;
END IF;
CLOSE c1;
END job_server_running;
FUNCTION get_next_load_seq(p_dwh_load_server IN NUMBER) RETURN NUMBER IS
CURSOR c1 IS SELECT * FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#
AND load_server = 0
ORDER BY dwh_load#,load_seq
FOR UPDATE OF load_server;
r1 c1%ROWTYPE;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%FOUND THEN
UPDATE DWH_LOAD_DETAIL
SET load_server = p_dwh_load_server
WHERE CURRENT OF c1;
END IF;
CLOSE c1;
COMMIT;
RETURN r1.load_seq;
END get_next_load_seq;
BEGIN
v_dwh_load# := p_dwh_load#;
-- Defining the Max Retry to load
SELECT COUNT(*) + GLOBAL.max_reloads INTO v_reload_limit
FROM DWH_LOAD_DETAIL
WHERE dwh_load# = v_dwh_load#;
FOR i IN 1..99 LOOP
v_server(i) := NULL;
END LOOP;
LOOP
pending_jobs := FALSE;
FOR i IN 1..p_servers LOOP
IF NOT job_server_running(v_server(i)) THEN
v_server(i) := get_next_load_seq(i);
IF v_server(i) IS NOT NULL THEN
load_datamart.create_job_load(v_dwh_load#,v_server(i),p_batch);
IF p_batch = 'batch01_rbs' THEN
p_batch :='batch02_rbs';
ELSIF p_batch = 'batch02_rbs' THEN
p_batch :='batch03_rbs';
ELSIF p_batch = 'batch03_rbs' THEN
p_batch :='batch01_rbs';
END IF;
END IF;
END IF;
IF v_server(i) IS NOT NULL THEN
pending_jobs := TRUE;
END IF;
END LOOP;
EXIT WHEN NOT pending_jobs;
dbms_lock.sleep(05);
END LOOP;
COMMIT;
UPDATE DWH_LOAD_HEADER
SET plsql_error = 'Completed'
WHERE dwh_load# = v_dwh_load#;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_plsql_error := SUBSTR(SQLERRM,1,4000);
load_datamart.send_mail(load_datamart.GLOBAL.mail_sender,load_datamart.GLOBAL.mail_error,
'Load Datamart - Load '||TO_CHAR(p_date,'MM/DD/YYYY HH24:MI:SS')||' not completed',
v_plsql_error||CHR(10)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13)||
'- Parameter Date '||TO_CHAR(p_date,'MM/DD/YYYY')||CHR(13)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13)||
'- Transmission time '||TO_CHAR(p_date,'hh24:mi:ss')||CHR(13)||
'- Load Seq# '||TO_CHAR(v_dwh_load#)||CHR(13)||
':::::::::::::::::::::::::::::::::::::::::'||CHR(13));
v_plsql_error := SUBSTR(SQLERRM,1,4000);
UPDATE DWH_LOAD_HEADER
SET plsql_error = v_plsql_error
WHERE dwh_load# = v_dwh_load#;
COMMIT;
RAISE_APPLICATION_ERROR(-20000,v_plsql_error);
END monitor_load;
PROCEDURE start_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs IN VARCHAR2) IS
v_plsql_map VARCHAR2(200);
v_sqlerrm VARCHAR2(4000);
BEGIN
UPDATE DWH_LOAD_DETAIL
SET job_start_date = TRUNC(SYSDATE) ,
job_start_time = TO_CHAR(SYSDATE,'HH24:MI:SS')
WHERE dwh_load# = p_dwh_load#
AND load_seq = p_load_seq
RETURN plsql_map INTO v_plsql_map;
COMMIT;
EXECUTE IMMEDIATE 'set transaction use rollback segment '||p_rbs;
v_plsql_map := 'begin '||v_plsql_map||' end;';
EXECUTE IMMEDIATE v_plsql_map;
EXECUTE IMMEDIATE 'begin
UPDATE DWH_LOAD_DETAIL
SET job_end_date = SYSDATE,
job_end_time = TO_CHAR(SYSDATE,''HH24:MI:SS''),
rta_iid = '||global.plsql_map||'.get_runtime_audit_id,
rta_select = '||global.plsql_map||'.get_selected,
rta_update = '||global.plsql_map||'.get_updated,
rta_insert = '||global.plsql_map||'.get_inserted,
rta_errors = '||global.plsql_map||'.get_errors,
rta_delete = '||global.plsql_map||'.get_deleted
WHERE dwh_load# = :p_dwh_load#
AND load_seq = :p_load_seq;
UPDATE DWH_LOAD_HEADER
SET rows_inserted = NVL(rows_inserted,0) + NVL('||global.plsql_map||'.get_inserted,0)
WHERE dwh_load# = :p_dwh_load#;
END;' using p_dwh_Load#,p_load_seq;
COMMIT;
EXCEPTION WHEN OTHERS THEN
v_sqlerrm := SUBSTR(SQLERRM,1,3999);
EXECUTE IMMEDIATE ' begin
UPDATE DWH_LOAD_DETAIL
SET job_end_date = SYSDATE,
job_end_time = ''BROKEN'',
rta_iid = '||global.plsql_map||'.get_runtime_audit_id,
rta_select = '||global.plsql_map||'.get_selected,
rta_update = '||global.plsql_map||'.get_updated,
rta_insert = '||global.plsql_map||'.get_inserted,
rta_errors = '||global.plsql_map||'.get_errors,
rta_delete = '||global.plsql_map||'.get_deleted,
plsql_error = :v_sqlerrm
WHERE dwh_load# = :p_dwh_load#
AND load_seq = :p_load_seq;
UPDATE DWH_LOAD_HEADER
SET rows_inserted = NVL(rows_inserted,0) + NVL('||global.plsql_map||'.get_inserted,0)
WHERE dwh_load# = :p_dwh_load#;
END; ' using v_sqlerrm, p_dwh_load#,p_load_seq;
COMMIT;
END start_load;
PROCEDURE create_job_load(p_dwh_load# IN NUMBER, p_load_seq IN NUMBER, p_rbs VARCHAR2 DEFAULT 'batch01_rbs' ) IS
p_job INTEGER;
v_date DATE;
BEGIN
-- Submitting Job Load
DBMS_JOB.SUBMIT(p_job,'load_datamart.start_load('||p_dwh_load#||','||p_load_seq||','||''''||p_rbs||''');');
COMMIT;
END create_job_load;
FUNCTION dependency_on(p_type IN VARCHAR2, p_date IN DATE) RETURN BOOLEAN IS
CURSOR c1 IS SELECT * FROM DWH_DATA_LOADS
WHERE data_type = p_type
AND file_date >= TRUNC(p_date);
r1 c1%ROWTYPE;
BEGIN
OPEN c1;
FETCH c1 INTO r1;
IF c1%FOUND AND r1.status = 'Done' THEN
RETURN FALSE;
END IF;
CLOSE c1;
RETURN TRUE;
END;
PROCEDURE send_mail (p_sender IN VARCHAR2,
p_recipient IN VARCHAR2,
p_subject IN VARCHAR2,
p_message IN VARCHAR2) IS
* This procedure is usefull for sending e-mails for single or multiples recipients up to 50 *
* the limitation is Lotes Notes e-mail service. *
* Lewis Cunnigham Package is good also for massive distribuition to multiples e-mails, *
v_mailhost VARCHAR2(30) := '172.27.2.157'; -- Titan and Eagle available SMTP service, through the GATEWAY
v_mailhost VARCHAR2(30) := 'STPMTA1ML'; old one
v_mailhost VARCHAR2(30) := 'stpnh1ml'; Main SMTP, all other are replicated, not available.
v_mailhost VARCHAR2(30) := 'STPMS6ML'; Replicated server, not available.
v_mail_conn utl_smtp.connection;
v_crlf VARCHAR2(2) DEFAULT CHR(13)||CHR(10);
v_date VARCHAR2(255) DEFAULT TO_CHAR( SYSDATE, 'MM/DD/YYYY hh24:mi AM' ); -- Lotus Notes default format.
--pragma autonomous_transaction;
PROCEDURE writeData( p_text IN VARCHAR2 ) AS
BEGIN
IF ( p_text IS NOT NULL ) THEN
utl_smtp.write_data( v_mail_conn, p_text || v_crlf );
END IF;
END;
BEGIN
v_mail_conn := utl_smtp.open_connection(v_mailhost, 25); -- Default port
utl_smtp.helo(v_mail_conn, v_mailhost);
utl_smtp.mail(v_mail_conn, p_sender);
utl_smtp.rcpt(v_mail_conn, p_recipient);
utl_smtp.open_data(v_mail_conn);
writeData( 'To: '|| p_recipient ); -- Redundant, but necessary to complete format
writeData( 'From: ' || p_sender); -- Redundant, but necessary to complete format
writeData( 'Date: ' || v_date ); -- Database completion time
writeData( 'Subject: ' || NVL( p_subject , '(no subject) ' ) ); -- Default Subject
--writeData( 'Content-Type: text/html');
utl_smtp.write_data(v_mail_conn, '' || v_crlf );
utl_smtp.write_data(v_mail_conn, p_message ); -- Message body
utl_smtp.close_data(v_mail_conn );
utl_smtp.quit(v_mail_conn);
--commit;
EXCEPTION WHEN OTHERS THEN null; Since we are just sending e-mails,
-- We don't care about mail errors like when server down, only when needed.
END;
PROCEDURE start_load_guard IS
v_job INTEGER;
BEGIN
DBMS_JOB.SUBMIT(v_job,'load_datamart.load_guard(100);',SYSDATE+100);
DBMS_JOB.CHANGE(v_job,'load_datamart.load_guard('||v_job||');',SYSDATE,'sysdate+((1/60)*1/24)');
COMMIT;
END start_load_guard;
PROCEDURE load_guard(p_job IN INTEGER) IS
v_job INTEGER;
CURSOR c1 IS SELECT * FROM DWH_DATA_LOADS
WHERE file_date BETWEEN TRUNC(SYSDATE) AND TRUNC(SYSDATE)+(86399/86400);
did_PAYC_load BOOLEAN := NULL;
did_ARMS_load BOOLEAN := NULL;
did_CLMS_load BOOLEAN := NULL;
did_STAT_load BOOLEAN := NULL;
did_TRAN_load BOOLEAN := NULL;
did_VCOM_load BOOLEAN := NULL;
did_BCRD_load BOOLEAN := NULL;
did_PNET_load BOOLEAN := NULL;
BEGIN
FOR i IN c1 LOOP
NULL;
--if i.status in ('Ready','Done') then
--if i.data_type = 'PAYC' then
END LOOP;
IF NOT ( SYSDATE >= TO_DATE(TO_CHAR(SYSDATE,'DD-MON-YYYY')||' 13:35:00','DD-MON-YYYY HH24:MI:SS') )THEN
send_mail('"Load Datamart"','[email protected]','I am the guard','This is my body messaje at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')||'.');
ELSE
send_mail('"Load Datamart"','[email protected]','I am the guard, this is the last message.','This is my body messaje at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS')||'.');
DBMS_JOB.SUBMIT(v_job,'begin dbms_job.next_date('||p_job||',to_date('''||TO_CHAR(SYSDATE+1,'DD-MON-YYYY')||' 03'||''',''DD-MON-YYYY HH24'')); commit; exception when others then null; end;',TRUNC(SYSDATE));
END IF;
COMMIT;
EXCEPTION WHEN OTHERS THEN
load_datamart.send_mail('"Load Datamart"','[email protected]','I am the guard, I break at '||TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS'),SQLERRM);
END load_guard;
END load_datamart; -
I have job which is running in oracle 9.2.0.6.0 but not running in 11.1.0.6.0
Job is that i have submitted is
declare
l_job number;
begin
dbms_job.submit( l_job,
'BEGIN DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => ''UV_DICOM'', TABNAME => ''STUDY'',ESTIMATE_PERCENT => 100, METHOD_OPT => ''for all columns size skewonly for columns (STATUS)'',CASCADE => TRUE, DEGREE => 4); END;',
SYSDATE,
'SYSDATE+1');
end;
I didn't under stand why?Kanchana Devasurendra wrote:
Check you aq_tm_processes parameter. if the value is set to zero then set it to 1. Then try it againEeeh?
From docs
http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/initparams008.htm
AQ_TM_PROCESSES controls time monitoring on queue messages and controls processing of messages with delay and expiration properties specified.
You do not need to specify a value for this parameter because Oracle Database automatically determines the number of processes and autotunes them, as necessary.
Therefore, Oracle highly recommends that you leave the AQ_TM_PROCESSES parameter unspecified and let the system autotune.
Regards
Peter -
Jobs not running anymore since midnight
All my jobs that run minutely, half minutely, 10 minutely, hourly are all last run tonight before midnight.
Next run date was set to the correct time after midnight but they did not start.
Its a rac database under 64bit windows, 10.2.0.3.
Its acutally two databases and on one stopping and starting instances one by one helped.
On the other one the jobs (at least did run, or at least the next run data got updated) by the starting and stopping instances, but they still do not run at there regular intervals.
Currently i am trying with one job, disabling, enabling, changing the schedule, it runs occassionaly but not ever half minute as it should.
I did all the checks, no jobs running, there are not too many sessions, the job_queue parameters are correct....
There is nothing in the alert log, only thing i can find is:
jsksGetCurWindowId:1 got error 27468
in the cjq0 logfile.
Any further ideas or sugestions ?Do you use Oracle Scheduler (DBMS_SCHEDULER)?
If yes...
select * from DBA_SCHEDULER_GLOBAL_ATTRIBUTE where attribute_name='CURRENT_OPEN_WINDOW';
What do you find "Window group"?
If you find and then close it...
Example:
SQL> select * from DBA_SCHEDULER_GLOBAL_ATTRIBUTE where attribute_name='CURRENT_OPEN_WINDOW';
ATTRIBUTE_NAME VALUE
CURRENT_OPEN_WINDOW WEEKNIGHT_WINDOW
SQL> exec DBMS_SCHEDULER.close_window ('WEEKNIGHT_WINDOW');
If you use dbms_job, then try
SQL> show parameter job_queue_processes
NAME TYPE VALUE
job_queue_processes integer 50
SQL> alter system set job_queue_processes=0;
SQL> alter system set job_queue_processes=50;
surachart
http://surachart.blogspot.com -
SAPOSCOL not running in MS Cluster
Hi, gurus:
We have a problem with SAPOSCOL in a SAP ECC 6.0 system (SAP ECC 6.0 + NetWeaver 7.00 + Oracle 10.2 + Windows Server 2003 R2 Enterprise x64 Edition) running over a MS cluster:
Transactions OS06/ST06 shows no data, and they show an info message wich states: SAPOSCOL not running ? (shared memory not available ). When we checked this issue, we noticed that, in fact, there is no sapcoscol.exe task running in any node.
But when we try to start the service (both using microsoft services console and cmd commands) although we can see the process running in the node which owns all the resources, SAP seems not notice that. The information system shows in ST06>Operating System Collector>Status is the following:
iinterval 0 sec.
Collector Version:
Date/time 05.09.2008 16:55:01
Start of Collector
Status report
Collector Versions
running COLL 20.95 700 - 20.64 NT 07/10/17
dialog COLL 20.95 700 - 20.65 NT 08/02/06
Shared Memory attached
Number of records 575
Active Flag active (01)
Operating System Windows NT 5.2.3790 SP 2 BL-SAP2 4x AMD64 Level 1
Collector PID 0 (00000000)
Collector not running (process ID not found).
Start time coll. Thu Jan 01 01:00:00 1970
Current Time Fri Sep 05 16:55:01 2008
Last write access Mon Sep 01 11:28:23 2008
Last Read Access Fri Sep 05 15:54:00 2008
Collection Interval 10 sec (next delay).
Collection Interval 10 sec (last ).
Status read
Collect Details required
Refresh required
Header Extention Structure
Number of x-header Records 1
Number of Communication Records 60
Number of free Com. Records 60
Resulting offset to 1.data rec. 61
Trace level 3
Collector in IDLE - mode ? NO
become idle after 300 sec without read access.|
Length of Idle Interval 60 sec
Length of norm.Interval 10 sec
But saposcol.exe is running with a certain PID in the same note than SAP and Oracle under user sapservice<sid>
We have tried to run saposcol in several ways (as, I have noted before: from microsoft service console, from cmd line using "net start saposcol", using the saposcol under C:\WINDOWS\SapCluster and the one under
F:\usr\sap\PRD\sys\exe\run, fom the two nodes, accessing the cluster through several IPs...) and tried the commands saposcol -c and saposcol -k but we cannot get the saposcoll run. Moreover, we haven't found any log information. The only log we (and SAP) could find is the one located in C:\WINDOWS\SapCluster\dev_coll.
This log remain frozen at September 1st:
SAPOSCOL version COLL 20.95 700 - 20.64 NT 07/10/17, 64 bit, multithreaded, Non-Unicode
compiled at Feb 3 2008
systemid 562 (PC with Windows NT)
relno 7000
patch text COLL 20.95 700 - 20.64 NT 07/10/17
patchno 146
intno 20050900
running on BL-SAP2 Windows NT 5.2 3790 Service Pack 2 4x AMD64 Level 15 (Mod 65 Step 3)
12:04:16 01.09.2008 LOG: Profile : no profile used
12:04:16 01.09.2008 LOG: Saposcol Version : [COLL 20.95 700 - 20.64 NT 07/10/17]
12:04:16 01.09.2008 LOG: Working directory : C:\WINDOWS\SAPCLU~1
12:04:16 01.09.2008 LOG: Allocate Counter Buffer [10000 Bytes]
12:04:16 01.09.2008 LOG: Allocate Instance Buffer [10000 Bytes]
12:04:17 01.09.2008 LOG: Shared Memory Size: 71898.
12:04:17 01.09.2008 LOG: Connected to existing shared memory.
12:04:17 01.09.2008 LOG: MaxRecords = 575 <> RecordCnt + Dta_offset = 614 + 61
12:04:22 01.09.2008 WARNING: WaitFree: could not set new shared memory status after 5 sec
12:04:22 01.09.2008 WARNING: Cannot create Shared Memory
Kernel Info:
Kernel release 700
Compilation NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00
Sup.Pkg lvl. 146
ABAP Load 1563
CUA load 30
Mode opt
Can anyone shed some light on the subject?
Thank you very much and kind regards
Edited by: Jose Enrique Sepulveda on Sep 6, 2008 2:10 AMDear bhaskar:
Thanks for your reply. We have considered balancing the system to the other node or reboot the system to free resources, in order to re-create the shared memory, but in the past, the balancing process (move resources from one node to the other) has caused problems. Since this is a critical system, stopping (or balancing) is not an option right now, and updating the kernel requires an ABAP stack reboot plus the kernel change : any changes in system configuration requires a longer approval/planning process than a reboot.
Moreover, the OS collecting system and its display in OS06/ST06 has worked fine until now.
Does anyone knows if a reboot has solved this kind of problem in a similar situation?
Thanks in advance
José Enrique -
I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???
Welcome to the Apple Community.
Enter the details of her second account at system preferences> mail, contacts & calendars. -
When KM Scheduler is stopped or not running
Hi Experts,
I have created KM Scheduler using the blog https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1515.Scheduled for every 30 mins.
In Systemadmin>Monitor> KM-->i can see whether Scheduler is running or not.
Now the requirement is to send a mail to the portal support team when Scheduler is stopped or not running. Is it possible?and how we can proceed?
Please guide me.
Sony.Try the Firefox SafeMode. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
# You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
# Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes -
KM Scheduler Task is not running...
Dear All,
I have created a KM Scheduler Task using the NDWS Wizard. I followed prakash's blog (http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1515). My doubt is where exactly the attributes are created? and can any one guide how to create the attributes in .cc.xml file. And how does public void run( String id, Properties properties ) it works?
The application was successfully deployed. I am able to see my task under System Administration->System Configuration->Knowledge Management->Configuration->Content Management->Global Services->Scheduler Tasks. but I think it is not running. Can any one give some clue on this. As i'm not finding any thing uder Kmcontent>Documents.
Do i need to configure anything to run KM scheduler Task?
Thanks and Regards,
JAGAN.
Edited by: Jagan456533 on Jan 19, 2011 11:10 AMHi Jagan,
The status "0" for your task in "Component Monitor" is fine.
Navigate to System Administration> System Configuration>Service Configuration. You can see here Applications and Portal runtime.
Open Applications--> and you Task. Right click on your task folder and say Administrate. Here you check whether your task has been stopped, running. Make sure its running. ( Try refresh, if its already running ).
In you task folder, you will see "Service Folder" under this, you will see "RFServiceWrapper", right click on it and say configure, make sure the values are like shown below:
Name : http://sapportals.com/xmlns/cm/sch
Value: Value1
Also make sure in your portalapp.xml, the values are same:
RFServiceWrapper
service-config
className= com.sap.netweaver.rf.wrapper.RFServiceWrapper
startup= true
service-profile
Name= = http://sapportals.com/xmlns/sch
Prof= Value1
You see tha the same name is used "Value1" in RFServiceWrapper both in portalapp.xml and in Service Configuration.
You can use any other name but the it should be same in both the places.
Make all these changes, and then restart your task in Service configuration again. Any changes in portalappl.xml, restart is necessary.
Kind Regards,
Poornima -
had firefox 4.0 & have been a user of firefox for a few years now. never had any problems. had to do a system restore after my computer detected a virus of some sort & i couldn't do anything. the virus kept popping up a bogus add for me to buy an antivirus program. had to restart laptop in safemode to initiate the restore. ever since then firefox has not opened. can't even uninstall it or open the profile manager. anything that has to do with firefox will simply not run/open at all. i'm stumped.
System restore can cause problems as well as solve them, it has probably completely mucked up your Firefox installation.
Try deleting your Firefox installation directory, the default location on 32 bit Windows is C:\Program Files\Mozilla Firefox\
Now re-install Firefox, it should pick up your current profile folder so you should not lose your bookmarks, passwords etc.
Maybe you are looking for
-
My Ipad shuts on and off?
Hi! My Ipad dosn't start anymore? It just turnes itself on and off? I have had some problems while I'm useing it too, it shuts down.. but now it dosen't start anymore? I tryed to connect it to a computer, I can still reach all my files. I don't know
-
Read a file, calculate the momentum of two columns and calc a summation of them
I have a file which das three columns. The first of them isn't important for this problem. I have to read the second and the thid ones, and then mutiply them (to calculate the momentum), if they are at the same line. After that I need to sum all the
-
HT201328 how to unlock my iPhone if you guys already agree to unlock it ?
how to unlock my iPhone if you guys already agree to unlock it ?
-
Script - Export Layers to Individual PDF's?
Is there a script to export each InDesign layer to its own PDF? I posted about this in the general InDesign forum, and was referred here. Someone found a Mac version, but I need something for Windows XP, CS3. Thank you!
-
Exporting a WorkSheet in Existing WorkBook
Hi All I have a WorkBook I want to move one Sheet from that workbook to Existing Workbook. Is it Possible through Export & Import. Thanks ASIM