Submited job

hi,
How can i find the sid of a submitted job? I can see the job running in dba_scheduler_jobs view but can't figure out on how to relate in v$session. Also, I would like to know the OS process id of this particular job.
appreciate any input.
Thanks,

gonzroman wrote:
Thanks for the reply. I have a follow-up question. The submitted job creates another job which really does the work. It's somewhat there's a parent job and child created and would like to find the session of the child job.
I can see the parent which is great but would like to see what the child job is doing.
Thanks.Well,
You should go with DBMS_APPLICATION_INFO package: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_appinf.htm#CHECEIEB
Your child job will call something: lets say procedure which is called MYPROC1. That procedure will look like something like below:
create or replace procedure myproc1
as
begin
DBMS_APPLICATION_INFO.SET_MODULE( module_name => 'myproc1', action_name => 'myproc1 is called by child job');
--- procedure code ....
DBMS_APPLICATION_INFO.SET_MODULE( module_name => ' ', action_name => ' ');
end;What will happen here: When your child job starts execution, corresponding record in V$SESSION can be identified filtering on ACTION field.:
select * from v$session where action like '%myproc1 is called by child job%'As an alternative method, you can use: DBMS_APPLICATION_INFO.SET_CLIENT_INFO('I am child job which is created by parent job') then filter CLIENT_INFO field in $SESSION;
Hope you catch my idea.
Teymur Hajiyev
Oracle 10g Certified Master
http://teymur-hajiyev.blogspot.com
http://dba.az

