Oracle db JOBS concurrency

Dumb questions on oracle database jobs scheduling:
Assume we are scheduling database jobs with all default values( except what to run,when to run)
job_queue_processes=1000
1) If a job is scheduled to run every 5 minutes. Currently if the job is taking 2 minutes to run based on data, now later after few months
if the job takes 7 minutes to run. Will there be duplicate jobs running at any given time ?
2) Can the same job be running more than once at the same instance ?
Thanks

If you are using DBMS_JOB then, assuming that what you mean when you say that the job is scheduled to run every 5 minutes is that you specified an INTERVAL of sysdate + interval '5' minute when you created the job, that interval is evaluated to determine the next runtime only after the current run completes. If the job actually runs for 2 minutes, that would mean that the job actually runs every 7 minutes not every 5 minutes. If the job then starts taking 7 minutes, the job will actually run every 12 minutes.
Justin

Similar Messages

  • Urgent:How to get the Sqltext for Oracle Sumbitted Jobs in 10g

    Dear All,
    Could you help me out in sorting the below problem.
    I use to get the current running sql's with following below query in 9i.
    SELECT A.SID,B.HASH_VALUE, OSUSER, USERNAME, SQL_TEXT
    FROM V$SESSION A, V$SQLTEXT B
    WHERE B.HASH_VALUE = A.SQL_HASH_VALUE
    AND USERNAME LIKE upper('%SCHEMA%')
    ORDER BY B.HASH_VALUE, B.PIECE;
    This is will work in 10g also for user-triggered sqls,stored procedures etc.
    But when oracle submits job i'm not able find which qurery is running.
    Seems For oracle jobs in 10g for V$session contain column SQL_HASH_VALUE as Zero and hence i'm not able find the any sql's running.
    Could you please any of you help me out how to get the Sqltext for Orcle submited Jobs in 10g.
    Please revert asap as this is very urgent for me.
    Thanks in Advance
    Anil.

    Have you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
    bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
    Thanks,
    Hussein

  • How To Pass Oracle Procedure Value using Tidal Oracle Database Job Definition to Tidal Variable

    how do i pass the parameter value from an oracle database tidal job to a tidal variable? for example i have this oracle db job that is defined to execute an oracle database procedure and i need to pass the parameter value to the tidal variable.
    SQL tab:
    begin
      procedure_get_user_info(<OracleUserVariable.1>);
    end;
    thanks,
    warren

    tesmcmd is a binary that sits in your TIDAL master installation bin directory. It takes options, one of which is varset which let's you set variable values.
    So you can run a system level script ( a unix example is given below) which can set values for group variables.
    Looking at your example you need to find a way to define OracleUserVariable.1
    Where does the value for this variable come from?
    Sample variable set script:
    GROUP_FILE_VAR=`echo $2 | sed -e 's/\.xml\.pgp/\.xml/'`
    tesmcmd varset -i $1 -n GROUP_FILE_XML -v $GROUP_FILE_VAR
    XSD_FILE_VAR=`echo $2 | sed -e 's/\.xml\.pgp/\.xsd/'`
    tesmcmd varset -i $1 -n GROUP_FILE_XSD -v $XSD_FILE_VAR
    And we call the job using
    setvar.sh <JobID..p> <Group.REQUEST_FILE>
    which are overrides from a file event.

  • Can't Delete Oracle Database Job

    i created an oracle database job and some of them is only a sample test job. i need to delete them but the delete option is not enabled. it looks like all the other oracle database job that i created can't be deleted. please advise thanks.

    it does not have. i guess a dependencies should not cause the problem because other jobs that does have dependencies can be deleted. it is only the oracle database job that can't be deleted. thanks.

  • Running an Oracle Database Job as Administrator

    I have created an Oracle Database Job that executes a batch script. This batch script is supposed to creates some text files. However the batch file doesn't create the text files unless you run it as an administrator. How do I set the Oracle job so that it executes the batch script as an administrator?

    Try the usual DBA/ALL/USER prefixes for dictionary views:
    SQL> desc dba_scheduler_credentials;
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    CREDENTIAL_NAME                           NOT NULL VARCHAR2(30)
    USERNAME                                  NOT NULL VARCHAR2(64)
    DATABASE_ROLE                                      VARCHAR2(7)
    WINDOWS_DOMAIN                                     VARCHAR2(30)
    COMMENTS                                           VARCHAR2(240)
    SQL> desc all_scheduler_credentials;
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    CREDENTIAL_NAME                           NOT NULL VARCHAR2(30)
    USERNAME                                  NOT NULL VARCHAR2(64)
    DATABASE_ROLE                                      VARCHAR2(7)
    WINDOWS_DOMAIN                                     VARCHAR2(30)
    COMMENTS                                           VARCHAR2(240)
    SQL> desc user_scheduler_credentials;
    Name                                      Null?    Type
    CREDENTIAL_NAME                           NOT NULL VARCHAR2(30)
    USERNAME                                  NOT NULL VARCHAR2(64)
    DATABASE_ROLE                                      VARCHAR2(7)
    WINDOWS_DOMAIN                                     VARCHAR2(30)
    COMMENTS                                           VARCHAR2(240)
    SQL>

  • Remote oracle dba jobs (work from home)

    looking for url to find remote oracle dba job in USA?

    looking for url to find remote oracle dba job in USA?http://www.google.com

  • Capture DDL for Oracle Scheduled Jobs and job from DBMA_JOBS

    I have trying at this for while and now I am stuck...so I need some help or advice.
    I am doing a DB migration and I need to capture the DDL for all Oracle Scheduled Jobs as well as DBMS_JOBS. Anyone have a good way?
    I took a datapump export last week. Can I run a impdp and capture the DDL for this VIA the sqlfile parameter? If so, how? What would be the script for it. Something like this maybe (par file)?
    directory=DP_IMPORT
    DUMPFILE=dump1.dmp
    SCHEMAS=A,B,C...X,Y,Z
    LOGFILE=JOBS.LOG
    EXCLUDE=TABLE,INDEX,CONSTRAINT
    PARALLEL=4
    INCLUDE=JOBS
    ????

    Hello,
    It's JOB, see following table for possible options , I recommend you to read throught this thoroughly before starting.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#BGBIEDIA
    Regards

  • Junior oracle database jobs

    please who can assist me on how i can get a junior oracle database job.
    i am an oracle certified professional 9i.

    Hi,
    <br>If I believe you in your other post jobs, you have one year of experience, but one year does not make you a junior dba... despite of your OCP</br>
    <br>I advise you to search on link which give robert in the post above.</br>
    <br>Nicolas.</br>

  • Oracle APEX Jobs ?

    Hi,
    I have more than 4 1/2 years of Oracle APEX experience.
    I am looking for a new assignment.
    Does anyone know Oracle APEX Job openings anywhere in USA ?
    Thanks in advance.
    MK
    Edited by: MadhuK1 on Feb 25, 2009 11:54 AM

    MK,
    If you are currently unemployed, this might be a great time to contribute to the APEX community as a way to further your reputation within this community. I don't mean to say that you have a bad reputation, you have no reputation (from my perspective) within this community. As of now, you've only posted to this forum 6 times. This would be a great time to follow this forum (I use RSS) and answer questions in areas which you have experience. You'll help other APEX developers while at the same time establish yourself as a contributing member of a huge community. It might also be a good time to start a blog if you have a number of interesting solutions to post.
    It's pretty easy to "pad" your skills on a resume and many managers have been burned by this. If you can list a link to your blog, or to your profile on OTN where a potential employer can pre-screen your skills, IMHO that definitely sets you apart from every other person out there looking for a job. I know this isn't an immediate answer to your question and I really do hope you find a job soon, but perhaps this idea is part of a long term "employment security" strategy.
    Good luck,
    Tyler

  • Oracle-related job site

    There used to be a link in OTN homepage to an Oracle site that gathered all the Oracle-related jobs across the country into one searchable database. It was really good. I haven't been back in about 5 months. Now I cannot find it, not even with the main oracle.com search engine.
    What happened to it? What did you replace it with, if anything?

    Are you referring to Skills Marketplace? See:
    http://gemini.seeker.oracle.com/seeker.epl?rel_code=1
    The link is located in the "Services" section of the OTN home page navigation menu.

  • How to Trace oracle Host Type concurrent program

    How to Trace oracle Host Type concurrent program
    I have enabled trace in concurrent definition screen but couldnt get the trace file
    the Host script executes multiple plsql packages for interfaces and sent emails

    Hi,
    How to Trace oracle Host Type concurrent programSee (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]) -- 4. How does one enable trace for a concurrent program?
    I have enabled trace in concurrent definition screen but couldnt get the trace fileDo you mean the trace file is not generated?
    the Host script executes multiple plsql packages for interfaces and sent emailsIs this a seeded or custom concurrent program?
    Thanks,
    Hussein

  • Oracle schedule jobs

    Hi Gurus,
    I need to learn more about Oracle schedule jobs, how they are configured, how they are created/deleted/stopped/started etc. Do you have some articles/books etc.
    Also very importantly we are migrating from 9i to 11g. And we have some schedule jobs in 9i. When the DB is imported from 9i to 11g, what additional steps do I need to do to schedule them Ok in the new DB.
    Thanks
    Amitava.

    hi
      you can use dbms_job package to creating,deleting and stopping job  and please refer to below link
    http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_job.htm
    yasin

  • Loading XML File in Oracle Tables through Concurrent Request

    I am posting a working program which reads an XML File and loads in Oracle database table through Concurrent Request. Input parameter for this program is file name. I have added directory name ASPEN_DIR as /interface/inbound in ALL_DIRECTORIES table.
    /* This is a sample program reading an input xml file and loads data in Oracle Database table
    This program is executed through concurrent request and it has an input file name
    it also creates a log for reading and inserting records from file and into a table
    CREATE OR REPLACE PACKAGE BODY CBAP_ACCRUENT_XML_PKG AS
    PROCEDURE read_emp_xml_file (errbuf out varchar2,
    retcode out number,
    in_filename in varchar2)
    is
    my_dir varchar2(10) := 'ASPEN_DIR';
    l_bfile BFILE;
    l_clob CLOB;
    l_parser dbms_xmlparser.Parser;
    l_doc dbms_xmldom.DOMDocument;
    l_nl dbms_xmldom.DOMNodeList;
    l_n dbms_xmldom.DOMNode;
    l_temp VARCHAR2(1000);
    v_empno number(10);
    v_ename varchar2(50);
    v_job varchar2(30);
    v_mgr number(10);
    v_hiredate date;
    v_sal number(10);
    v_comm number(10);
    src_csid NUMBER := NLS_CHARSET_ID('UTF8');
    v_read NUMBER(5);
    v_insert NUMBER(5);
    dest_offset INTEGER := 1;
    src_offset INTEGER := 1;
    lang_context INTEGER := dbms_lob.default_lang_ctx;
    warning INTEGER;
    BEGIN
    v_read := 0;
    v_insert := 0;
    l_bfile := BFileName(my_dir, in_filename);
    dbms_lob.createtemporary(l_clob, cache=>FALSE);
    dbms_lob.open(l_bfile, dbms_lob.lob_readonly);
    dbms_lob.loadclobfromfile(l_clob, l_bfile, dbms_lob.getlength(l_bfile), dest_offset,src_offset, src_csid, lang_context, warning);
    dbms_lob.close(l_bfile);
    -- make sure implicit date conversions are performed correctly
    dbms_session.set_nls('NLS_DATE_FORMAT','''DD/MM/RR HH24:MI:SS''');
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are no longer needed.
    dbms_lob.freetemporary(l_clob);
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document using the XPATH syntax.
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/EMPLOYEES/EMP');
    -- Loop through the list and create a new record in a tble collection
    -- for each record.
    FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, cur_emp);
    v_read := v_read + 1;
    -- Use XPATH syntax to assign values to he elements of the collection.
    dbms_xslprocessor.valueOf(l_n,'EMPNO/text()',v_empno);
    dbms_xslprocessor.valueOf(l_n,'ENAME/text()',v_ename);
    dbms_xslprocessor.valueOf(l_n,'JOB/text()',v_job);
    dbms_xslprocessor.valueOf(l_n,'MGR/text()',v_mgr);
    dbms_xslprocessor.valueOf(l_n,'HIREDATE/text()',v_hiredate);
    dbms_xslprocessor.valueOf(l_n,'SAL/text()',v_sal);
    dbms_xslprocessor.valueOf(l_n,'COMM/text()',v_comm);
    insert into emp(empno,ename,job,mgr,hiredate,sal,comm)
    values(v_empno,v_ename,v_job,v_mgr,v_hiredate,v_sal,v_comm);
    v_insert := v_insert + 1;
    END LOOP;
    -- Free any resources associated with the document now it
    -- is no longer needed.
    dbms_xmldom.freeDocument(l_doc);
    --remove file to another directory
    commit;
    fnd_file.put_line(fnd_file.LOG,'Number of Records Read : '||v_read);
    fnd_file.put_line(fnd_file.LOG,'Number of Records Insert : '||v_insert);
    EXCEPTION
    WHEN OTHERS THEN
    dbms_lob.freetemporary(l_clob);
    dbms_xmlparser.freeParser(l_parser);
    dbms_xmldom.freeDocument(l_doc);
    retcode := sqlcode;
    ERRBUF := sqlerrm;
    ROLLBACK;
    END read_emp_xml_file;
    END;
    <?xml version="1.0" ?>
    - <EMPLOYEES>
    - <EMP>
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17-DEC-80</HIREDATE>
    <SAL>800</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>20-FEB-81</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>22-FEB-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>500</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7566</EMPNO>
    <ENAME>JONES</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>02-APR-81</HIREDATE>
    <SAL>2975</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7654</EMPNO>
    <ENAME>MARTIN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>28-SEP-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>1400</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7698</EMPNO>
    <ENAME>BLAKE</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>01-MAY-81</HIREDATE>
    <SAL>2850</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>09-JUN-81</HIREDATE>
    <SAL>2450</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7788</EMPNO>
    <ENAME>SCOTT</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>19-APR-87</HIREDATE>
    <SAL>3000</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    <HIREDATE>17-NOV-81</HIREDATE>
    <SAL>5000</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7844</EMPNO>
    <ENAME>TURNER</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>08-SEP-81</HIREDATE>
    <SAL>1500</SAL>
    <COMM>0</COMM>
    </EMP>
    - <EMP>
    <EMPNO>7876</EMPNO>
    <ENAME>ADAMS</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7788</MGR>
    <HIREDATE>23-MAY-87</HIREDATE>
    <SAL>1100</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7900</EMPNO>
    <ENAME>JAMES</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7698</MGR>
    <HIREDATE>03-DEC-81</HIREDATE>
    <SAL>950</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7902</EMPNO>
    <ENAME>FORD</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>03-DEC-81</HIREDATE>
    <SAL>3000</SAL>
    </EMP>
    - <EMP>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7782</MGR>
    <HIREDATE>23-JAN-82</HIREDATE>
    <SAL>1300</SAL>
    </EMP>
    </EMPLOYEES>

    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/toc.htm
    Take a look at Examples 4-8 and 4-9. Even thought this is 10g doc code should work on 9.2.4 or later

  • Oracle ebs multiple concurrent, locks, user cannot connect to app.

    We had experienced outage yesterday afternoon, Oracle EBS app users cannot log into the app. We noticed very high load 70-90% in Grid control, and multiple blocks, a rman job still running and one stats job running. However seems after killing a dbms_scheduler job of app report, we fixed the issue.
    However this morning, we still see cpu load of 70% and on grid control concurrent locks and transactions all in huge red.
    I would like all Gurus here help me to start how to diagnose in Oracle ebs.
    I would like to start from very beginning.
    Such as links I can read, what to look at inside the database? on hosts?
    Thanks a bunch.

    I think those sessions we killed are some inactive sessions hanging around since Feb.  I am new to this company, so I am not really sure how those jobs started.  but seems they scheduled through window control m, something like that.
    anyway,
    Last night I digged into grid control, and moved the history data to the date/time of the incident.
    and I found out a lot sql tuning advisors during the time being, and several queries showed up in the sql tuning advisor and it required tuning. explain plans shows they are doing quite a lot full table scans for some big tables . I will add a screenshot soon.
    So I wonder if those are the main causes.
    Data SourceSnapshot (34294)Capture TimeNov 3, 2013 10:00:44 AM (UTC-06:00)
    TABLE ACCESS FULL
    AR.HZ_CUST_ACCOUNTS67427.971K01000:0:1SEL$335DD26A / CUST_ACCT@SEL$3
    TABLE ACCESS FULL
    AR.HZ_PARTIES81,59440.473K01700:0:1SEL$335DD26A / PARTY@SEL$3
    SORT AGGREGATE
    1211400
    0:0:0SEL$4
    TABLE ACCESS BY INDEX ROWID
    CLC.RESERVATION_ROOMS113420400:0:1SEL$4 / X@SEL$4
    INDEX RANGE SCAN
    CLC.RES_ID10300300:0:1SEL$4 / X@SEL$4
    INDEX RANGE SCAN
    CLC.RES_ID133180300:0:1SEL$5 / X@SEL$5
    HASH UNIQUE
    29221.998K021,28110:4:16SEL$6
    FILTER
    TABLE ACCESS FULLCLC.RESERVATION_ROOMS161,138,95015.207M04,14810:0:50SEL$6 / RESERVATION_ROOMS@SEL$6
    TABLE ACCESS FULL
    CLC.RESERVATION_HEADERS17944,34344.129M08,12610:1:38SEL$6 / RESERVATION_HEADERS@SEL$6
    INDEX RANGE SCAN
    CLC.RESERVATION_LOGS_N1192
    I would like to know how come there were sql tuning advisors running during times other than 22pm as scheduled auto job. So is that means whenever there is a issue query, the sql tuning advisor automatically kick in? 
    The advisor basically said need to rewrite the query to take advantage of the indice.
    Thanks,

  • In which folder oracle print quote concurrent program save pdf files

    Hi,
    IN oracle print quote functionality, where is the path of the directory where are files are saved.I have checked with so many documents but not found the solution
    I have checked the aso profile option for setting directory path also but the profile option is not available in our EBS

    plz re-check $APPLCSF/$APPLOUT
    what is
    cd $APPLCSF/$APPLOUT
    pwdis it blank for you?
    did you set env before check $APPLCSF/$APPLOUT ?
    also check $APPLPTMP
    concurrent request output $APPLCSF/$APPLOUT and log $APPLCSF/$APPLLOG
    How To Change The Log And Output Location For Concurrent Managers? [ID 872766.1]
    Concurrent Processing - Concurrent Manager Generic Platform Questions and Answers [ID 105133.1]
    On A Multi-node / RAC Installation Is $APPLCSF And $APPLPTMP An NFS Mount Point [ID 371896.1]
    Concurrent Processing - Concurrent Requests Fail with FDPSTP failed due to ORA-20100: File o0002712.tmp creation for FND_FILE [ID 148262.1]
    Reports Cache Directory in Oracle E-Business R12 is Growing Rapidly [ID 859255.1]
    Knowledge Management: How To Find Output File For Knowledge Management Solution Export Program [ID 292922.1]

Maybe you are looking for

  • How do I move an iCloud email address to a different Apple ID

    I have been previously using an iCloud email address with an Apple ID which is my parents. I now have a new device (new iPad for Christmas ) and am using my own Apple ID. I want to transfer the email address I previously had to my new ID so I own it,

  • Recover database from archive log: Time based recovery

    Hi, Could you pelase help regarding the following: I have power outage in my machine running oracle 9i on Solaris OS 9 Oracle is mounted but failed to open Once it is started showing the error message SQL> startup; ORACLE instance started. Total Syst

  • Huge File Size

    I have used After Effects for 3 years to make videos and for school. I don't try to make them VFX heavy, I just use muzzle flares, blood hits, and explosion elements. My videos are 1-2 minutes in length and they are just about 8 gb. I have looked for

  • Final Cut Server for audio assets?

    Hi all, Anyone have thoughts on using Final Cut Server for managing audio projects? I can see games programmers also needing it big time but can't see much info on how FC Studio handles audio assets. As for managing all material for an album... If an

  • Mouse or trackpad automatically scrolls down the screen

    Hello everyone. My mouse, without moving in the screen, automatically scrolls down the window I've got selected, don't know why. During this problem if I try to scroll upwards, it'll scroll down again, therefore I can't read websites, etc. It happens