How to get status of a short lived process?
I have a short-lived process I call from servlet (submit servlet), I would know when the process has completed, I tried the following code, but it says
[3/3/09 10:35:37:593 PST] 0000002f SystemErr R Caused by: com.adobe.idp.jobmanager.common.JobNotFoundException
InvocationResponse invokeResponse = myServiceClient.invoke(invokeRequest);
String invocationId = invokeResponse.getInvocationId();
JobManager jobManager = new JobManager(myFactory);
JobId myJobId = new JobId(invocationId);
int counter = 0;
while((jobManager.getStatus(myJobId).getStatusCode() == JobStatus.JOB_STATUS_RUNNING) && ++counter < 60) {
Thread.sleep(1000);
Any help would be appreciated. Thanks in advance.
Nelson
As Paul has stated, there really isn't a good way to get the "status" of a short-lived process because being able to get such a status goes against what a short-lived process is intended for. Typically a short-lived process would run and promptly return any outputs to you. Personally, I like to distinguish long-lived versus short-lived by associating user steps with long-lived and their absence with short-lived (since short-lived processes can't have any user steps anyway). If you are still wanting to be able to retrieve the status of your process, I might encourage you to make it long-lived instead. This way, the tb_process_instance table can be used to check the process's status via its complete_time column. Alternatively, you could have a status variable in the orchestration itself such as a string you could update whenever you want to update the status. Since all process variables for long-lived processes are stored in the database, you could check this value to see where you're at with the process.
If you have any questions, please do let me know. You can email me directly or just respond on these forums. Good luck!
Josh Boyle
[email protected]
Cardinal Solutions Group
Similar Messages
-
How to get status of transaction
Hi Gurus,
can anyone tell me how to get status of the transaction in crm.
regards,hi vijay,
what kind of transaction did you want to get the status ?
for order, complaint, activity, and task, you can used function modul 'CRM_ORDER_READ' for getting status of the document.
hopes it helps
cheers -
How to create Short Lived process?..can neone pls help...
How to create Short Lived process?..can neone pls help...
Hi,
Login into workbench. Click on Help->Workbench start page.
Lot of helps are there you can go through them. They will be helpful.
But it seems you are new to livecycle, so it will difficult to start through help. Either you can take help of any of your team member who is expert in livecycle or some training you should attend.
Thanks -
CRM document - how to get status duration?
Dear all,
I extract data CRM -> BI using standard datasources: 0CRM_SRV_PROCESS_H, 0CRM_COMPLAINTS_I, etc
I need build a report with status duration of documents
For example, if document was processed 4 days in statuses OPEN > IN PROCESS > VALIDATION > CLOSED report should be following:
OPEN - 1 day
IN PROCESS - 2 days
VALIDATION - 1 day
Each CRM datasource has start date and last change date of the document
But there is no fields which stores date or duration of intermediate status change
Could you please give an advice - how to get status duration?
Thanks in advanceHi Oleg,
Please check whether following standard datasources could meet your requirements:
0CRM_TSS_DTRACK CRM Tracking of Document Processing Lifecycles
0CRM_TSS_PKYF Timestamp Service: Performance Key Figures
You can find the documents in transaction code SBIW, through IMG path
Settings for Application-Specific DataSources (CRM)
-> Settings for Extracting CRM Objects
-> Define Extraction to Track the Document Processing Life Cycle
-> Define Performance Key Figures for Time Stamp Service Analysis
Best Regards,
York -
Get authenticated user in short-lived Workbench process
To invoke a REST endpoint I'm required to login as this seems to be a protected resource. In the short-lived process I would like to get the name of the logged-in user but new com.adobe.idp.Context().getAuthenticatedUser() returns null. LC runs in the turnkey JBoss server on Windows 2003 Server with SQLServer as the LC repository.
Can you try the following expression?
String loggedInUserOID = patExecContext.getProcessDataStringValue("/process_data/@creator_id");
// You should get the logged in user's unique id from the above expression.
Nith -
How to invoke a short lived process using web service start point?
I have a custom short-lived process that does not take any input parameter. I am able to successfully invoke the process from LiveCycle Workbench ES2. I want this process to be invoked by a java client through a web service call. Apart from the web service URL of my process (which looks like
http://<server>:<portno>/soap/services/MyApplication/MyProcess?wsdl&lc_version=9.0.0&versi on=1.0) do the java client know anything else? Any authentication is required?
My intention is to just find out what all the consumer of this process needs to know to invoke it through a web service call.
Was anybody able to test a short-lived process through a web service invocation from SoapUI?I am not a programmer but I did find this article on he Developers Resource site that might lead you in th eright direction:
http://www.adobe.com/devnet/livecycle/articles/java_soap.html
Paul -
Problem invoking short-lived processes involving Document object
I have two LiveCycle instances on two different server environments(Dev and Test). I have a few common short-lived processes and forms. All these processes involve Document objects. These processes run fine on one environment(Dev) and have problem in the other(Test) for the same input parameters. Input parameters are Document(PDF) objects. I see this error when I invoke a process which has RenderPDFForm activitity in Test environment.
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commit(TransactionImp le.java:223)
at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:411)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy380.doRequiresNew(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:143)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:329)
at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:139)
at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)
at sun.reflect.GeneratedMethodAccessor826.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
I tried comparing the configuration settings for these 2 environments and everything looks the same between the two environments except Health Monitor.
Total Physican Memory, Free Physican Memory and Free Swap Space. These parameters are vary big between the two envs. Other parameters look close.
Is this difference causing the process to fail in Test environment ? If yes, are there any other parameters that I can adjust to fix the problem with the process ?
If no, what could be causing the process in Test env to fail ?
Any ideas in this direction would be greatly appreciated.
Thanks,
JyothiI am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
mod_rewrite is enabled and running on the server.
I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
-- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
<code>
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
RewriteRule (.+)\..(.)$ $1$2 [R, L]]
<code> -
How to get status codes of field?
For every document type or status field which we can see on front end, there is code which is finally stored in table.
e:g: Go to transaction /nme53n
Select any purchase req.
Select status tab from item.
See processing status field.
These processing status saves as N,B, etc in table.
I know there is way to see these codes followed by full description on front end screen itself. I think using personal settings, but dont know how to set this. Please let me know how to see status codes + description on front end.You gui status should be implemented in the main screen which the subscreen resides, all function codes should be handled at that level. I believe you will need to set the F2 funciton code in your gui status, set the function code to PICK and then handle this function code in your PAI user command module. Should work.
subscreen cannothave their own pf-status.....so create a pf-status for a screen in which ur subscreen is called...include 'pick' or f2 as onre of the functions code for the choose option.
to differentiate the field u have to use get cursor field fldname.
if it is a table control field u have to use
get cursor field <fldaname> line <n> value <fval> -
How to get status profile (STSMA) in user exit ILOM0001
Hi ABAPers,
I am currently working on user exit ILOM0001 (Check before saving a functional location) and need to get information about status profile (STSMA). I have checked parameters that is imported into this user exit (DATA_IFLO, DATA_IFLO_OLD, DATA_IFLOS) and none of them have STSMA.
Could anybody help me how to get this field STSMA into user exit ILOM0001?
Appreciate it.
Thanks
Regards
HadiDear Kolla,
Really appreciate your answer, but
I don't want to generate or make settlement receiver.
I was building a script in user exit IW010009,
And the issue is I can not capture the content of field settlement receiver.
If we want to capture screen field, ex. equnr, we can use structure CAUFVD,
when i see the technical detail in this field, the structure for settlement is DKOBR, field EMPGE, but i cannot call it on debug.
Kindly need your help on this issue. -
How to get response from an asynchronous BPEL process in Java
I'm experimenting with BPEL and doesn't seem to be able to get response from an asynchronous BPEL process. Here's the deal:
I have a BPEL process that takes a string as input, and gives another string as output. This is a asyncronous process.
I want to initiate this BPEL process as a web service so I generate a Webservice Proxy in JDeveloper 10g (10.1.3.0.4). The function to call the process is now called "initiate" and takes three arguments: the input string, a "org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType replyTo" and a
"org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI messageID".
HTTP-Analyzer shows that invoking the BPEL process with initiate("somestring", null, null) results in sending a SOAP message to the BPEL process, which returns a "202 Accepted". How do I get the response from the process? My intuition tells me that I have to use that second argument, that EnpointReferenceType thing. How do I use that?
Another question: If a asynchronous BPEL process does not exists (so the endpoint does not exist) the Java proxy does not throw an error when runned. It does not even sends a message. It exits with status 0! (This happens for example when deploying a new version of a process and when the "old" version is undeployed). Calling a non-existing synchronous BPEL process, the Java proxy DOES throw an error.Clemens,
That all sounds logical. But somehow it is still a mystery for me ... Somehow I don't see what should be done.
To call the async BPEL process I have the following procedure:
initiate(String input, org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType replyTo, org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI messageID)
The first argument is the input for my BPEL process. The second is the address to a webservice that should handle the callback, right? The third is a messageID (makes sense, but why of the type AttributedURI?).
Here lies my problem. It is not clear to me how these EndpointReferenceType & AttributedURI work. I can't find anything on the net about it. The AXIS examples as where mentioned earlier use other types (namely the "org.xmlsoap.schemas.ws.addressing.MessageID" and "org.xmlsoap.schemas.ws.addressing.ReplyTo") which are completely different.
What I did so far:
- I created an webservice proxy that listens on the onResult endpoint of the BPEL process.
- I created an webservice proxy that calls the BPEL process through the initiate procedure, but it is not completely clear to me how to construct the EndPointreferenceType replyTo, and the MessageID. I did something like this:
EndpointReferenceType replyTo = new EndpointReferenceType();
// callback service running on local machine
// This URI class is the java.net's version
URI replyToURI = new URI("http://vaccinatie:8988/syncro-callback-context-root/stringconcatCallbackBindingPort");
// This AttributedURI is the org.xmlsoap.schemas.ws._2003._03.addressing's version
AttributedURI address = new AttributedURI();
// the only public methos that made sense to me:
address.set_value(replyToURI);
replyTo.setAddress(address);
// call the BPEL process
myPort.initiate("test123", replyTo, address);
But the above doesn't work (largely because I don't know what I'm doing here prob.:-) ) It does send the "test123" message, and the BPEL process does process it, but I don't seem to get the callback right.
I hope this makes my problems somewhat clearer. I hope someone can help me, because I'm just a beginner in this whole "web service area" and seems to do something terribly wrong here, because it should be very simple. Thx. -
How to get the changes during ABENDED replicat process
Hi,
I am working on Oracle GG bi-directional DML replication. I m stuck in one place.
My target replicat process was ABENDED due to Error :- ORA-01403: no data found. I restarted my replicat process again by runing the below command
GGSCI (db1) 30> alter replicat rep2 begin now
GGSCI (db1) 30> start replicat rep2
After restart the replicat process I can't see the changes on target server which I had applyed on source server during target replicat was ABENED.
My doubt is.
1. Is my command is correct for start the ABENDEND replicat process?
2.How to get the changes on target server which applyed on source during ABNDED of targer replication?
3.How to avoid the ABENDED replicat process on production server?
4.how to track the ABENDED process in production server?
Please HELP:(
Edited by: NaveenK on Aug 29, 2012 3:32 AMNaveenK wrote:
Hi,
I am working on Oracle GG bi-directional DML replication. I m stuck in one place.
My target replicat process was ABENDED due to Error :- ORA-01403: no data found. I restarted my replicat process again by runing the below command
GGSCI (db1) 30> alter replicat rep2 begin now
GGSCI (db1) 30> start replicat rep2
After restart the replicat process I can't see the changes on target server which I had applyed on source server during target replicat was ABENED.
My doubt is.
1. Is my command is correct for start the ABENDEND replicat process?
2.How to get the changes on target server which applyed on source during ABNDED of targer replication?
3.How to avoid the ABENDED replicat process on production server?
4.how to track the ABENDED process in production server?
Please HELP:(
Edited by: NaveenK on Aug 29, 2012 3:32 AMHi Naveen. SQL Error 1403 means row not found. Your data is out of sync and you should fix this.
By doing begin now when this happens, you are skipping all the transactions that were "in-line" since the process ABENDED.
You have more than one way to deal with these things, first of all you should synchronize your data! This should get rid of the 1403 errors.
Then you can write rules using REPERROR to tell the replicat how to behave in case of errors should come up.
Using logdump, you can read the exact row which failed and find out the next RBA to skip that specific one if required. You should also configure a DISCARDFILE to get details about errors when they happen.
Greetings,
N K -
How to get the activity instance id and process id
Dear All,
For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
// dynamically assign a user to a role
rtm.addRuntimeDefinedUserToRole(
// process instance
prInstance,
// role name
"Processor",
// user that is assigned (IUser)
user,
// user context (IGPUserContext)
userContext);
// dynamically change the user assigned to a role for a particular task
String prInstanceID = prInstance.getID();
rtm.changeTaskProcessor(
// process instance ID
prInstanceID,
// activity instance ID
activityInstanceID,
// current user (IGPUserContext)
currentProcessorContext,
// new user (IGPUserContext)
newProcessorContext);
But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
Any gentllement can give me an idea.
Thank you.
Regards
Ericprocess = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
// by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
/* and the user accessing it */ userContext);
// retrieve the Runtime Manager
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
// create an empty role assignment list
IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
//Initialising the input params
IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
params.setAttributeValue("Name",value);
//Starting the process
IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user); -
How to get the list of all running process in java
hi all,
i want to get the list of all running processes on my system. please let me know if it is possible to do with JAVA. which class i should use?
waiting for reply
byeWrong forum. Just a hint.
-
How to get error message from the BPEL process
Hi,
We have some BPEL processes running in BPEL PM 10g. If any of these BPEL process fails, we would like to get the error message caused this process to fail.
Please let me know where does the BPEL proccess holds (table/file) these details. or is it possible to get the error message programatically.
ThanksYou can go through below link that can help
http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/faults.htm#sthref1186
http://bpelknowledge.blogspot.com/2010/07/error-conditions-that-cannot-be-handled.html
http://blog.whitehorses.nl/2009/11/03/error-handling-in-soa-suite-11g/
Hope it helps!!
Thanks
AJ -
How to get status of a backup job
Hello everybody,
I scheduled our daily RMAN backup using the DBMS_SCHEDULER package. The DB job calls an external batch file which in turns calls rman's executable and passes it a command file containing the actual backup script. Similar to what's described here:
Problems with automated RMAN Backup in Oracle 11GR1 with DBMS_SCHEDULER
The backup works perfectly. The problem is that if I intentially corrupt the command file (simulating a backup failure) so that the backup fails, and then query the dba_scheduler_job_log view, I always get a status of SUCCEEDED. Regardless of the actual backup outcome, the job seems to always succeed. That's a problem for me, because I'd like to set up a user defined metric which would check the status of the job in dba_scheduler_job_log. If the job wasn't successfully executed, a mail would be sent.
Does anybody know why the job doesn't fail when it should? I also tried to execute the failing script manually and then checked the %ERRORLEVEL% environment variable. It has a value of 1, meaning error.
Btw, I know that if I schedule the same backup with Enterprise Manager's job system (instead of DBMS_SCHEDULER), the backup failure is correctly reported (and the metric works). The issue with EM is its limited scheduling capability - I do a full backup on Sunday, a cummulative incremental backup on Wednesday and all the other days a differential incremental backup. Since now I haven't found a way to define a schedule with an appropriate repeating interval. The only solution I figured out is to have 7 jobs, one for each day of the week....
Thanks in advance for any answers,
JureHi,
@alanm: I completely forgot checking that view :-) Using it is a solution, but I should probably set up a job chain to handle that (run backup & chack status in the view afterwards)....if there isn't be another solution, maye I'll do that. But then, maybe using 7 EM jobs is a simpler solution.
@RnR: I tried to execute the batch file manually from the command line like that:
C:\>echo %errorlevel%
0
C:\>rman target / cmdfile=backup_full.rcv
Recovery Manager: Release 10.2.0.3.0 - Production on Sre Jul 2 09:46:37 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: TESTDB (DBID=2890535676)
RMAN> RUN
2> {
3> aa;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter, backup, beginline,
blockrecover, catalog, change, copy, convert, crosscheck, configure, duplicate, debug, delete, exec
ute, endinline, flashback, host, mount, open, plsql, recover, release, replicate, report, restore, r
esync, set, setlimit, sql, switch, startup, shutdown, send, show, transport, validate"
RMAN-01008: the bad identifier was: aa
RMAN-01007: at line 3 column 1 file: backup_full.rcv
C:\>echo %errorlevel%
1
So the if the script fails, I get an errorlevel of 1. Is it possible that the status isn't propagated back to the Oracle job?
@alanm: I'm already appending to the log, but I don't see how can that affect the outcome status of the job?
Thanks for your answers.
Regards,
Jure
Maybe you are looking for
-
My Apple ID password for icloud / I have reset it and still my Account is Disabled ? MY icloud account for iTunes App Store ,keeps saying my account is invalid / disabled to contact " Customer Service" in the iTunes store? How do I fix this ? I've re
-
Within the past two or three weeks, my trusty MacBook's screen has blacked out for several seconds during a session. Wiggling touchpad doesn't have any effect: the screen returns when it gets good and ready. The blackout does not appear to be related
-
I'm not to brag, but my phone is in amazing condition. I was extremely obsessive all these years about taking care of my phone, and have only dropped it once or twice (on carpet!) Anyways, I've had this phone 4 years and dearly love it, but unfortuna
-
Iphoto software update has caused it to crash with no access to iPhoto?
We have a Macbook Pro (March 2011) and a week ago iPhoto said it needed to do an update, it got to 100% of 9 steps then just crashed. Force quite after several hours did not help and I can now not get access to iPhoto as it keeps trying to update an
-
App download and up dates are not longer working
Since two days the up date and download of apps is not longer working on my iPad