Similar Messages

  • Problem in submitting job through Pl/sql

    Hi,
    I have a procedure with parameters as shown below.
    Pkg1.Proc1(indate date, innum1 number, innum2 number)
    I am trying to execute this procedure by submitting jobs through another procedure and passing the parameters dynamically. I found the jobs are not getting submitted. Please see the code inside the procedure as below.
    dbms_job.submit(var1,'BEGIN pkg1.Proc1(''' || i_date||''','|| i_num1||','||i_num2||'); END;',SYSDATE);
    I have tried as following also
    dbms_job.submit(var1,'BEGIN pkg1.Proc1(''''' || i_date||''''','|| i_num1||','||i_num2||'); END;',SYSDATE);
    both time the procedure is running fine but the job is not seen as submitted.
    when I am executing it as follows in sql * plus, it is executing fine.
    dbms_job.submit(var1,'BEGIN pkg1.Proc1(''15-aug-2007'',1,2); END;',SYSDATE);
    Please let me know if I need to change anything in my code.
    Regards,
    Poulose

    Hi Pls find the portion below.
    process_id is of type number and having value 1001. v_business_dt is a date variable. and i_module is a number with value 1.
    DBMS_JOB.ISUBMIT(CF_CRM.process_id,'BEGIN DBK_CRM_PROCESS_TRACKING.RUN_PROC(''' || v_business_dt||''','|| i_module||','||CF_CRM.process_id||'); END;',SYSDATE);

  • Submitting jobs

    I have problems submitting jobs, im- or export, from within the enterprise manager. (Error-Msg: VNI-2015)
    This is my configuration:
    * OS: W2K
    * DB/EMS: 9.2.0.1
    * User <Computer-Name>\OraDBA with "logon as batchjob" privilege
    * User OraDBA as Administrator-account in EMS with preferred credentials set to the above mentioned OS-User and the DB-User "System"
    Any idea what is wrong?

    There are multiple ways to setup a virtual cluster. Some people prefer to use one less core then the total number of cores and others use half the number of cores. Either way If you only have two cores it is recommended to only use one.

  • Qmaster stopps Maya rendering after the first submitted job

    I tried to render some jobs with qmaster 2 and maya 8. Everything worked fine until the first submitted job is rendered. It seems that qmaster can't quit this first job after rendering and so the batch render stopped. Any ideas?

    I tried to render some jobs with qmaster 2 and maya 8. Everything worked fine until the first submitted job is rendered. It seems that qmaster can't quit this first job after rendering and so the batch render stopped. Any ideas?

  • Submitting job in OEM

    Hi,
    When I am submit job from OEM it directly moves to History
    section and displays the status "Failed".
    If I do not use the parameter 'job_queue_processes' the
    submitted jobs are directly move to active section. But they are
    never executed.
    Thanks,
    Tarek

    hello
    here are some steps if u want to run a job in console for
    Oracle8.1.7 on Windows2000
    1 Set The KEY
    set the registry value OSAUTH_PREFIX_DOMAIN in
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID to FALSE.
    If there is no specified key there, create one.
    2 . Using Oracle Administration Assistant for Windows NT
    Use this tool to add a user on machine which u’ll login
    as when doing any job like backup,exp,imp.(i've used internal)
    now u’ll login as internal on windows .
    3. GIVE RIGHT – Logon as a Batch Job
    To give the windows user the right – logon as a batch job ,
    use control panel->administrative tools->local security
    Now, the internal user must be given the right specified.
    4. Set Preferred Credentials
    Set the preferred credentials in the Console for
    the node as with any user with sysdba privileges like
    internal/oracle.(when u've given internal the logon as a batch
    job
    set preferred credentials to internal .
    5. Log in as internal on windows and take backup.
    for backup,u need internal as either backup operator
    or administrator
    still if u've some problem,
    mail me at [email protected]
    regards.

  • Error when submitting job to Qmaster cluster

    Hi all,
    I'm new to working with the Qmaster cluster but I created a cluster (at least I think I did it right) using the distributed processing apple document from the help menu. Everything looks right...I have an active cluster with two machines. What is a little weird is that the Cluster that I can choose in Compressor when submitting a job has a format like "ThisComputer.RScomputer.local:50411" instead of the name of the cluster I made (I called it Zeus Cluster).
    So, I choose this long cluster name and submit the job but I get this error:
    Error: An internal error occurred: NSException raised by 'NSPortTimeoutException', reason = '[NSPortCoder sendBeforeTime:sendReplyPort:] timed out'.
    Has anyone seen this error. What could I be doing wrong? Apple Qadministrator has the Cluster active and both machines are sharing fine.
    Any help would be appreciated. Thank you!

    Have you looked in the /Library/Logs/Qmaster for any specific detail? (use /applications/utilities/console.app )
    there's usually some detail in there that will give you an insight. If you see smething in there of significance, by all means post it here so w can examine and suggest to you.
    I have had his before, and in my case is related to the cluster setup I had.

  • Submitting job in background with lock mechanism

    Hi,
    I'm obtaining a lock before submitting the job and releasing it after submitting...as explained below
    I want to know whether the lock will get released immediately after submitting the job or it will be released only after the finish of the job. Can you explain with any documentation if possible...
    CALL FUNCTION 'ENQUEUE_EXXXX'
    SUBMIT rvv50r10c   USING SELECTION-SET w_variant
                           TO SAP-SPOOL
                           SPOOL PARAMETERS print_parameters
                           WITHOUT SPOOL DYNPRO
                           VIA JOB name NUMBER number
                          AND RETURN.
    CALL FUNCTION 'DEQUEUE_EXXXX'

    Hi,
    If you are locking any database table object then the lock will be removed only after the call function 'DEQUEUE_EXXXXX".
    Regards,
    Shahu

  • Problem while submitting job from Forms

    Hi,
    i'm submitting a job in when button pressed trigger. This job will call a Backend Package(one procedure). But the job id is created in the backend but the job is not running. but if i run the job with DBMS_job.Run(jobid) from form itself after submitting the job, its working fine. Do we need to maintain any parameter to run job automatically?
    Thanks in advance.

    if there are four parameters passed then one of them is contradicting ur conditional statements. First check and debug those parameters if they consist the required value. also post ur code for further scrutiny.
    zaibi.

  • Problems with in/out points when submitting jobs via Terminal/command-line

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

  • Issue in submitting job using dbms_job() package

    Hello all,
    I need a st procedure to run on every 06:00 AM of the morning , kindly give me the syntax for submitting this job
    Also give me the syntax for submitting this job to run for every 10 minutes.
    Regards
    Karthik Dinakaran

    SQL>  select sysdate from dual;
    SYSDATE
    22-dec-2005 12:40:02
    SQL>  select sysdate + 17.39/24, (sysdate + 17.39/24) + 10/60/24 from dual;
    SYSDATE+17.39/24     (SYSDATE+17.39/24)+1
    23-dec-2005 06:03:29 23-dec-2005 06:13:29

  • Submited Jobs not showing up in Batch monitor

    I just got done with a reinstall of compressor and Qmaster with some positive results. I can now start a quickcluster just fine, and have it show up in compressor and submit to it. When i click the submit button, The batch doesn't show up in batch monitor. Even when i try submitting it "My Computer" it still fails to show up in batch monitor.
    Anyone have any ideas?

    Batch monitor was set to list completed jobs. I'm an idiot.

  • Hide ui/pw when submitting job via FORMS HOST cmd

    I have a oracle procedure that returns the run_command string. Ex . ‘sqlplus ui/pwd @report.sql’. The run_command string returned by the procedure is run via the HOST command in oracle Forms.
    HOST(run_command) submits the job but it exposes the ui and pa that is used in the run_command string. On UNIX, if I do ps –ef | grep sqlplus after the job is submitted by the HOST command, I can see the ui/pwd in the run_command.
    How can I submit the job via HOST command without exposing the ui/pwd ?
    Thanks
    GP

    Thanks for the reply.
    The users have individual userid and passwords and I will have to pass it to the shell script that runs the report.
    That will be exposed by ps -ef.
    I can't create a single query only id because I have some reports that do inserts and updates.
    Is there a way I can hide the userid and password that I am passing to the shell script.
    Thanks.

  • "This Computer" missing after submitting jobs

    When submitting a job through Compressor, i can no longer choose "This Computer" from the cluster menu. I can only choose my created cluster.
    I have used Compressor Repair and canceled and reset jobs in System Preferences.

    Give this a try:
    http://www.digitalrebellion.com/compressor_repair.htm
    Tim Bonvallet wrote:
    Compressor is part of a 990 dollar suite and is now completely UNUSABLE. I need a working compressor, this issue needs to be addressed immediately. Removing the entire Final Cut Pro suite from my computer and reinstalling it again is NOT a solution. This is some sort of registry script error that can be easily fixed with an update.
    It sounds like you think Apple monitors this forum. They do not - this is a user to user forum. None of us are Apple employees.
    However, you may notify Apple by filing a bug report here:
    http://bugreport.apple.com (requires free developer registration)
    P.S. OS X doesn't have a registry so it is definitely not related to that.

  • SQL works from SQL*Plus command line but not as a DBMS_JOB submitted job

    Oracle 10g 10.2
    Got a procedure which does not run correctly as an Oracle job but runs fine as a SQL script.
    There are no Oracle errors (or any errors) of any kind when the job does not run fine – it just does not update any rows. But when run as a SQL script – the same way it is run as a job – then the rows are updated.
    Any ideas?

    Good stuff....
    See my replies to some of the questions in italics
    a) Different NLS settings => The job uses the NLS settings of the session that created it. If you create it with some tool like TOAD, you might have a different environment than with sql*plus. Runs good in TOAD and SQL*Plus using the command-line feature - just 'acts funky' when submitted.
    b) Interval issue. Are you sure the job was running? Isn't still running? The job runs successfully - even logs a successful message in our logging table.
    c) User/priviledge issue. Sometimes a job needs direct grants whereus a procedure can be called with priviledges granted through roles. Don't know - need to check this out.
    d) Transaction handling / Error Handling. The job runs into some error, but the error is supressed, because of bad exception handling. What is the value in the BROKEN column, when you do: select * from user_jobs; I would think that, since the errors are logged into a side table, an error would be found there. However, no errors are found. The BROKEN column is 'N'.

  • Prevent the scheduler from submitting jobs after recovering from a crash

    Hi,
    I have a situation where I have set up secific jobs to run at 11:00 pm every night. These jobs should only run at this time and not during the day. These jobs typically run for about an hour. If my DBMS server is down at 11:00 pm, and when the server is subsequently brought back up the next day, i see that these jobs are submitted by the scheduler. How can I prevent this?
    Thanks,
    SV

    Hi,
    The documented way of doing this is to set the schedule_limit attribute of the job. This sets a max interval after a scheduled job will not be run (just rescheduled).
    However, you may run into a bug (#6331177) which prevents schedule_limit from taking effect after database downtime for a recurring job. As a possible workaround a job can query its own REQ_START_DATE and ACTUAL_START_DATE from the all_scheduler_running_jobs view and immediately exit if the difference exceeds some time limit (as it would in the case of database downtime).
    Hope this helps,
    Ravi.

Maybe you are looking for

  • Creating a new document

    I created a new help project and I want to divide the project into different doc files: Ihave my general project "tas" but Iwant to have beside my Tas.doc in this project also tasintro.doc and tasbasic.doc. When i want to create these new documents I

  • Strange "camera shutter" sound on form submit and screensaver activation

    My MBP has recently starting making a sound that I can only liken to a camera shutter when my screen saver activates. It's not the sound that the photo booth shutter makes, but is strange "shhhh-TINK" sound that makes me worry about the future of my

  • TS1702 ibooks will not download

    My ibooks will not download

  • New Mac Book Pro Retina (late 2013) won't wake

    Bought new model of MBP with Maverick  pre installed and every so often I open lid from being in sleep mode and nothing happens, I then press the power button and still nothing happens, I repeat pressing the power button for a few minutes then sudden

  • Where to get javax package?

    HI, Can any one tell me from where i can get javax package ? I want javax.resource.spi.* javax.resource. packages.. i went to java.sun.com but was not able to find it. thanks Fariha