Triggering of scheduled job
hi,
i wuld like to know, triggering of standalone application which is a scheduled job. I am using tomcat as server.
I need to send a email everyday to all users who ever havent posted data before certain time in a day. So for this purpose i need to trigger my application at a particular instant of time. Wuld appreciate if any one could give me a lead into this.
Mail to : [email protected]
Thanks and Regards,
Indos
I'm doing something simliar.
I'm using a ServletContextListener to start a TimerTask.
public class Scheduler implements ServletContextListener
private static Log logger = LogFactory.getLog(Scheduler.class);
private Timer timer;
public void contextInitialized(ServletContextEvent evt)
logger.info("Starting Scheduler...");
timer = new Timer(true);
if(Config.getInstance().getBoolean(ConfigDefaults.LICENSE_EMAILER_ENABLED_KEY))
logger.info("License emailer is enabled.");
EmailTask emailTask = new EmailTask();
timer.scheduleAtFixedRate(emailTask, emailTask.getStartTime(), emailTask.getFrequency());
else
logger.info("License emailer is disabled.");
public void contextDestroyed(ServletContextEvent evt)
timer.cancel();
timer = null;
}EmailTask extends TimerTask and the run() method does the work of sending the emails using JavaMail.
Similar Messages
-
Odi Jobs not getting triggered through Scheduler Agent
Hi Guru's,
i have Scheduled jobs in odi using Scheduler agent but jobs doesn't get triggered even though my scheduler agent is up and running and i have updated scheduled plan also.
Please help me in resolving the issue.
Regards
VinodIs your Agent successfully installed ?
What is your OS and where exactly the ODI install ?
If it is in Windows the we need to check the .BAT file if it is in linux then we need to check the .SH file for Agent.
Thanks,
Lony
8763043086 -
Analytical snapshots and scheduled jobs
Hello,
for extended analytical reports we need to make the snapshots of our statistic datas every day.
There is an option of doing snapshots of the Project in Project Management, but we need to have snapshots of our own BO's or data sources. Is there any possibility to do this?
In case snapshots can't be done by the system we also would perform it in coding, by creating business objects with required datas and saving them. But we need to do the saving automatically (regularly).
In Project Management it is also possible to run scheduled snapshots. How can we schedule jobs (it would be enough if we could execute an action which saves our datas at scheduled time)?
We have found only "Mass Data Run Process" in this context but the MDR's can be done only for the special standard Floorplans, aren't they?
Best regards,
Leonid Granatstein.Hi,
currently it is not possible to create snapshots for partner BO content by a standard process.
Also defining a mass data run object, which you could schedule and where you could implement the snapshot by yourself, is not available for partners yet. So we have no standard mechanism available to get your task done with the use of the current implementation possibilities.
The only option I see is that you develop the snapshot activity on your own in ByD studio.
To trigger the snapshot activity on a regular basis, I only see the option to trigger this from outside. An option would be to define a web service or an XML file upload.
You could write for example a small program ( by using PHP or .NET) on a PC which runs on a regular basis and which uploads an XML file or calls a web service. This then triggers the snapshot activity you have programmed in ByD Studio.
I hope this helps.
Regards,
Thomas -
Hi all,
We are running 11gR2 PS1 (BP01). We have a scheduled job that creates role and then populates approver_user attribute (with user ID) in the catalog entry of this role. We only want the approver_user to be populated and not the certifier and fulfillment user on the catalog.
When i view the role in catalog, the approver user is correctly set with the user ID provided by the scheduled job however I see that certifier user and fulfillment user are automatically set to oiminternal.
We did not see this behavior in R2.
Are there any configurations that will prevent certifier user and fulfillment users to be auto populated with the identity of the user running the scheduled job (oiminternal)?
Thanks.So while this certainly isn't the most elegant of solutions, and most assuredly isn't in the realm of supported by Oracle...
I've used the DBMS_IJOB.DROP_USER_JOBS('username'); package to remove the 194558 orphaned job entries from the job$ table. Don't ask, I've no clue how they all got there; but I've prepared some evil looks to unleash upon certain developers tomorrow morning.
Not being able to reorganize the JOB$ table to free the now wasted ~67MB of space I've opted to create a new index on the JOB$ table to sidestep the full table scan.
CREATE INDEX SYS.JOB_F1_THIS_NEXT ON SYS.JOB$ (FIELD1, THIS_DATE, NEXT_DATE) TABLESPACE SYSTEM;The next option would be to try to find a way to grant the select privilege to the role without using the aforementioned "after CREATE on schema" trigger and dbms_job call. This method was adopted to cover situations in which a developer manually added a table directly to the database rather than using the provided scripts to recreate their test environment.
I assume that the following quote from the 11gR2 documentation is mistaken, and there is no such beast as "create or replace table" in 11g:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9003.htm#i2061306
"Dropping a table invalidates dependent objects and removes object privileges on the table. If you want to re-create the table, then you must regrant object privileges on the table, re-create the indexes, integrity constraints, and triggers for the table, and respecify its storage parameters. Truncating and replacing have none of these effects. Therefore, removing rows with the TRUNCATE statement or replacing the table with a *CREATE OR REPLACE TABLE* statement can be more efficient than dropping and re-creating a table." -
Deleting Information Broadcasting Scheduled Jobs
Does anyone know how to delete an Information Broadcasting setting after the associated workbook has been deleted? The IB job runs when the data provider is updated and just hangs because it can not find the workbook. In IB distribution you can view the scheduled settings, but it does not let you delete.
Regards,
Craig StephenHi All,
I am encoutering the same problem from last one month, There was a scheduled job created for Workbook as daily frequency.
The workbook now has been deleted but the scheduled job created for that workbook is triggering everyday.I am unable to delete the setting now.Can you please help me out for deleting this background job!!!!
I deleted the job in SM37 with the option 'delete the job from database'(delete icon)also, but again it is scheduling next day.
Transaction RSRD_ADMIN is not working for me.
Please let me the procedure to delete this background job..answers will be awarded with maximum points
Thanks
Message was edited by:
suraj kumar -
Trigger mail to MRP controller if Scheduled job for MRP fails
How to configure Triggerring of mail to MRP controller if Scheduled job for MRP fails ?
Dear Feby,
Check this links to create a distribution list and to assign the same during background job scheduling in SM36 for the program
RMMRP000.
Re: Settings to be done for sending mail to external system
Re: problem in background run
Regards
Mangalraj.S -
Hi Gurus
We have an issue whereby batch jobs are being scheduled during the day which when run have a negative impact on system resources.
Our Basis team has identified the following work processes: UCP_00_DIA_W0-4
UCP_00_BTC_W0-4
as being responsible for the issue.
They have further identified that they are scheduled to run after users in cProjects save a project they have been working on.
These work processes appear to kick in as scheduled jobs every 2 hours and run for about 10 minutes.
Does anyone know under what Job Name they would be scheduled under and what there purpose is?
I have tried to run a trace on the cProjects save but have not found anything that leads me to a answer woth this issue.
Many Thanks
PandurangaHi Panduranga Kumar,
this sounds very much like the cProjects evaluation that's triggered by saving the project.
You can easily check this if you inspect the customizing of the project type of such a project. There you can find a dropdown list (Check for Threshold Value Violations) that steers if and how the evaluation is started. Depending on the setting made here, such a job can be launched after a project has been saved.
Hoping this provides the pointer you need.
Best regards,
Thomas -
Where is the scheduled job?
This scheduled job starts at 22:00 every day on the Linux server. it creates snapshot on a remote storage via ssh, and here is what I found in the log about the job on the remote node:
Sun Nov 10 22:00:08 EST [remote_node: rshd_0:debug]: [email protected](linux server ip)[email protected](ip)_37397:IN:ssh2_37397:IN:ssh2 shell:SSH INPUT COMMAND is snap create hourly_11-10-2013_22-00
It seems root cron job is the only cron job under /var/spool/cron on this Linux server. However, I can not find the script which started at 22:00 at all, nor any script with such function. the following is the only line at 22:00pm in /var/cron/log
Nov 10 22:01:01 phoenix crond[24352]: (root) CMD (run-parts /etc/cron.hourly)
However, there is no any scripts with such function in /etc/cron.hourly neither.
Please help me out where this schedule job possibly located on the linux server.
Thank you in advance!Understand all you are saying here.
I have already talk to NetApp support. They are right that the action on the storage is definitely triggered by this linux server "phoenix". The following message has clearly stated that:
Sun Nov 10 22:00:25 EST [netappname: rshd_4:debug]: [email protected]_37412:IN:ssh2 shell:SSH INPUT COMMAND is snap create vol1 vol1_nightly_11-10-2013_22-00
159.3.99.146 is the ip for the linux server "phoenix".
However, they can not tell me more since it should be found out on the linux.
The problem is that I could not locate the script either by searching crontab jobs or any anacron as you explained.
root is only user who has cron job. I checked everysingle line, not only there are no such scripts, also there are no any jobs will ge kicked at 22:00 as the time when the action is started.
I also searched /etc/cron.hourly. there is only one script, and it does nothing about that action.
so, i don't have a clue about what and where the script possible is... -
ADF_FACES-60097 error while opening a random schedule job
Hello,
recently i'm facing a error in oim while i open the schedule job
When i logeed in with xelsysadm
click on advanced.then click on System management
search all the scehdule jobs
open a random schedule job
error occured!!
Error: An error Occurred while retrieving trigger for the schedule job.
ADF_FACES-60097
please help
regards
tpHi Frank,
Thanks for the reply. I am using it as an inline popup. I am trying to create command links dynamically in an iterator. When a link is clicked a popup window opens. The text of the link is passed to the popup window by creating a variable in the session scope ( I even tried request scope) by an action listener in the backing bean.
I tried to create another simple application with a static command button which passes its text to popup window through a session scope variable. It worked fine. I am not sure why the same procedure is not working in my original application. Can you give me a hint what could possibly go wrong according the exception stack trace ?
Thanks,
KK -
Error while creating a Scheduled job in OIM 11g
While creating a scheduled job, if i click on the Task and search to select the value, i get the following error.
<Nov 14, 2011 5:10:24 PM IST> <Error> <oracle.adfinternal.view.faces.config.rich
.RegistrationConfigurator> <BEA-000000> <ADF_FACES-60096:Server Exception during
PPR, #1
javax.servlet.ServletException: java.lang.AssertionError
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:341)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.j
ava:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter
(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:447)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter
.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:447)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilt
erImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilte
r(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFi
lter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmt
NavigationFilter.java:122)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthCon
textFilter.java:108)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:1
76)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:31
3)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt
il.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav
a:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1
61)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:13
6)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsF
ilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.AssertionError
at org.apache.myfaces.trinidad.component.ChildArrayList.__removeFromPare
nt(ChildArrayList.java:191)
at org.apache.myfaces.trinidad.component.ChildArrayList.add(ChildArrayLi
st.java:53)
at org.apache.myfaces.trinidad.component.ChildArrayList.add(ChildArrayLi
st.java:69)
at org.apache.myfaces.trinidad.component.ChildArrayList.add(ChildArrayLi
st.java:33)
at oracle.iam.consoles.faces.render.canonic.UIValue$UIEntitySelector.sea
rch(UIValue.java:1670)
at oracle.iam.consoles.faces.render.canonic.UIValue$UIEntitySelector.acc
ess$2400(UIValue.java:1467)
at oracle.iam.consoles.faces.render.canonic.UIValue$EntitySelectorQueryL
istener.processQuery(UIValue.java:1787)
at oracle.adf.view.rich.event.QueryEvent.processListener(QueryEvent.java
:67)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXC
omponentBase.java:675)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:108)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.r
un(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._pr
ocessPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.bro
adcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclu
de.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.r
un(ContextSwitchingComponent.java:93)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._pr
ocessPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.bro
adcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclu
de.java:96)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents
(LifecycleImpl.java:902)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(L
ifecycleImpl.java:313)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(Lifecyc
leImpl.java:186)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.j
ava:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter
(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:447)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter
.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
istChain.doFilter(TrinidadFilterImpl.java:447)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilt
erImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilte
r(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFi
lter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmt
NavigationFilter.java:122)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthCon
textFilter.java:108)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:1
76)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:31
3)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt
il.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav
a:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1
61)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:13
6)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsF
ilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
>
This behavior is seen in most of the lookups when we try to search for value.
Please let me know for any configuration steps for the same issue.Have you tried restarting the db and the server? I have seen this on user search and a db restart along with server restart solved it for me. Also note that this error in my case was due to wrong mds file. so for you also check ur tasks and any custom xml which might have some errors into it.
HTH,
BB -
Hi
I created several KM scheduler jobs.
The problem is that they are running in the context of Guest user, and i could find any way to change this.
Because of that when i try to call new InitialContext () for calling some remote ejbs i get caller not autorized.
So does somebody know how i can change this?
Florinhi,
if you ejb connect to backend, you need to configure an service user who has authorized to call
the rfc functions in R/3.
Kind regards
Ben.J. -
Dynamically Set date not changing in schedule Job
Hi,
I have created a report with "Order Date" as one of the parameters on the selection screen. I have created a variant, say 'X' , to set this date parameter dynamiccaly as "Current date - 31 days".
I have scheduled this program to run in background with the 'X' variant daily at certain time.
Now, for the day on which I created this job , the Order Date is set to correct date . For ex if I am scheduling the job tdy it will be set to 06/10/08. However, for next day , that is tom this date is not getting changed. i.e Tommorrow again Order date is 06/10/08 but it should have been 07/10/08.
So basically this dynamically set date is not chaning in the scheduled job.
Any idea why this is happening and what is the corrective measure for this.
Thanks!There is an INITIALIZATION event in the program.......
Do the processing your date in that event only....
for ex....
select-options: date for order-date.
INITIALIZATION.
date-low = sy-datum or wat ever.
Thanks
Saurabh -
Troubled to get scheduler job to run?
Hi all friends:
I'm having trouble getting any scheduler jobs (here, troubled job name is CUSTMASTER_CHANGES_01) to actually run.
when
sql>select job_name,state,enabled,retry_count,failure_count,run_count,restartable,start_date,repeat_interval,job_class
from all_scheduler_jobs;
JOB_NAME STATE ENABL RETRY_COUNT FAILURE_COUNT RUN_COUNT RESTA START_DATE REPEAT_INTERVAL JOB_CLASS
CUSTMASTER_CHANGES_01 SCHEDULED TRUE 0 0 0 FALSE 14-JAN-08 09.46.14.6 FREQ=SECONDLY;I SCANNER_JO
72965 AM AMERICA/NEW NTERVAL=5 B_CLASS
_YORK
for job 'CUSTMASTER_CHANGES_01'
we can see RUN_COUNT 0 and restartable false.
I upped slave processes to 5. dbms_scheduler.run_job('CUSTMASTER_CHANGES_01') works, but it's still not executing on the schedule
when run as sysdba
SQL> exec dbms_scheduler.run_job('CUSTMASTER_CHANGES_01');
ERROR at line 1:
ORA-27475: "SYS.CUSTMASTER_CHANGES_01" must be a job
ORA-06512: at "SYS.DBMS_ISCHED", line 150
ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
ORA-06512: at line 1
to resolve that,
we found
When you create your job by using dbsm_scheduler, it has a parameter called ‘auto_drop’, is by default, =’true’, like, auto_drop => TRUE
see below;
dbms_scheduler.create_job(
job_name IN VARCHAR2,
job_type IN VARCHAR2,
job_action IN VARCHAR2,
number_of_arguments IN PLS_INTEGER DEFAULT 0,
start_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL,
repeat_interval IN VARCHAR2 DEFAULT NULL,
end_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL,
job_class IN VARCHAR2 DEFAULT 'DEFAULT_JOB_CLASS',
enabled IN BOOLEAN DEFAULT FALSE,
auto_drop IN BOOLEAN DEFAULT TRUE,
comments IN VARCHAR2 DEFAULT NULL);
The job you manually run once and then it drops itself when you test.
so I am specifiying auto_drop to be false, but it is showing it has true as the attribute.
DBMS_SCHEDULER.CREATE_JOB(
job_name => scanner.scanner_name,
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN IF EEG_SCAN.GET_RUNNING_JOBS_COUNT('
||''''||UPPER(scanner.scanner_name)||''''
||') < 2 THEN '||scanner.scanner_proc_name||'; END IF; END;',
repeat_interval => 'FREQ=SECONDLY;INTERVAL=5',
job_class => c_job_class_name,
auto_drop => FALSE,
enabled => true
scheduler job is still not working as expected.....?
Can you help me for this??
thanks a lot in advance.
Message was edited by:
jerrygreat
Message was edited by:
jerrygreatHi,
There are a few other limits you could check .
Make sure that you have not exceeded the maximum number of sessions or the maximum number of processes or the maximum number of scheduler jobs
select * from dba_scheduler_global_attribute;
and
select name,value from v$parameter where name like '%process%';
select name,value from v$parameter where name like '%session%';
Also check how many jobs are currently running
select count(*) from dba_scheduler_running_jobs;
select count(*) from dba_jobs_running ;
select count(*) from v$session ;
One of these limits may need to be increased.
The run_job succeeds because it runs in the current session by default, if you use use_current_session=>false, does it still work ?
Also auto_drop only drops the job when it has completed e.g. past its end_date or exceeded its max_runs.
Finally note that there is a dedicated forum for dbms_scheduler located here
Scheduler
Hope this helps,
Ravi. -
Hi All,
We have Hyperion System 9 9.3.3. We have a Daily job scheduled every morning to check the status of the scheduled jobs that run daily. One of the jobs has a status message as below.
Failure - Internal error.ContainerCache.populate: The object "0000011386a6823b-0000-a99f-0a103a4a" is not found. It either does not exists, or it may be inaccessible.
But when I check the job status in View Job Status > Job Scheduler module, I see the report is still running. It's just that this report is taking longer to run and completes some time after the Daily Job Status check report runs.
In this case, shouldn't the status should say something like the job is still running instead of "Failure" which is misleading?
Thanks in advance.
ZHi,
I have the same problem with Oracle EPM 11.1.2:
com.sqribe.transformer.ObjectNotFoundException: ContainerCache.populate: The object "0000012f0710ca12-0000-a4ad-c0a80003" is not found. It either does not exists, or it may be inaccessible.
Who gives me the right answer?
Thanks in advance, Ron -
Background Processing? how schedule job for "System Error" Message .
Hello everyone,
in sap help i have read.
http://help.sap.com/saphelp_nw04/helpdata/en/5a/f72040599a8f5ce10000000a155106/frameset.htm
PCK> Monitoring>Message Monitoring-->Background Processing
you can schedule jobs for various background processing:
● Archiving of messages processed successfully
● Deletion of messages that are not to be archived
● Restarting of messages with errors
● Rescheduling of lost messages
can anyone understand this docu?
give me some introduction, how can i define and schedule these jobs ?
thx in advance!!
best regards
YaningBackground Processing
Prerequisites
You have started the message monitor on the initial screen of the PCK and are in Background Processing.
Features
Archiving
You require two archiving sessions to archive messages:
● One session to write the messages to the archive
● One session to delete the persisted messages that have been archived
To do this, you schedule an archiving job, which implicitly schedules the sessions to write to the archive and delete the archived messages.
You can define one or more rules for each archiving job; these rules contain conditions that a message must meet in order to be archived by the job. At least one of the defined rules must be met for archiving to take place.
All information that is displayed for a message in message monitoring is archived, in addition to the audit log for each message.
Deleting
A standard delete job is created automatically. It runs once a day. You can schedule additional delete jobs; however, you cannot define rules for them.
Restarting
Instead of restarting messages with errors manually with message monitoring, you can schedule a job to automatically restart these messages. This is possible for all messages for which the number of defined restart attempts has been exceeded (messages with the system error status).
You can define one or more rules for each job to restart messages; these rules contain conditions that a message must meet in order to be restarted by the job. At least one of the defined rules must be met for archiving to take place.
Rescheduling
A standard job to reschedule messages is created automatically. The job runs once a day and ensures that messages lost as a result of database failure, for example, are rescheduled. You can schedule additional rescheduling jobs; however, you cannot define rules for them.
Thx Aamir.
But I mean the messages with errors in Adapter Engine , not in Intergrations Engine.
the situation is like Naveen Pandrangi's WebLog
II. Errors in Adapter Engine [XI : How to Re-Process failed XI Messages Automatically|XI : How to Re-Process failed XI Messages Automatically]
I
Till now we have seen how to resubmit/restart message that failed in Integration Engine. One a message makes it from Integration Engine to Adapter Engine, the message is flagged as checked in Integration Engine. The status of the message in Adapter engine does not effect the processed state in Integration Engine. Now if this message was asynchronous, XI will by default try to restart the message 3 times at intervals of 5 minutes before the status of the message is changed from Waiting to System Error .
*how can i schedule a job to automatically restart these messages with errors?
best regards
Yaning
Edited by: Yaning Liu on Aug 18, 2008 1:43 PM
Maybe you are looking for
-
Solution for viewing AR credit memo relevant to AP invoice
In R12, we no longer have the functionality of applying miscellaneous receipts to credit memos. Using this functionality in 11i, we were able to make payments through AR. In 11i, we were using API (AR_CM_APPLICATION_PUB.activity_application) for crea
-
I am creating a slideshow in iMove 9.0.2 by taking RAW photo files, converting them to JPEG's in Aperture 3, then dragging the JPEG's into an iMovie project. I deleted a photo from the iMovie slideshow project by selecting the thumbnail in the proje
-
Published photos show up as a question mark
I published my web for the first time and I get an error message. The site published ok except the photos show up as little blue question marks..
-
Mac HD greyed out in Disk Utility
Hey, This all started after Mountain Lion, which slowed down my MacBook a lot. I tried to do a clean install and reformat my HD, and doing so it removed the partition already on it. When I went to restore the HD, every option is greyed out except for
-
hi all, how define tax rate determination during with CIN. Will system retrive tax rate from the definition made J1ID, or , the tax rate given in FTXP for the tax code. Also, plz explaing how account determination takes place - through tax code or '