Scheduler doesn't create Jobs
Hello folks!
We have scheduled some reports with BI Publisher Scheduler in our Development Enviroment and works very fine. But when we passed that reports to Prod Enviroment, BI Publisher scheduler doesn't create any Job (verified in Report Job History and XMLP/QRTZ tables in Database Schema that isn't any Job created). There isn't any error, exception or message, only scheduler doesn't create Jobs.
Any idea, solution or way to find any trail about that problem?
Thanks for your preciated time spent in our issue.
Best Regards,
Martín
I am also facing same issue with BI Publisher Scheduler but showing below mentioned error while creating new job.
Error
"Job submission failed : Error occurred while scheduling the job. org.quartz.ObjectAlreadyExistsException: Unable to store Job with name: '-1' and group: 'weblogic', because one already exists with this identification."
Cheers.
Vishal
Similar Messages
-
Hi,
Apps - 12.1.3
DB - 11.1.0.7.0
i want to run a job ( say sql quesry) at every hour ..
how i can schedule it using scheduler ?
I planned:
--create schedule
begin
dbms_scheduler.create_schedule
( schedule_name => 'weekday_execution',
start_date=> trunc(sysdate)+8/24,
repeat_interval=> 'FREQ=DAILY; BYHOUR=01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17',
comments => 'Weekday schedule based on MON-FRI 8 to 5');
end;
--create program
BEGIN
DBMS_SCHEDULER.CREATE_PROGRAM (
program_name => 'oe.my_saved_program1',
program_action => '/usr/local/bin/date',
program_type => 'EXECUTABLE',
comments => 'My comments here');
END;
Create Job:
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => 'my_job',
job_type => 'SQL',
job_action => 'select * from dual',
start_date => '01-SEP-11 1.00.00AM US/Pacific',
repeat_interval => 'FREQ=DAILY',
enabled => TRUE,
comments => 'Select query');
END;
Am i correct?
Thanks
Vishwa
Edited by: Vishwa on Sep 1, 2011 5:42 AMHello Vishwa;
What I is create them in this order
Schedule -
Program Name-
Create Job-
You need to create the Job last if its using a Schedule or a Program. If you query can be run in a stored procedure the Program example below will work.
Schedule Example
begin
dbms_scheduler.create_schedule
(schedule_name => 'DAILY_AT_8AM',
start_date=> trunc(sysdate)+18/24,
repeat_interval=> 'freq=daily;byhour=8;byminute=0;bysecond=0',
comments=>' Run at 8am every day');
end;
Program Example
begin
-- Call a procedure of a database package
dbms_scheduler.create_program
(program_name=> 'PROG_REPROCESS_EMP_COMM',
program_type=> 'STORED_PROCEDURE',
program_action=> 'REPROCESS_EMP_COMM',
enabled=>true,
comments=>'Procedure to set comm to NULL'
end;
Job Example
begin
dbms_scheduler.create_job
(job_name => 'JOB_REPROCESS_EMP_COMM',
program_name=> 'PROG_REPROCESS_EMP_COMM',
schedule_name=>'DAILY_AT_405PM',
enabled=>true,
auto_drop=>false,
comments=>'Job to update comm to null');
end;You can check for failed jobs by running this query
SELECT
LOG_DATE,
JOB_NAME,
STATUS,
REQ_START_DATE,
ACTUAL_START_DATE,
RUN_DURATION
FROM
DBA_SCHEDULER_JOB_RUN_DETAILS
WHERE
STATUS <> 'SUCCEEDED'Things that will help :
Grant 'create job' or 'create any job' privilege directly to the user (not through a role!).
Avoid naming the job as an already existing procedure/package name.
Consider starting your jobs with JOB_ and your programs with PROGRAM_.
Your Schedule need to be this :
BEGIN
DBMS_SCHEDULER.create_schedule (
schedule_name => 'HOURLY_SCHEDULE',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=hourly; byminute=0',
end_date => NULL,
comments => 'Repeats hourly, on the hour, for ever.');
END;
/If you need a code block change you program type to this :
program_type => 'PLSQL_BLOCK'Best Regards
mseberg -
Why background job sometimes doesn't create something while manually we can
Hi friends,
Can you help me to understand why Background job doesn't create Outbound Delivery where as manually we can create using VL10B with parameters same as that of the background job variant? The background job calls the program for VL10B.
Thanks,
RanaI have a similar problem on a SAP IS RETAIL site with VL10B.
I have reviewed several notes and the solution should be in using VL10BATCH with a list profile created via VL10CUA.
The list profile should be a copy of :
5002 Run purchase orders in background
into Z002 purchase orders in background
and specify that the F CODE PROFILE is 5001 RUN DELIVERY LIST
The create a variant from VL10BATCH and with the USER ROLE : Z002 (just created above).
Let me know if this helps you.
Sincerely,
Richard ITHIER
Sydney -
DPM doesn't create any recovery Point for VMs
Hello There,
i am running DPM2010 and i have created a protection group which contains VMs and System State data as you can see in the screen below the details.
The problem is DPM doesn't create any recovery points and i don't see any errors as well when i create short term recovery point manually it works.
This is all tape based protection, please suggest.
Regards,
Maqsood
Maqsood Mohammed Senior Systems Engineer MCITP-Enterprise Admin & ITILv3 Foundation CertifiedHi,
Please read this BLOG and see if you can find the problem associated with the SQ agent.
How to troubleshoot scheduled backup job
failures in DPM 2012
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights. -
Error creating job into trigger using DBMS_SCHEDULER.
Hi,
I am trying to create job using dbms_scheduler package. I have one trigger on insert event on one table. I am creating job using following syntax.
CREATE OR REPLACE TRIGGER TRG_BI_JOB_CONFIG BEFORE INSERT ON JOB_CONFIG FOR EACH ROW
DECLARE
BEGIN
DBMS_SCHEDULER.Create_Job(job_name => 'my_job1'
,job_type => 'PLSQL_BLOCK'
,job_action => 'delete_temp'
,start_date => TO_DATE('15-JUL-2003 1:00:00 AM', 'dd-mon-yyyy hh:mi:ss PM')
,repeat_interval => 'FREQ=DAILY'
,enabled => TRUE
,comments => 'DELETE FOR job schedule.');
EXCEPTION
WHEN OTHERS THEN RAISE;
END;
but I am getting following error while inserting into JOB_CONFIG table.
ORA-04092: cannot in a trigger
ORA-06512: at "PRAKASH1.TRG_BI_JOB_CONFIG", line 41
ORA-04088: error during execution of trigger
same above statement If I am running from sqlplus then It is creating job without error. If I am creating job using DBMS_JOB into trigger then It is also working fine but this package is depricated from oracle10g so I cannt use it any more.
My Oracle version is 'Oracle DATABASE 10g RELEASE 10.2.0.1.0 - Production'.
can anyone help me in this context.I have a few comments on this thread as an Oracle dbms_scheduler developer.
- Oracle takes backward compatibility very seriously. Although dbms_job is deprecated, the interface will continue to work indefinitely. The deprecation of dbms_job is so that customers will be encouraged to take advantage of the more powerful dbms_scheduler. It is extremely unlikely that entire blocks of functionality will ever be removed. There is currently no plan to remove dbms_job functionality (and even if there were, doing so would be strenuously opposed by many users).
- lots of internal Oracle database components are standardizing on using dbms_scheduler (resource manager, materialized views, auto sql tuning etc). This is good evidence that it will continue to be the recommended scheduling method for the foreseeable future - not even the concept of a replacement exists. It is also under active development.
- The reason for the automatic commit is that a dbms_scheduler job is a full database object like a stored procedure or a table. So a call to dbms_scheduler.create_job is like executing a DDL which takes effect immediately. A dbms_job job is mostly just a row in a table so a call to dbms_job.submit behaves like regular DML. There are many advantages to a job being a full database object but DDL behaviour is an unfortunate requirement of this.
Hope this clears a few things up, reply with any questions.
-Ravi -
Sirs,
I'm trying to print from wirelessy from my MacBook Pro (OS X Mountain Lion) to a P1102w printer without success.
The error message is:
W [16/Aug/2012:08:47:51 -0300] HP_LaserJet_Professional_P1102w: Printer supports Create-Job but not Send-Document operation.W [16/Aug/2012:08:47:51 -0300] HP_LaserJet_Professional_P1102w: Printer supports Create-Job but not Send-Document operation.
The Printer Firmware is 20120130 (HP last version)
Any hints?
Regards
CamiloIt doesn't share the printer and the Mac can't print
-
Log for schedule agreement division created/modify/delete at MRP (MD04)
Tables CDHDR and CDPOS were saved when the user changed data manually using the transaction ME31L and ME32L.
When the new schedule divisions were create direct at MRP, the registries were not saved.
I searched for any configuration to activated this registry though without succesfully.Transaction AUT10 display the execution process though it doesn't mention exact information was changed.
Is there any configuration to change the behavior of this transaction or another transaction I could see the information was changed, deleted or inserted? -
Periodic Scheduling of sequencial background job
I schedule monthly & weekly planning jobs. These jobs are scheduled one after another in a sequence. frequency of running these jobs is fix hence I want to schedule it on periodic basis. It possible for me to schedule single background job periodically but I don't know how to schedule sequncial backgorund jobs on periodic basis.
Regards,
ChetanDear Siva,
Thanks for your reply.
for execution of single job periodically I am following the same procedure mentioned by you.
I scheduled background jobs one after another by clicking on start condition & in pop-up select "After job". this way I schedule 7 to 8 jobs one after another.
So in first scheduled job you will find 7 to 8 successor jobs.
Now if I try to make it periodic, then only first job becomes periodic & successor jobs doesn't get released periodically.
I want to make entire chain of jobs to be scheduled peiodic.
Regards,
Chetan -
Hi,
I like to create job using Scheduler Jobs > Create Job with Command Type Stored Procedure! But the problem is that I can't see (user sys) procedures on schema i wish to create job on! So i can't pick procedure from Search and Select: Procedure values!?
Is someone know what is the problem?
Thanks, KristjanOK. It is a "Package" and not a Procedure like you mentioned above.
So, you have to do a different thing from a normal stored procedure. What you need is to use a Command Type of PLSQL Block
Assuming the Package TEST_PACLAGE with PACKAGE BODY containing procedure TEST_PROC and is owned by user SYS.
Select SYS as the owner under General
Inside the PL/SQL box enter.
BEGIN
test_package.test_proc;
END;
This should work -
Problem: Aggregates for repository by scheduling an aggregate creation job
Hi dear OBIEE Gurus,
I‘m trying to create my Aggregates for my repository by scheduling an aggregate creation job as shown in
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/aggpersist/aggpersist.htm
env:
1- Oracle Business Intelligence Product Version 10.1.3.4.1 (Build 090414.1900)
2- Windows XP
3- Three separate repositories (OE, SH, & Sample Sales) running in parallel each on its own analytics deployment on one OC4J server
+++++++++++++++++
What is the problem:
When I try to start the scheduled job I get following message:
+++++++++++++++++
Oracle BI Server
Copyright (c) 1997-2009 Oracle Corporation, All rights reserved
delete aggregates
delete aggregates
Statement execute succeeded
create aggregates
"ag_Salesfacts"
for "SH"."Salesfacts"("Amount Sold")
at levels ("SH"."ProductsDim"."Category", "SH"."TimesDim"."Times Detail", "SH"."CustomersDim"."State Province")
using connection pool "orcl SH"."Connection Pool"
in "orcl SH".."SH"
create aggregates
"ag_Salesfacts"
for "SH"."Salesfacts"("Amount Sold")
at levels ("SH"."ProductsDim"."Category", "SH"."TimesDim"."Times Detail", "SH"."CustomersDim"."State Province")
using connection pool "orcl SH"."Connection Pool"
in "orcl SH".."SH"
Processed: 2 queries
Encountered 1 errors
[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
[nQSError: 46036] Internal Assertion: Condition !m_factTable.IsNull(), file .\Src\SAAPAggrCube.cpp, line 46.
Statement preparation failed
++++++++++++++++++++
What have I done so far?
++++++++++++++++++++
- I went through all steps in the aforementioned tutorial, up to the point where it says “6. Verify that the job completes successfully in the Job Manager.”
- I set up the job in the scheduler
- I let run the job in the job manager, Which is where I get the error.
- I tried different combinations of fields, aggregations and levels, all with the same result.
- Manually starting the job has the same result: >D:\programs\oracle\obiee\server\Bin\NQCmd.exe -u Administrator -p Administrator -d AnalyticsWebSH -s D:\programs\oracle\obiee\server\Repository\create_aggregated_table_rk.SQL
- I tried to create aggregates in my other repositories, and found OTHER errors, but at least the aggregates were created there (to some extent)
- I looked in OTN for the error, found nothing
- Google does not know a thing about this
Any ideas?Hi John,
there is an OSS Note 453026 'No aggregate proposals for MultiCubes after query' that seems explaining your situation, but I think you aren't on the old 2.0/2.1 versions...
John, I don't know how could I help you...
If I find more, I'll write you at once !
Bye,
Roberto -
Hi,
I want to schedule 15 jobs , run at first day.of every month . In SM36, i created jobA and then i created jobB and define jobB when finished start. And i created other jobs like this. I defined jobA periodic job. But second month, jobA ran, but jobB and other jobs didn't run. Those jobs have variants .
Is there any way to correct this ? If answer is no , how can i do the transactions with ABAP ?
I think, first program , job open, job submit etc. and define this periodic job. and when finish submit other program.
Could you please help me ?
Best Regards,
Hasan,i solved by myself.
thanks, -
Hi
I want to create job that runs everyday except sunday.
Can I do it with database scheduler through enterprise manager?Hi,
I want to create job that runs everyday except sunday.I would not use OEM, the dbms_scheduler package is easier, IMHO . . . .
Dr, Hall has some great examples of complex date scheduling:
http://www.dba-oracle.com/tips_oracle_dbms_job.htm
-- Submit job to begin at 0600 and run every hour, Monday - Saturday
dbms_job.submit(
:jobno,
'BEGIN statspack_alert_proc; END;',
trunc(sysdate+1)+6/24,
‘trunc(
least(
next_day(SYSDATE - 1,'’MONDAY'’),
next_day(SYSDATE - 1,'’TUESDAY'’),
next_day(SYSDATE - 1,'’WEDNESDAY'’),
next_day(SYSDATE - 1,'’THURSDAY'’),
next_day(SYSDATE - 1,'’FRIDAY'’)
next_day(SYSDATE - 1,'’SATURDAY'’)
+1/24,'’HH'’)',
TRUE,
:instno);
His book "Oracle Job Scheduling" is also amazing:
http://www.rampant-books.com/book_2005_1_scheduling.htm
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
Hi Experts,
I am about to create a batch job. I used FM JOB_OPEN, JOB_SUBMIT and JOB_CLOSE. However, whenever I run the program it creates job for every 1 second. It will not stop creating jobs unless you completely exited in the program. The code is not inside the loop.mariposa,
Suppose you have 100000 records which is going for dump in background also.
Taht time decided to create a job for every 20000 records.
select * from database table
into itab
packaze size 20000
where x = s_x.
your functionality here if required and moved to final internal table.
Now you have to pass this final internal table data to your submit program selection screen.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
DELANFREP = ' '
JOBGROUP = ' '
jobname = csm_std_reconciliation_job
SDLSTRTDT = NO_DATE
SDLSTRTTM = NO_TIME
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID 'CSM' TYPE 'W' NUMBER '045' WITH csm_std_reconciliation_job.
EXIT.
ENDIF.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
ARCPARAMS =
authcknam = sy-uname
COMMANDNAME = ' '
OPERATINGSYSTEM = ' '
EXTPGM_NAME = ' '
EXTPGM_PARAM = ' '
EXTPGM_SET_TRACE_ON = ' '
EXTPGM_STDERR_IN_JOBLOG = 'X'
EXTPGM_STDOUT_IN_JOBLOG = 'X'
EXTPGM_SYSTEM = ' '
EXTPGM_RFCDEST = ' '
EXTPGM_WAIT_FOR_TERMINATION = 'X'
jobcount = jobcount
jobname = csm_std_reconciliation_job
LANGUAGE = SY-LANGU
PRIPARAMS = ' '
report = csm_std_reconciler
variant = csmvari
IMPORTING
STEP_NUMBER =
EXCEPTIONS
bad_priparams = 1
bad_xpgflags = 2
invalid_jobdata = 3
jobname_missing = 4
job_notex = 5
job_submit_failed = 6
lock_failed = 7
program_missing = 8
prog_abap_and_extpg_set = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID 'CSM' TYPE 'W' NUMBER '045' WITH csm_std_reconciliation_job.
EXIT.
ENDIF.
strttime = sy-uzeit + timepad.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = csm_std_reconciliation_job
sdlstrtdt = sy-datum
sdlstrttm = strttime
IMPORTING
JOB_WAS_RELEASED =
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID 'CSM' TYPE 'W' NUMBER '045'
WITH csm_std_reconciliation_job.
EXIT.
ELSE.
MESSAGE ID 'CSM' TYPE 'I' NUMBER '104' WITH
csm_std_reconciliation_job.
ENDIF.
endselect.
Now for every 20000 records it will create one batch job.
Pls. reward if useful. -
Schedule Lines not created from MRP
Hi !!
I have a finished product ""111-2523-64"" and in its BOM i have a semifinished product ""111-2523-64-010"" produced(Inhouse)& three raw materials .
For the Raw Materials I have made the scheduling agreement & source list with indicator ("2"" create schedule lines automatically""
Problem -: Now when I run the MRP using T-Code MD02 the system is planning the finished & semifinished product
*but no schedule lines are created for the raw materials.*
Please Guide , Itz very urgent.
Regards
Rahul Bhardwaj
9909986406Dear Rahul,
When u r running MRP maintain '3' for Delivery Schedules Field under MRP Control Parameters ( T Code MD02). Sheduling Agreement should be valid. If there is sufficient stock on hand compared with the requirement then system will not create any Schedule Lines. In material master of raw Materials on MRP2 view Procurement Type should be Maintained as 'F'. If u have maintained 'E' or 'X' then MRP run will not create schedule lines.
Regards
Sunil Kumar -
Creating Job material using public API from WIP
Take the entered component part number and search in the WIP job material requirements. This should use a WIP API. If the material is found, increment the quantity. If material is not found, create the job material using public API. (Provide WIP API details)
The java object, oracle.apps.csd.schema.server .CsdHvWipJobPvtEO is a wrapper to call WIP API. This should be used to create material requirements is this the procedure to create job material Req.
from OAF how we have to create Job material transactionHi Pat,
What is your SBO version? I've seen several cases in which the login/connection procedure (both in the client and via DI API) has become much slower after upgrading to SBO 2005.
Do you experience the same slowness when connecting via DI API in a non-WebService setting?
I would not recommend using DI API in a web service context in the first place. DI Server would give you a much more robust, stable and scalable infrastructure to build upon.
Henry
Maybe you are looking for
-
Credit control procedure/user exit
Hi, Is it possible to set credit control block for the customer who has not configured credit limit in FD32? I looked in VOFM and in the include LVKMPFZ1 but as far as I can see these programs are started only if there are records in FD32 (table KNK
-
I was updating my ipad2 to iOS.5 version, and somehow the iPad turned of and the update was not finished. When i turned on the iPad the computer nor iTunes could recognize the iPad. I have windows xp. How can I solve this issue?
-
I Tunes will not play play back files ripped with Handbrake on 10.6.8 Server
I have hundreds of files ripped with Handbrake that play back fine on my Mac Mini and iMacs and Macbooks connected to a server running 10.6.8 (the files are stored on the server). However, when I try to play the files with iTunes on the server machi
-
The below is the Mview script using: When i run the script it is taking very long.CAn any one suggest me how I can make THE REFRESH FASTER? i AM USING 10gR2 Database: I not able to tune the performance of this mview.I can not go with fast refresh bec
-
CSXC Infrastructure CS6 3.0.3 not installing
for the past week or so i have been trying to get the Adobe Application Manager to update the latest CSXC Infrastructure update and it continually fails . there are 6 different products requiring the update and they download . and start to install .