Reg: Doubt dbms_scheduler

Hi Experts,

I have the script below-

(a) Proc_2 uses CREATE_JOB to call proc_1. In this case, I don't see the exit for ' *' and ' =' in my console dbms_output. But, the good works of the Insert (insert only once).

(b) if I Uncomment RUN_JOB, there are 2 INSERTS that passes for the same data, and I can see the outputs ' *' and ' =' in my console output - once printed.

{package_x}

PROC_1 {}

I'm in (slider)

loop

dbms_output.put_line('***');

INSERT INTO table_x values (i.some_value);

dbms_output.put_line('===');

end loop;

commit;

}

   proc_2 {}

dbms_scheduler.create_job ('Task1', proc_1);

-/ / dbms_scheduler.run_job ('job1');

}

}

No idea why this phenomenon occurs? I haven't worked a lot with planners, but assumes that CREATE_JOB is called to step (a).

Please notify.

Thank you

-Nordine

(on Oracle 10.2.0.1.0)

No idea why this phenomenon occurs? I haven't worked a lot with planners, but assumes that CREATE_JOB is called to step (a).

Time to read the manual and then, isn't?

RUN_JOB performs the work in an interactive way, by default in your current session. That's why you can see DBMS_OUTPUT buffer.

-Running a task immediately. If use_current_session is TRUE the job is run the

-the user's current session. If use_current_session is set FALSE labor is running the

-background by a slave of dedicated work.

PROCEDURE run_job)

job_name IN VARCHAR2,

use_current_session IN DEFAULT BOOLEANTRUE,

event_message IN SYS. ANYDATA DEFAULT NULL);

CREATE_JOB (assuming you activate it) will submit JOB1 to be run as a background process.

If you call RUN_JOB immediately after, JOB1 still exists in the dictionary (assuming once again it is auto-dropable), and runs a second time.

Tags: Database

