Missing chain step name in events raised by the scheduler

I use events raised by the scheduler (SYS.SCHEDULER$_EVENT_QUEUE) to monitor scheduler chains processing.
For event_type = "JOB_STARTED" (chain step started in case of chains) in event message (sys.scheduler$_event_info) there is no log_id (log_id is null).
In user_scheduler_job_log view there is column job_subname that contains chain step name but this column is missing in the event message.
Is there any way to get chain step name for event_type = "JOB_STARTED"?
Job configuration:
dbms_scheduler.set_attribute(
name => job_name,
attribute => 'logging_level',
value => dbms_scheduler.logging_full
dbms_scheduler.set_attribute(
name => job_name,
attribute => 'raise_events',
value => dbms_scheduler.job_all_events
Database:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
OS:
CentOS - redhat-4
Regards
Mariusz

I want to track chain processing by dequeue messages from SCHEDULER$_EVENT_QUEUE.
Examples of messages automatically inserted by scheduler into SCHEDULER$_EVENT_QUEUE (user_data column from SCHEDULER$_EVENT_QTAB)
SYS.SCHEDULER$_EVENT_INFO('JOB_SUCCEEDED','CDWMAIN','JOB_NAME','2011-07-27 16:19:11.191969',0,NULL,0,340374,1,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
SYS.SCHEDULER$_EVENT_INFO('JOB_STARTED','CDWMAIN','JOB_NAME','2011-07-27 16:19:10.947994',0,NULL,1,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
SYS.SCHEDULER$_EVENT_INFO('JOB_CHAIN_STALLED','CDWMAIN','JOB_NAME','2011-07-27 15:45:13.727127',0,NULL,0,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
For event JOB_SUCCEEDED there is log_id = 340374 so we can find job_subname (chain step name) in log table.
For JOB_STARTED and JOB_CHAIN_STALLED there is no log_id so we do not know wich chain step in this case was started and wich chain was stalled.
JOB_NAME is the same for all steps in case of chain processing

Similar Messages

  • Question about the chain step name in DEFINE_CHAIN_STEP

    I have questions about the chain step name in DEFINE_CHAIN_STEP:
    1. Can the step name be a number (e.g. "8")?
    2. Should the step name be unique within a chain or across all chains?
    I am having this exception:
    ORA-25448: rule DMUSER.RULE_6_3707 has errors
    ORA-22806: not an object or REF
    After I changed the step names (in DEFINE_CHAIN_STEP), the chain seems to run fine.
    Thanks,
    Denny

    The reason I asked about the step name is to confirm it can handle numbers (it looks it can handle it from the doc).
    Why I changed the step names say from "11" to "21", the error goes away, that puzzled me. Because the way I defined steps and the rules for the steps were exactly the same. Just changing the step names made the error goes away?!
    Thanks.

  • Event Based Chain Step?

    For a couple days now I've been trying to come up with a working example of a Job Chain w/ an Inline Event for a Chain Step.
    Would anyone happen to have a fairly simple example of this, or be able to point me in the right direction?
    Thanks,
    James

    Hi James,
    An inline event in a chain allows the chain to wait until an event is received before continuing with one or more branches of the chain. The way this works is that one of the chain steps is an event step which does nothing but wait for an event and completes successfully as soon as that event is received.
    In a database events are represented by AQ messages to the chain event step waits until a message is received into a certain queue. Here is a simple complete example with comments. First step1 runs, then step 2 waits for an event . After the message is received, the final step3 runs and the chain completes. If you have any more questions, please reply.
    Hope this helps,
    Ravi.
    -- ================= simple complete chain with event step example ==============
    -- grant necessary privileges to scott
    grant create job to scott ;
    grant execute on dbms_aq to scott;
    grant execute on dbms_aqadm to scott;
    begin
    dbms_rule_adm.grant_system_privilege
    (dbms_rule_adm.CREATE_EVALUATION_CONTEXT_OBJ, 'scott', FALSE);
    dbms_rule_adm.grant_system_privilege
    (dbms_rule_adm.CREATE_RULE_SET_OBJ, 'scott', FALSE);
    dbms_rule_adm.grant_system_privilege
    (dbms_rule_adm.CREATE_RULE_OBJ, 'scott', FALSE);
    end ;
    connect scott/tiger
    -- setup a multiple consumers queue for event messages
    create or replace type msg_type as object ( col1 varchar2(20) ) ;
    begin
    dbms_aqadm.create_queue_table('qt1','msg_type',multiple_consumers => TRUE);
    dbms_aqadm.create_queue ( queue_name => 'Q1', queue_table => 'QT1');
    dbms_aqadm.start_queue ( queue_name => 'Q1' ) ;
    end ;
    -- create a scheduler program and chain
    exec dbms_scheduler.create_program('prog1','plsql_block','null;',0,true);
    begin
    dbms_scheduler.create_chain('chain1');
    dbms_scheduler.define_chain_step('chain1','step1','prog1');
    dbms_scheduler.define_chain_event_step('chain1','step2',
    'tab.user_data.col1 is not null', 'Q1');
    dbms_scheduler.define_chain_step('chain1','step3','prog1');
    dbms_scheduler.define_chain_rule('chain1','true','START step1');
    dbms_scheduler.define_chain_rule('chain1','step1 completed', 'start step2');
    dbms_scheduler.define_chain_rule('chain1','step2 completed','start step3');
    dbms_scheduler.define_chain_rule('chain1','step3 completed','end');
    dbms_scheduler.enable('chain1');
    end;
    -- now create the master chain job, and enable it so it runs immediately
    exec dbms_scheduler.create_job('job1','chain','chain1',0,enabled=>true);
    -- wait a second or two to let first step complete
    select * from all_scheduler_job_log where job_name='JOB1' order by log_id;
    -- observe that only first step has completed
    -- now enqueue message to complete second step
    declare
    msg msg_type;
    my_msgid RAW(16);
    props dbms_aq.message_properties_t;
    enqopts dbms_aq.enqueue_options_t;
    begin
    msg := msg_type('test');
    dbms_aq.enqueue('q1', enqopts, props, msg, my_msgid);
    end;
    commit;
    -- now check that chain has completed successfully
    select * from all_scheduler_job_log where job_name='JOB1' order by log_id;
    -- ======= end of complete inline event step example

  • Payload for an exent & Source from where Event Raised

    In Oracle Applications 11.5.10 I want to subscribe to "oracle.apps.ap.event.invoice.approval" event.
    I want to add a custom "Rule Function", I require to know the payload for this event.
    And I want to know from where is this event raised in the base product.
    Thanks
    Atul

    Many thanks Matt..
    You are right.. The payload will be generated by the application raising the event. How do I come to know that from where is "oracle.apps.ap.event.invoice.approval" event raised. Is it raised from a form, workflow, pl/sql package, db trigger?
    Secondly I agree it is of type WF_EVENT_T, but in addition to that I want to know what are the granular contents of the payload being passed to my rule function. What all data can I reference from this seeded Payload. What is the name of this payload.
    Thanks
    Atul

  • How to get all step names within a group or a sequence?

    Hi,
    I'd like to show all the names of the steps within a sequence or a group.
    I wonder if there is a simple function which can be used directly, such as RunState.PreviousStep.Name.
    I tried via a foolish way to append each step name, though it shows all the step names but I still think there is a simple function can access all the step names.
    Can anyone give me some suggestion, thanks a lot!!!
    Solved!
    Go to Solution.
    Attachments:
    ShowAllStepName.seq ‏8 KB

    I've doctored up your sequence a little.  But yes you have to loop.
    Also, what format do you want the names in?
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    ShowAllStepName.seq ‏8 KB

  • How to Get the step name of MainSequence from SequenceFilePreStep / SequenceFilePostStep?

    I'm using SequenceFilePreStep & SequenceFilePostStep to get the test time of every step. Is there any way to get the step name of MainSequence that calls the PreStep & PostStep callbacks? Thanks

    Hi,
    You can get the name of the sequence by NameOf(RunState.Caller.RunState.Sequence).
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Send Message from Process Chain Step without Process Log

    We send a mail message, depending on the success or failure of the process chain step, to user list.
    When the message is sent not only custom message but also the status information and the process log are sent.
    Our users are only interested about the result of the chain and they don' t want to view all technical information.
    Is it possible to send message without process log?
    Regards

    Hi,
    Take 2 process(red and green line) from each of the process in the process Chain, one is for sucessfull and other is for failure and at the end of the proces chain,  just put all failure process to the OR and have add a ABAP Program (with Not Sucessfull) and then just put all sucessfull process to the AND and have add a ABAP Program (with Sucessfull) .
    This wil send the mail to the users, when ever there is failure in PC any where, or sends a mail ..if the process chain completes sucessfully.
    If you want only add the send of mail option at the end of the process chain, we can just add 2 process (red and green line) and have same flow as above. so that.. it will only sends mail..when there is failure or sucessfull of the process chian.
    Hope it helps ......

  • Verisign certificate & Chain File Name

    Perhaps a newbie question, but here goes:
    I am having trouble installing a Verisign certificate on my Weblogic 6.0
    server. I have my private key and certificate file installed properly I
    believe, but am unsure what to put in the Certificate Chain File entry
    in the console. I only have 1 certificate for this server. I have tried
    to
    a) leave it empty - in which case it uses a default file name which does
    not exist
    b) use the certificate I got from Verisign
    c) export a class 3 certificate from my browser and use that file
    In all the cases that I give it an existing file name, I get the
    following stack trace:
    weblogic.security.CipherException: Incorrect encrypted block
    at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:208)
    at
    weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:89)
    at weblogic.security.X509.verifySignature(X509.java:243)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:440)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at
    weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <Sep 5, 2001 8:18:55 AM PDT> <Alert> <WebLogicServer> <Inconsistent
    security configuration, weblogic.security.AuthenticationException:
    Incorrect encrypted block possibly incorrect
    SSLServerCertificateChainFileName set for this server certificate>
    weblogic.security.AuthenticationException: Incorrect encrypted block
    possibly incorrect SSLServerCertificateChainFileName set for this server
    certificate
    at weblogic.security.X509.verifySignature(X509.java:251)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:440)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at
    weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)

    OK. Found out what it was.
    The Server Certificate Chain File name is what Verisign calls the
    Intermediate Certificate. So what you need to do is grab that cert off the
    Verisign site, paste it into a new file on your server and put that file
    name in as the path to the Chain File name.
    New question: Why the 2 names for the same thing ? The documentation could
    be a bit clearer here, as it's a very simple process that seems more
    complicated than it needs to be (IMHO).
    Brian Hall wrote:
    Perhaps a newbie question, but here goes:
    I am having trouble installing a Verisign certificate on my Weblogic 6.0
    server. I have my private key and certificate file installed properly I
    believe, but am unsure what to put in the Certificate Chain File entry
    in the console. I only have 1 certificate for this server. I have tried
    to
    a) leave it empty - in which case it uses a default file name which does
    not exist
    b) use the certificate I got from Verisign
    c) export a class 3 certificate from my browser and use that file
    In all the cases that I give it an existing file name, I get the
    following stack trace:
    weblogic.security.CipherException: Incorrect encrypted block
    at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:208)
    at
    weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:89)
    at weblogic.security.X509.verifySignature(X509.java:243)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:440)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at
    weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <Sep 5, 2001 8:18:55 AM PDT> <Alert> <WebLogicServer> <Inconsistent
    security configuration, weblogic.security.AuthenticationException:
    Incorrect encrypted block possibly incorrect
    SSLServerCertificateChainFileName set for this server certificate>
    weblogic.security.AuthenticationException: Incorrect encrypted block
    possibly incorrect SSLServerCertificateChainFileName set for this server
    certificate
    at weblogic.security.X509.verifySignature(X509.java:251)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:440)
    at
    weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:297)
    at
    weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)

  • Property Loader and Step Names in TestStand 3.5

    Hi All,
    I enheritted a job from someone else who left the project unfinished.  There are roughly 100 or more steps all together.  The Property Loader is used to load limits and comparision type into Step.Comp, Step.High.Limit, and Step.Low.Limit from a text (.txt) file.  Step names that were created by the original developer has many charaters that I never thought to include. 
    Examples are TN0500.x.zz_DMM: Meas AURID +/- via MRRM Switch, TN0400.x.zz_DMM: Meas AUR Power Path (+), TN0410.x.zz_DMM: Meas AUR Power Parallel 10 ohm, SCNR1: Close Relay for 1PPS +/-, TN0445.x.zz_DMM: Meas MRR Resistance w/ 1 Ohm, etc.
    It has space, :, /, +, -, (), etc. as part of the name.  When the Property Load is executed, it appears to load the limits and comparision type from the correct file.  But it seems to load limits from from no where (not exist in the text file) for several steps later.  They are TestStand steps that are group together or in the same sub-sequence.  Also these are limits that are group together in between the same start and and end flags in the text file.
    Does anyone know if any certain character such as :, /, ect. in the step name cause any strange behave for TestStand 3.5?
    Thanks,
    leek

    I am eliminating all special characters from the step names, and use underscore (_) to replace space.  So the new step names are one contiguous string.  TesStand is configured to generate a database report file.  Special character may have side effect in the database.
    The suspicion of special character comes in when the TestStand is executed, some steps read comparison type, high and low limits fine.  But some steps within the same group that read from the same Start and End flags in the text file appears to read the comparison type and limit values from no where.
    Specifically, I have comparison type of "GELE"  20  0, "LT"  20  10, etc.  The failed steps show that it read "LT" 0.  These are resistance measurement.  So the tests failed.  There is no "LT"  0 any where in the limit file.  There are "LT", but not 0.
    leek

  • I am new to IPhoto 9.5  and I think I missed a step. I uploaded pictures but they do not appear as an event in my library.  They are in Last imported only. How can I get them into event.

    I am new to IPhoto 9.51  and I think I missed a step when I uploaded my vacation pictures. I uploaded pictures but did not import them into the library.  They are in L\last imported only.  How can I get them into events?

    If the Photos are under 'Last Import' or 'Last N Months' then they are in the Library somewhere, just not where you are expecting them to be. We know this as both Last Import and 'Last N Months' are not places, just listings of elements in the the Library.
    The two most common reasons that they can't be found is either an incorrect date on the camera or the Sorting (View Menu -> Sort Photos - or Sort Events, as appropriate) has changed.
    Quick route to find them: Right-click on one of the images in Last Import and select 'Show Event'. This will bring you to the image in the Library.

  • Steps to develope user name generation event handler in OIM 11gR2

    Friends,
    Can you please provide me steps to develop user name generation event handler in oim 11gR2?
    Thanks,
    Chakri

    Thanks for providing the detailed steps. This is waht i was looking for.
    I will follow these steps and let you know the results.
    Thanks for your support.

  • EVENT RAISE IN PROCESS CHAIN

    Hi mates,
    How to Raise events in process chain, for example i want to raise a event like ( Data loaded in ODS) after ODS is loaded.
    thanks

    Hi,
    Look at the threads below. There are very good discussions on this topic :
    Re: Process Chains Events
    events and process chains
    Query on using EVENTS in process chains.
    Cheers,
    Kedar

  • Event raising procedure

    Dear Experts,
                I need to raise an event soon after completion of a process chain. I have "and" process at the end of the process chain. Here is what I did:
    1. SM62- create an event
    2. SM64- triggered.
                      But the problem is the connection between event and the process chain end is missing. Can I do this using ABAP program or using SM36? but how do I know the job name of the "and" process? Please correct me if I am wrong. Does the ABAP program coe in between the SM62 and SM64? is it needed? how do I use it?
    Thank you very much.

    Hi venkat
    you can rise the event using a pice of abap code with the function module "BP_EVENT_RAISE" and call this program at the end of your process chain. If you have further queries pls post.
    P.S: Please search the forum before posting. This topic is discussed several times.
    Sriram

  • Grafical overview of Job chains with dependencies by event

    Hi,
    we want to activate/monitor various process chains in APO and BW SAP systems which are dependent of each other.
    We intend to handle this with Events (wait events and raise events).
    For this reason we have created a job chain for each process chain. In the first and only step the job definition 'SAP_BW_ProcessChainRun' is started and activates the 'Technical Name of SAP BW Process Chain:
    Do we have a chance to get a graphical overview over all with event sceduling realized dependent job chains?
    Thanks
    Br
    Günter

    Hi,
    If there are dependencies between your BW Process Chains, you can use something like a master Job Chain definition in CPS to set up your dependencies between them (with failure or success outcomes, based on the step statuses). For chains that can run in parallel you can have multiple jobs (that can be other job chains) in a job chain step, and depedent jobs can be other steps that are triggered when a previous step completes / fails. Just check of course that thes jobs are your process chain jobs and not just event triggers.
    [link to SAP help for BW chains and CPS|http://help.sap.com/saphelp_nw04s/helpdata/de/bb/033b3c9f8c4b5ca34045688c6a9f7b/content.htm]

  • Execute process chain step based on value in a custom table

    HI,
    I have a requirement where i need to execute a process chain step based in the value of a field in a custom table.
    e.g. If ztable-zflag = 'X' then execute next step else stop.
    I am trying to use the decision between multiple alternatives process type, but i guess we can only use formulas in it.
    Also, i created a custom method and called it through the badi RSAR_CONNECTOR, but the same isnt working as expected.
    Would appreciate inputs from the experts.

    Hi,
    Thank you for your response.
    I followed exactly what is written in the document. But when I execute the process chain with the Decision between Multiple Alternatives process type, it fails with an exception message.
    Below is what I have done:
    Below is the code that I entered in the method (Please note that ZPC_CONTROL is the table from which I need to check the value. This table contains 2 fields: Process Chain Name and Flag. My requirement is that when a particular process chain has the flag checked, then the process chain should move ahead):
    Below is the GET method:
    Finally, here is the formula that I have written in the Decision Between Multiple Alternatives process type:
    And the event is Option 2 (which I assume will move the process chain forward if the flag is checked for the process chain ‘TEMP_TEST’)
    Please note that the flag for process chain ‘TEMP_TEST’ is checked in the table ZPC_CONTROL.
    Below is the error in the process chain:
    Please let me know where am I going wrong here. Appreciate your help.

Maybe you are looking for

  • How can I open all webpages within one window, using tabs?

    As new user I am missing the opportunity to open a link with a new tab. Firefox opens it often within a new window. Using CTRL can solve it, but I'm not used to that. I used IE and IE has a setting to open everything within a new tab, instead of in a

  • Can't view photos in c6 01

    My c6 01does not show any images.when i open the photos,it shows empty..bt i can view them by opening the memory card..i cant set a song for slide show. It simply shows "no songs",eventhough i hav several songs in my phone.

  • Is there a way to play video on the iPod Photo with color display 60 GB?

    Just curious. Can you download and play video with this model? It does about everything else. Any help that someone can offer me will be appreciated. Russ eMac   Mac OS X (10.3.9)   It's white. My life is on it. Enough said.

  • How to Resolve Parse Errors in Universe

    Dear All, Integration of Business objects with SAP BI Solutions have opened up a large visibility for the customers in viewing their organizational data in several forms. Thanks to the Integration kit for SAP Solutions. Coming to my problem. We have

  • 27inch iMac plate to raise it level with a 27inch Thunderbolt LED Display?

    Hi, I'm in the market for a new 27inch iMac and a 27inch Thunderbolt LED display as a second monitor. Looking that the specs I note that the height of the iMac is 16mm less than that of the LED display. That being said, I'm not keen to put something