Best way to find a job

Hi all

I want to find a job that is running in cron every day... What is the best way to find this job. Is there a way that we can put ourselves in the database with identification work and every time when this work is performed will automatically trace?

Thank you

Nishant Santhan wrote:
Hi all

I want to find a job that is running in cron every day... What is the best way to find this job. Is there a way that we can put ourselves in the database with identification work and every time when this work is performed will automatically trace?

Thank you

Hello

Since it's from cron, you can add a line in your script to trace it.
It generates the trace file to the location of the user dump.

alter session set sql_trace=true

Concerning
Anurag

Tags: Database

Similar Questions

  • best way to find the maximum value that is less than a specific value?

    Hello guys,.

    What is the fastest way to find a record that has value max of a field and there is a limitation to a specific value for ex:

    example 1:
    create table dummy(master_id number, detail_id number, some_value varchar2(80));
     
    insert into dummy values (1,1,'bla bla1');
    insert into dummy values (1,2,'bla bla2');
    insert into dummy values (1,3,'bla bla3');
    insert into dummy values (2,1,'bla bla4');
    insert into dummy values (2,2,'bla bla5');
    insert into dummy values (2,3,'bla bla6');
    insert into dummy values (2,4,'bla bla7');
    commit;
    I want to get:
    1 3 bla bla3
    2 4 bla bla7
    And these applications give a correct result:
    Select * 
    from   dummy d1
    where  detail_id = (select max(detail_id) from dummy d2 where d2.master_id = d1.master_id);
     
    OR next one which i prefered.
     
    Select *
    From   (Select d1.* , row_number() over(partition by master_id order by detail_id desc) r
            from   dummy d1)
    Where  r = 1;
    If these solutions are enough or is there a better way?

    Edited by: elcaro on 13.Ara.2011 04:02

    Edited by: elcaro on 14.Ara.2011 04:31

    Please try this with your new test tables:

    select m.master_id,
           m.master_data,
           max(d.id) keep (dense_rank last order by data_value, d.id) d_id,
           max(d.master_id)  keep (dense_rank last order by data_value, d.id) d_master_id,
           max(data_value) keep (dense_rank last order by data_value, d.id) d_data_value,
           max(date_data)  keep (dense_rank last order by data_value, d.id) d_date_data
    from master_dummy m, detail_dummy d
    where m.master_id=d.master_id
    and d.date_data <= to_timestamp('04012010','ddmmyyyy')
    group by m.master_id, m.master_data
    

    Published by: hm on 14.12.2011 05:18

    (I added d.id column in the order by the dense_rank. clause that could make a difference when there is more than one line with the same data_value).

  • best way to find out: string in number and &gt; 0

    What is the best way to determine whether the input string (which is surely not null) is a whole number greater than zero and positive without a comma.
    The correct values are: 1, 2,...,

    To determine if the string is a whole number, I can do this way:

    Select decode (REGEXP_INSTR ('1 ',' [^ [: digit:]]'), 0, 'NUMBER', 'NOT_NUMBER') of double;

    But I do not know how to change the regular expression so that it would fail to zero to be the first tank.

    Or is there a better way?
    SQL> with t as (select '-1' s from dual
               union all
               select '0' from dual
               union all
               select '109' from dual
               union all
               select '0109' from dual
               union all
               select '1.5' from dual)
    select t.s, case when regexp_like (s, '^[1-9]+[0-9]*$') then 'NUMBER' else 'NOT A NUMBER' end test
    from t
    /
    S    TEST
    ---- ------------
    -1   NOT A NUMBER
    0    NOT A NUMBER
    109  NUMBER
    0109 NOT A NUMBER
    1.5  NOT A NUMBER
    
    5 rows selected.
    
  • The best way to find the name of the installed application module?

    If you don't know the name of an application module, how can you find it?

    For example, if I have the name of jad file from another application, can I assume that the name of the application module is basename of the jad?  As in, a name of jad MyApp.jad would result in a module name to 'MyApp '?

    That was my assumption in a first time, and it of that he seems to be the case, most of the time, but not all.  In particular, if the jad's name:

    MyApp - 1.0.0.jad

    I found that the name of the actual module on a "BOLD" v4.6.167 running (and the 4.6.0 JDE the bold Simulator) is

    MyApp$ 2 d 1

    However, * on an another "BOLD" * (this a v4.6.0.162 running), the exact same application indicates a module name of

    $ 2 d $1 2e0 MyApp$ 2e0

    That's why I wonder if there is way to get more definitive an application module.  I scoured the API documentation and the solution isn't jumping home.

    Thoughts?

    Thanks for any help.

    Ah.  I can also see if I need to 'escape' my module names.  If this isn't the case, then I can watch an exact match in the list of module names.  If I have, it seems that I still need to look for something, "close enough" and hope for the best.

  • I can't draw a JPEG into illustrator. What is the best way to find a JPEG file? I'm trying to match a police.

    I have a JPEG raster based. I almost matched the police perfectly all except the 'a '. How to draw the simplest fonts possible. Is there a simple way to do it in Illustrator or Design? I really need help.

    Dropbox - K - Way + Logo_Sq_Cropped.ai

  • What is the best way to get the minimum or maximum of a table of numbers value?

    Let's say I have a table of numbers: [2,3,3,4,2,2,5,6,7,2]

    What is the best way to find the minimum or maximum value in the table?

    Now, just get the maximum, I'm a loop in the table and reset a variable to the value if it is greater than the existing value:

    What I ended up doing was sorting table (descending to MAX) upward for MIN and then grabbing the first element of the array. Works like a charm in very few lines of code.

    Thank you.

  • WIP Interface - the best way to move jobs next year

    I currently supports a WIP application that creates the work of ONGOING work using the wip_job_schedule_interface table.  After the charge mass WIP job runs, the task is created in the first operation.  The user asked if we can automate move the work to the next step, the user would perform all subsequent shots.  I'm new to work-in-PROGRESS, so I'll try to read up on the best way to do it.

    So far, I only found the WIP_MOVE_TXN_INTERFACE as a possibility.  My thought would be that after the task is created, and then use this interface board to make the trip.  What is the best route, or can do something during the creation of intitial interface to achieve this?

    Thank you.

    Yes, it is a good option.

    Suppose you have operations such as 10, 20, 30, 40

    and that users want you to answer operations 10 and 20...

    You can also check with them why cant they perform a move operation the queue of 10 to 40 - queue (instead of 30-queue in the queue of 40)

    Thank you

    Claire

  • I can't find this answer anywhere, what is the best way to solve my audio beats on my hp dv6t?

    I have a HP dv6t with beats. I think it's a dv6t... the tone settings look like that... but on mine I have 1 kHz, 4 kHz and then once again, instead of what the picture has...? Please tell me the best way to resolve this for the American rap/hip-hop music and the figures for the bass, def, Centre, space and focus THANKS!  if I repeated a previous post someone else please let me know where his establishment and sick, delete this post...

    -____-

  • best way to plan and get a notification for jobs plsql

    Hello

    I would like to perform a procedure on a weekly basis and want to be notified when a job fails

    which is the right way to do this?

    1 create the metric defined by the user, and call the procedure in this way
    2. create dbms_scheduler job scheduler

    the other question is when I have exceptions in proceedings plsql, how will be the agent of the grid or dbms_scheduler distinguish between success and failure?
    do I have to set a variable or to run a special command under the management of exceptions?

    Reference:
    http://docs.Oracle.com/CD/E14072_01/server.112/e10595/scheduse008.htm

    From the link,

    BEGIN
    DBMS_SCHEDULER. () ADD_JOB_EMAIL_NOTIFICATION
    job_name-online "EOD_JOB."
    recipients => "[email protected], [email protected],
    sender-online "[email protected]."
    object-online 'Scheduler Job Notification-%job_owner%.%job_name%-%event_type%',
    body => ' event_type % occurred at % event_timestamp. ERROR_MESSAGE %'.
    events => "JOB_FAILED, JOB_BROKEN, JOB_DISABLED, JOB_SCH_LIM_REACHED");
    END;
    /

    Look for events and configure accordingly

    SELECT JOB_NAME, RECIPIENT, THE USER_SCHEDULER_NOTIFICATIONS EVENT;

  • What is the "best way" to see all the 'hooks' that affect the database?

    Hi all

    I'm responsible for exporting all schemas using the data pump and then re - import the scehmas, yet once so we can reorganize the real table spaces.

    I know that this can be done using grid 12 c, but I'm not sure I want to use this feature for this task.

    Anyone who has used the feature of grids to 'keep the tables' and then re - organize them while they are still online?

    I'll have to finally make it to the PROD database and I am concerned about the "break" out of jobs, items, ect, ect.

    What is the "best way" to do a proper verification of all database objects and or work, that the export/import might pipe upward?

    As I did for example, a simple count on all objects and of course excludes "SYS and SYSTEM" and the County was in close 60 000 objects.

    How do I know all 'hooks' that are inside the database? What is the way that do you?

    Thank you

    Lady Allora.

    Hi, Justin.

    I think that's what I'm going the way of...

    Select os_username, username, OWNER, dba_audit_trail SQL_TEXT

    where rownum<>

    where username <> 'SYSTEM '.

    and also have different variations all asking questions them the same point of view...

    Modes of verification do you find useful?

    Also I'm using something like this as well.

    Select "check standard", sessionid,

    proxy_sessionid statementid, entryid, extended_timestamp, global_uid,

    username, client_id, null, os_username, userhost, os_process, terminal,

    instance_number, owner, obj_name, null, new_owner,

    new_name, action, action_name, audit_option, transactionid, returncode,

    SNA, comment_text, sql_bind, sql_text,

    obj_privilege, sys_privilege, admin_option, dealer, priv_used,.

    ses_actions, logoff_time, logoff_lread, logoff_pread, logoff_lwrite,

    logoff_dlock, session_cpu

    Of

    dba_audit_trail

    where rownum<>

    order extended_timestamp;

    Thank you

    Lady Allora.

  • What is the best way to sync contacts with a host of webdav?

    I use Thunderbird and Contacts Android as of client applications with an owncloud 8 hosted remotely. I have activated the application Contacts on Owncloud and now I want to sync the contacts between these systems. What is the best way to do it?

    I try to get sorted first Thunderbird. I tried Addressbooks Synchronizer, but currently, it gives me a message telling me that my credentials are wrong or is sitting silently, do nothing. I am aware that it is a file synchronization, the method of synchronization not saved, so it is not ideal, in any case.

    Is there a better, good timing, method I can use? I refuse to the thing that he is an unreasonable request or that no one asked before me, but I can't seem to find the answer.

    Thanks, Martin

    WebDAV my initial reaction was sogo connector.
    These guys recommend the same http://kb.mozillazine.org/Sharing_address_books

    Here http://www.sogo.nu/english/downloads/frontends.html

  • What is the best way to place an alias of the Recycle Bin on my desktop?

    Application of small trivial customization here.  Using OS X 10.11.4, what is the best way to create a trash can on the desktop?  I already tried the Terminal command to place the alias, but I'm unable to change the icon.  Given that I have with this method, how to change the folder icon image so that it represents a trash can?  I would find it useful enough to be honest.

    Thanks in advance.

    You can try to drag /System/Library/CoreServices/CoreTypes/Contents/Resources/TrashIcon.icns into the window read the information for the Alias. Upper left corner.

  • NB550D - best way to install Win 7 64-bit and 64-bit drivers

    Hello

    I improved my NB550D to Windows7 Home Premium and installed 4 GB of RAM.
    This works much better, but want to go further and make a Windows7 Ultimate _64bit_ _clean install_ in order to take full advantage of theupgrade in RAM.

    My question is: what should I do about the Toshiba drivers for 64-bit? I guess I'm going to need some?

    What is the best way to go about the upgrade - any help will be appreciated! : D

    If you need to switch to Win 7 64 bit, then you need some Win 7 64 bit drivers.
    On the European driver Toshiba page, I could find some 64-bit drivers, but it seems that not all Toshiba for Win 7 64-bit tools are released.

    Drivers for WLan or BT stack can be found here:
    http://APS2.toshiba-tro.de/WLAN/
    http://APS2.toshiba-tro.de/Bluetooth/

    Other drivers or Toshiba tools such as value added package or Face Recognition, Eco utility and others could be used with other series of portable for example by Satellite C660D or others such as L750D, L755D or C670D
    Surely you must pay attention to the integrated graphics chip, the LAN or the chipset
    Use the drivers that are released for fleas in NB550D

  • Best way to set up multiple iPhones within the family?

    We have 3 iPhones in our family, and we always use the same Apple ID for all three devices.  I understand there was recently some changes to ios, and this strategy may not be the best way to have things to put in place now.  I started seeing a strange behavior between phones, with calls/texts appear on the phones of other people.  Doing some research, it seems that perhaps we should all have separate Apple ID and then go the family share the road, so I was hoping someone could explain clearly how can I do to set this up.

    Right now I have my ID Apple we use for purchases, and it seems that we use an old account @me.com for our iCloud account... which I suppose is what has allowed us to share calendars, see all our devices to find my iPhone, etc.  My ID Apple is not the same as the address of the iCloud account.

    I work in it and myself usually as a guy... pretty strong goal, I will admit that all these Apple and iCloud IDs confuse me... so any help is appreciated.  My main goals here are:

    • Be able to see the locations of all the people of my family
    • Have no other phone calls/texts/etc
    • To share and be aware of purchasing iTunes on all devices
    • I have set up, Music Match on my Apple ID (I think...), so I don't want to lose this functionality across all devices
    • Share a family calendar that we do today (and I hope not to lose what is currently implemented)

    Thanks in advance!

    Add to this... I just looked at the option icloud on my phone and it shows my address @me.com as a principal and an address of @icloud.com as a verified.  My apple account is my gmail address, and my wife and daughter use their gmail as their primary e-mail accounts.

    So I was wondering if I should put in place of the apple for each of them using ID addresses gmail... then we would all have an identifier associated with our gmail addresses apple.  If this is the case, how to set up the account icloud?  I can leave it like that, or should I set up with my gmail account, as my apple ID?

  • HP Envy 5660: Best way to uninstall and reinstall HP Envy 5660 software?

    After the upgrade to Windows 10 there are some minor problems.  Messages suggest I uninstall the printer software and install the latest version of the driver.   What is the best way to do it?  HP print and Scan doctor gives me the option "uninstall and reinstall with the latest version of the software.  Will it do all that?  When should I remove the printer from devices and printers?

    Thank you-

    L

    Hi, you can uninstall and reinstall the drivers using hp print & scan doctor. Also you can go to control panel-> programs-> basic software find want 5660 and uninstall the same. Once uninstalled, you can donload drivers printer from the following location and you can even install.

    http://support.HP.com/us-en/drivers/selfservice/HP-envy-5660-e-all-in-one-printer-series/6809225/model/6809226#Z7_3054ICK0K8UDA0AQC11TA930C7

    Pls lemme know the status.

Maybe you are looking for