Similar Questions

  • Reg: Doubt in XQuery FLWOR expression

    Hello Experts,

    I have a XML like this-

    < root >

    < Reports >

    < report >

    < ReportName > ABCM < / ReportName >

    . . . other details...

    < / report >

    < report >

    < ReportName > XYZZ < / ReportName >

    . . . other details...

    < / report >

    < report >

    < ReportName > ABCXO < / ReportName >

    . . . other details...

    < / report >

    < report >

    < ReportName > COMO < / ReportName >

    .. .other details...

    < / report >

    < / Reports >

    < / root >

    I have try it like this.

    Select x1.*

    Of

    test_xml,

    XMLTABLE)

    ' for $i in Root/reports/reports

    where $i / ReportName in ('ABCM', 'ABCXO')

    Return $i"

    in passing test_xml.dx

    columns

    slno for the ordinalite,

    path of varchar2 (15) report_name 'NomRapport. "

    sequence_number number path "SequenceNumber".

    ) x 1

    ;

    My doubt is in the red part above.

    I want to go get the details only for reports whose name start with 'ABC '. Even $i / ReportName as 'ABC%' will raise an error

    ORA-19114: XPST0003 - error during parsing of the XQuery expression:

    LPX-00801: error of XQuery syntax to "like".

    2 where $i / ReportName as 'ABC% '.

    -                                    ^

    19114 00000 - "error during the analysis of the XQuery expression: %s.

    * Cause: An error occurred during parsing of the XQuery expression.

    * Action: Check the error message for possible causes.

    Error on line: column 2:30

    Please notify.

    Thank you and best regards,

    -Nordine

    (on Oracle 11.2.0.3.0)

    I gave you example ora: matches. It is easy to change it to use fn:starts - with:

    with t as)

    Select xmltype (')

    ABCM

    1

    XYZZ

    2

    ABCXO

    3

    JULIE

    4

    xmlDoc ') of double

    )

    Select x1.*

    t,.

    XMLTable)

    "' / Root/reports/reports [fn:starts - with (ReportName,"ABC")].

    passage xmldoc

    columns

    slno for the ordinalite,

    path of varchar2 (15) report_name 'NomRapport. "

    sequence_number number path "SequenceNumber".

    ) x 1

    /

    SLNO REPORT_NAME SEQUENCE_NUMBER
    ---------- --------------- ---------------
    1 ABCM                          1
    2 ABCXO 3

    SQL >

    SY.

  • Reg: Doubts on knowledge Modules

    Hi all
    Please give brief idea about knowledge modules. Please do not give links.
    KNOWLEDGE MODULES
    -------------------
    RETRO-DESIGN
    Ok.
    CKM
    IKM
    JKM
    SKM

    Thank you very much in advance,
    -Combo.

    LKM - loading
    The LKM - knowledge of loading Modules - loading (or extract data) one data to another server.
    They are named as follows:
    LKM à ()

    JKM - logging
    Installing JKM - logging of knowledge Modules - logging on a store of data in a data model.
    They are named as follows:
    JKM

    Note: Logging uses triggers and views. So, technologies that do not support these functions generally do not have an associated JKM.

    IKM - integration
    The IKM - Modules of knowledge of integration - integrate data into a staging target data server. Frequently, the staging area and space target are on the same database server. The IKM can handle the insert data options (Append) or the incremental (update), etc.
    They are named as follows:
    IKM to

    Note: The option is handled by the module often indicate more complex option taken in charge in this knowledge module. For instance, a module of incremental update (update) should also be able to handle the option append, i.e. the insertion and deletion of data in the target database...

    CKM - Check
    The CKM - knowledge Check Modules - manage data quality and cleaning, static data and data flows.
    They are named as follows:
    CKM ()

    RKM - retro-engineering
    RKM - knowledge market Module - one backwards engineering model of data stored in a particular technology. By default, the standard reverse to reverse all the information and metadata in most models. It is necessary for certain technologies (e.g. files) to use a personal setback and, therefore, an RKM. They are referred to specifically.

    SKM - Services
    SKM (Service knowledge Modules) are used to generate the code required to create data services. This code (typically Java) can be automatically compiled and deployed on a web services container.

    You can get more information about several KMs of
    http://www.Oracle.com/technology/products/Oracle-data-integrator/10.1.3/htdocs/documentation/oracledi_km_reference.PDF

    There is no escape from URL :)

  • A doubt on REG EXP

    Hi friends,

    Please specify the doubt in Reg Exp.

    Table EMP a sequel EMP_NAMEs:

    ============
    Anand
    Bala_G
    Chitra
    David_C
    Elango
    Faye
    ============

    We have a set of characters as "abcdefghijklmnopqrstuvwxyz0123456789".

    Now we must find EMP_NAMES County, whose characters (any) are not in the list of characters in the list above. In this example, the result should be 2. for example, "Bala_D" and "David_C. The query should be like:

    Declare
    v_string varchar2 (50): = "abcdefghijklmnopqrstuvwxyz0123456789";
    v_count number (6);
    Begin
    Select count (*)
    in v_count
    WCP
    where regexp_like (emp_name, v_string);

    dbms_output.put_line (v_count);

    end;

    ========================

    Thanks in advance!

    Hello

    Welcome to the forum!

    To use REGEXP_LIKE, you could say:

    WHERE     REGEXP_LIKE ( emp_name
                  , '[^abcdefghijklmnopqrstuvwxyz0123456789]'
                  )
    

    However, it will be faster not not to use regular expressions:

    WHERE   LTRIM ( emp_name
               , 'abcdefghijklmnopqrstuvwxyz0123456789'
               )          IS NOT NULL
    

    Published by: Frank Kulash on 10 October 2012 16:18
    Removed the extra single quote, after DAMorgan, below.

  • Reg: regular expr doubt-

    Hi Experts,

    I have a doubt of simple query. A play with regular expressions and assigning independent assignments.

    with t as (txt)

    (

    Select 'my name is Vanessa and a good buoy' from dual UNION ALL

    Select "nordine Bolduc" dual UNION ALL

    Select 'a' out of two

    )

    -----------------

    Select

    txt,

    REGEXP_COUNT (txt, '(\w)?', 1, 'i') count_of_chars,-< <-doubt (1)

    REGEXP_COUNT (txt,'(\w) + ', 1,' i') count_of_words,.

    WW REGEXP_COUNT (txt,'(\w) *', 1, 'i'), - < <-doubt (2)

    Length (txt) length_of_string

    t;

    TXT COUNT_OF_CHARS COUNT_OF_WORDS WW LENGTH_OF_STRING

    -------------------------------- -------------- -------------- ---------- ----------------

    my name is Vanessa and a good buoy 33 8 16 32

    ranit biswas                                 13              2          4               12

    a                                             2              1          2                1

    Doubts:

    (1) why is there a mismatch of County between columns 2 and 5 IE count_of_chars and length_of_string?

    Difference in number is 1.

    This is the beginning (^) or end ($) character, which is counted?

    Why 2) (\w)* difffer so to (\w)+ ?))

    Am I missing some basic notion? Please notify.

    Thank you and best regards,

    -Nordine

    (on Oracle 11.2.0.3.0 - Exadata)

    Hello

    nordine B wrote:

    ...
    SQL > select regexp_replace ('faaafbabaffab','([ab]*) ', '<\1>') double val;

    VAL
    -----------------------------
    <>f<>f<>f<>f<>

    Here, is: whenever a character does not match with any character in the set match ([ab] here), looks like a character before it?

    So, the first character has been verified that is 'f' because it does not, a '<>' was placed before the "f".

    What is the internal work?

    You will find perhaps clearer to imagine a pointer that can be placed before or after the characters, from before the first character after the last character and to check if the model is on the right.

    When the pointer is before the 1st character, there is 0 the or BS on his right, so replace you these 0 characters with '<>' and increments the pointer.

    When the pointer is after the 1st character, but before the 2nd character, there are 3 has the right, if you replace these 3 characters with ', and move the pointer to the end of these 3 characters.

    ...

    When the pointer is between 11 and 12 characters, there are 2 a and b to the right, if you replace these 2 characters by '' and move the position of the pointer 2 to the right.

    When the pointer is after the 13 character (in other words, the last character), there is 0 a or b to his right, so replace you these 0 characters with '<>',

  • have any doubt about dbms_scheduler...

    I use dbms_scheduler and I need to run a procedure every day...
    the idea is when I start the computer, the procedure must be executed...
    How I accomplish... This...
    Casue when I use dbms_scheduelr... If I put the calendar at 11:00. . Morning...
    then he runs at 11:00... But what happens if the server is down for 11:00 morning
    and its has started at 12: 00 a.m....
    I need the procedure to fire only 1 time per day...

    Is this possible via dbms_scheduler... Please inform

    What you can do, is start relaxing...
    You can have a table with a column date say cdate and proc_acessed_flag varchar2 (1) (N by DEFAULT)

    If sysdate = cdate and proc_accessed_flag! = Y then
    Run your procedure
    proc_acessed_flag = Y;
    END IF;

    I hope that this should help
    Thanks and greetings
    J Paul

  • Peux I installed iOS 10 from my iPad to my iPhone6 or my PowerbookPro? Or 10 doesn't automatically do that? Doubt it!

    Peux I installed iOS 10 from my iPad to my iPhone6 or my PowerbookPro?

    Or 10 doesn't automatically do that?

    Doubt it!

    If you're wondering how to install iOS 10, go to settings on your iPhone. Then click on general, then software update. Wait to check out the update, and then click Download and install at the bottom of the iOS 10 pop up.

  • How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you

    As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.

  • my PC Backup, Reg Clean Pro &amp; Research protect all piggyback on my Installer Firefox 26, for which I had to replace my Norton caveat regarding security issues.

    my PC Backup, Reg Clean Pro & Research protect ALL grafted onto my Installer Firefox 26, for which I had to replace my Norton caveat regarding security issues.

    Based on your research, I also substitute a Norton Security warning.

    I have windows 7 and complete Norton Security

    You downloaded firefox from the official site. Sometimes the software gets supplied with malware or adware, as in your case.
    In some cases, I recommend uninstalling (your software also mentioned), FF data directory deleting and then reinstalling FF of mozilla.org

  • I have a doubt... the two Firefox syn account and firefox support account are the same or not

    I have a doubt... Firefox and firefox syn account for both are the same or not change support

    Hello shivarajnaidu, not for the moment these two accounts are completely separate, although it is planned to link the two of them on behalf of persona in the foreseeable future: https://login.persona.org/about

  • I got a message saying my iCloud id has expired. The text has a link and asks me to enter bank details. Is this doubtful

    Ive got a text saying my iCloud ID has expired and its got a link and asks me to enter bank details. Is it doubtful?

    Do not reply or reply!  Sounds like a phishing attempt.

    http://www.Apple.com/legal/more-resources/phishing/

    Identify the fraudulent 'phishing' - Apple Support e-mail

  • I'm ready to buy a Apple Watch in this week... so my doubt

    I'm ready to buy a Apple Watch in this week... so my doubt and fear is if Apple Watch 2 starting soon can exchange with my product? Anyone hv any idea or much knowledge about the launch d & all please help me with your valuable answers.... plz

    < published by host >

    Apple has made no announcement about Apple Watch 2. Speculation is forbidden on the forum, so without an official announcement, nobody here could say. Given that nothing has been said, I doubt that you would benefit from an exchange of your product. They do not trade for new devices in any case for the watch. iPhones and iPads can be returned for recycling and a store credit, but that's it.

  • Doubts on my new book

    Hi all:

    I bought a new book a few days ago. I am really satisfied with this wonderful machine. After using it for a few days, I have two doubts:

    (1) the fan in my booklet is most of the time. Is this normal?
    (2) what are the specifications of memory? I want to upgrade the RAM in my machine, but I have no reference manuals for do I have to use the memory modules.

    Thank you very much

    In case it helps to... My experience with my U100 is the fan is certainly * not * "almost all the time." For example, I went about 40 minutes before to check emails, news, etc., using the power of the battery and the default 'normal' power setting, and the fan is not switched on once. (Room temperature is 23 degrees c).

    If I use it outside in the Sun very as the case becomes hot to the touch, the fan tends to come regularly.

    If it runs on my desk from the power outlet (using the parameter 'high power' by default) and I do the work of the processor hard as when you make a disk backup or editing photos, then yes the fan are quite light. But it's just like most laptops.

    If she does everything what * and * the sun shines directly on it as well, then the fan comes on saying maybe 50% or more of the time. (A silver case would have reduced the effect of solar heating - but look very smart matte black ;-).)

    How does this compare with your experience?

    To the subject of RAM, yours came with 512 MB like mine? (I guess this would be the module PA3312U - 2M 51, as described on this site - 512 MB memory PC2700 DDR SODIMM (333 MHz)).

    Before I bought the machine the provider told me that he has that one slot RAM and that in order to upgrade the memory, I would need to take the existing 512 MB and replace it with a 1 GB module. But I have not confirmed which and there is no mention of a module of 1 GB on this site. The 512 MB so far seems sufficient, but I would be interested to know if you are able to increase the RAM on your U100.

    Kind regards
    David Tong.

    PS. It occurs to me that if you feel the need to increase the RAM, then maybe you do work pretty hard machine, in this case you expect the fan to be busy.

  • Protector suite Reg Keys

    No one knows what the reg keys are created when you enable start of fingerprints? Or how to change the registry to reactivate without the Protector Suite software?

    And what is the reason for this?

  • ActiveX - Reg - led event reminder

    Hello

    I'm building a control for a Laser machine which based its controls in the ActiveX control technology. I had a program in c# that works, but I have because I wanted to change the settings and then connect it to another program Labview, I "translate".

    I start with a very simple operation:

    1. 'Start' ActiveX Server

    2. "load" a design for the laser.

    3. program of the "end".

    and then based on event (using the reg event reminder):

    If the "QueryStart" laser signal is activated by a switch, then "run" program.

    If the laser "starts", then light a led

    If laser 'ends', then light a led.

    I have problems to light a led by using the ref (LaserStartedLed) VI. I'm using as a model the Labview example: CWKnob to see a number from the button. But in this case, they use the numbers from the button, in my case are just Boolean, and I try to get data from common event.

    Can you help me with other ideas and corrections?

    Thanks in advance,


Maybe you are looking for