How to find lines that are inserted in the last minutes n?

Hi all
I have a log table where, whenever a warning is issued, a new row is added. The table contains a field with the sysdate when the warning was issued.
I would need to collect all the warnings in the last 30 minutes (supposed) and send a mail to the administrator. Looking at some FAQ I have explained this:

Select * from PROCEDURE_LOGS p where ((p.DATE_LOG-sysdate) *-1440) < 30

However, it does not do anything.
Can someone help me correct this statement?
Thank you very much
Frank

Assuming that the field is a DATE field and time information are included in this field to date. Then your application should work.

I would write it differently, but the logic is the same.

select *
from procedure_logs p
where (sysdate - p.date_log) * 24 * 60 <= 30
;

Perhaps the information is not yet committed, so that you don't see it in your additional session?

Look at your data and consider wheather this record must be included or not.

Tags: Database

Similar Questions

  • How to find computers that are not on the domain in an Active Directory forest.

    Hello

    I'm looking for a tool that can scan a subnet and give me the list of computers that are not on the field, but connected to the network. My company has recently spent a lot of users of the task force to the area, but there is a population of users who are unwilling to join the domain and still using the local administrator to log on to the computer.

    These computers do not meet the domain policies applied and causing many problems with the network and other systems on the field.

    Help, please.

    concerning

    Syed M. Uzair

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Beginner: how to find patches that are needed?

    I have an Oracle DB or a number of (previously installed by a person) from 10.1 to 11.1.

    I would like to patch some of them if necessary, but I don't know how to find patches are needed?

    TNX

    Hello

    The following methods will help to know what are the patches installed at your HOME of ORACLE

    (1) lsinv-bugs_fixed opatch

    This option will give the description of the patches installed as below, but the opatch version should be greater than
    10.2.0.4.5 for version 10.2 ORACLE_HOMEs

    $ lsinv-bugs_fixed opatch

    8576156 8833280 kills Feb 09 16:54:18 MST 2010 PSU 10.2.0.4.3 DATABASE (INCLUDES CPUJUL2009)
    8833280 8833280 kills Feb 09 16:54:18 MST 2010 PSU 10.2.0.4.4 DATABASE (INCLUDES CPUOCT2009)

    (2) select substr(action_time,1,30) action_time,
    substr(ID,1,10) id,
    substr action (action, 1, 10),
    version of substr (version, 1, 8),
    substr(BUNDLE_SERIES,1,6) bundle,
    substr (Comments, 1, 20) comments
    history of registry of $;

    This option works when installing the posts were made for this patch

    Thank you
    Krishna

  • How to remove objects that are created with the new

    Hello

    I'm having a problem create a behavior or a script to remove the new sprites created in the channels. I have a behavior script that creates new sprites using the following (Simplified) script:

    First of all, a Beginsprite creates a gChannel_list and assigns a value of gChannel from the beginning. pSprite is used to set the sprite that is clickon in the mousedown .

    on Beginsprite me
    gChannel_List =]
    gChannel = 70
    pSprite = sprite (Spritenum)
    end


    In the mousedown gChannel is incremented and the newly created channel is added to the gChannel_list.

    on Mousedown me

    gChannel = gChannel + 1
    theChannel = addat (gChannel_List, gChannel)
    Members = pSprite.member

    ........

    (gChannel) channel .makeScriptedSprite (Member, point (80,160))
    Sprite (gChannel) .width = thememberW
    Sprite (gChannel) .height = thememberH
    Sprite (gChannel) .rotation = theMemberR
    Sprite (gChannel) .moveablesprite = 1
    Sprite (gChannel) .encre = 36
    ........

    etc.

    After the creation of several sprites based on the gChannel, globals include, for example, are returned.

    -Global Variables-
    gChannel_List = [71,72,73,74]
    gChannel = 74


    My problem is that I cannot delete these created gchannel sprites with a command of jargon. Remove them from the list, for example, using deletat(gChannel,1), does nothing to remove them from the scene (they disappear from the list). And while I can view their attributes such as width [n = getat (gChannel_list, x); put .width sprite (n)], nothing seems to relate to the removal of these gchannel sprites.

    How do we?

    Hope this is enough information. If this isn't the case, please let me know. I can give you everything that you could possibly need. Help, please.

    Stem




    You used "makeScriptedSprite()" to add a sprite channel. Try to use the reverse: "removeScriptedSprite()."

  • How to stop objects that are not on the scene that appears in a browser?

    I have text scrolling in my ActionScript 3.0 code and implies the full text of scrolling in from outside the area of the visible scene on the stage, then he again.

    However, when I view it in a web browser all that is outside of the scene is also displayed? How to stop browser view objects outside the scene and only show items when they're onstage?

    Thank you very much.

    Rhys

    If you want just a balance left - right, then just wrap the Flash content in a

    tag and then set it to center alignment.

  • How to block emails that are not in the list of contacts

    I have several e-mail everyday on sexualy explicit materia.  I put in my email account to block those who are not in the list of contacts, so they'll JUNK, but I need to check my JUNK e-mail folder frequently if there is something in there for someone that I have to answer.

    With some of the emails that I can "unsubscribe", but there must be a way to disable these ugly e-mail.

    Any suggestions?

    Margin

    I have several e-mail everyday on sexualy explicit materia.  I put in my email account to block those who are not in the list of contacts, so they'll JUNK, but I need to check my JUNK e-mail folder frequently if there is something in there for someone that I have to answer.

    With some of the emails that I can "unsubscribe", but there must be a way to disable these ugly e-mail.

    Any suggestions?

    Stopping the churn.  If they are unscrupulous - that simply confirms your e-mail address is * well * and it will be resold to new lists.

    Specifically, add them to your list of mail JUNK when you can, if you doubt, you will always receive an email, just to be sure, their entire domain.

    The only other suggestion is to get an other email address for your personal & business needs and start using it.  Make sure that you register for what whatever randomly with this specific e-mail address (control which give you out.)  A * lot * of junk mail occurs usually because someone came to something random at some point and then the address obtained on a 'list' that was happening around / sold.

  • How will I know that I am in the last frame of the clip or sequence first pro?

    Hi I'm new to first pro and do not seem to find a way to know if I'm in the last frame of a clip in the control screen and anyway for monitoring time online. We know what the marker is the 'end of the clip? My previous program showed a line of jagged at the end of the frame.

    Thank you

    If you click on the key on the program monitor and select settings-trap settings the settings box gives you the opportunity to 'end of indicators media/sequence.

  • How to find files that are slowing down my computer

    I saw crazy files but I don't remember where I saw them.

    I saw crazy files but I don't remember where I saw them.

    Generally files, in itself, is not slowing down your computer.  Just to have files on your hard disk (because it is not completely filled) means very little - this is when things run / run they can cause problems.

    How to perform a clean boot for a problem in Windows 8, Windows 7, or Windows Vista

    http://support.Microsoft.com/kb/929135/en-us

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know using Google (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

  • How to find names that are overlapping times

    Hello:

    I have a table that contains names and their appeal. I need to know which of these names overlap time.

    Name | StartTime | End time
    A | 26/03/2011 12:33:16 | 26/03/2011 12:40:10
    A | 26/03/2011 12:41:28 | 26/03/2011 12:43:19
    A | 26/03/2011 12:42:28 | 26/03/2011 12:47:50
    B | 26/03/2011-22:22:28 | 26/03/2011-22:50:10
    B | 26/03/2011-22:49:28 | 26/03/2011-22:53:50
    B | 26/03/2011-22:50:28 | 26/03/2011-22:59:50
    B | 26/03/2011-22:59:58 | 26/03/2011-23:10:50
    C | 26/03/2011-23:05:58 | 26/03/2011-23:10:50
    C | 26/03/2011-23:40:58 | 26/03/2011-23:50:50

    I need those names who have several calls and a single call starts before the end of another call. If someone has four calls and two of these overlapping (A has two overlapping and B has three overlapping), this name comes also in my list as below:

    Name | Overlapping_Count
    A | 1
    B | 2

    Can someone help me please?

    Thank you/Razin

    Etbin wrote:
    Maybe

    NOP:

    SQL> select  *
      2    from  tbl
      3  /
    
    N STARTTIME              ENDTIME
    - ---------------------- ----------------------
    A 26/03/2011 12:33:16 pm 26/03/2011 12:40:10 pm
    A 26/03/2011 12:41:28 pm 26/03/2011 12:43:19 pm
    A 26/03/2011 12:42:28 pm 26/03/2011 12:47:50 pm
    B 26/03/2011 10:22:28 pm 26/03/2011 10:50:10 pm
    B 26/03/2011 10:49:28 pm 26/03/2011 10:53:50 pm
    B 26/03/2011 10:50:28 pm 26/03/2011 10:59:50 pm
    B 26/03/2011 10:59:58 pm 26/03/2011 11:10:50 pm
    C 26/03/2011 11:05:58 pm 26/03/2011 11:10:50 pm
    C 26/03/2011 11:40:58 pm 26/03/2011 11:50:50 pm
    
    9 rows selected.
    
    SQL> select name,count(*) overlapping_count
      2    from (select x.name,greatest(x.starttime,y.starttime) low_ovlp,least(x.endtime,y.endtime) high_ovlp
      3            from tbl x,tbl y
      4           where x.name = y.name
      5             and greatest(x.starttime,y.starttime) < least(x.endtime,y.endtime)
      6             and x.starttime != y.starttime
      7             and x.endtime != y.endtime
      8         )
      9   group by name
     10  /
    
    N OVERLAPPING_COUNT
    - -----------------
    A                 2
    B                 4
    
    SQL> 
    

    It is simpler and requires no self-join:

    with t as (
               select  name,
                       case
                         when max(endtime) over(partition by name order by starttime,endtime rows between unbounded preceding and 1 preceding) > starttime then 0
                         else 1
                       end start_of_group
                 from  tbl
              )
    select  name,
            count(*) overlapping_count
      from  t
      where start_of_group = 0
      group by name
      order by name
    /
    
    N OVERLAPPING_COUNT
    - -----------------
    A                 1
    B                 2
    
    SQL> 
    

    SY.

  • How to remove photos that are NOT on the photo stream

    I downloaded pictures from my camera to the computer, then on my iPhone.

    I cannot delete them now.

    The only way is to delete them from my computer I DON'T want to do.  I want to just delete from my iPhone because they take up far too much space.

    Help please.

    Hello Dolek,

    Welcome to Apple Support communities.

    It sounds, you want to know how to remove the pictures that have been synchronized to your iPhone, but you want to make sure that these photos are not deleted from your PC. Try to take a glance at the article below, the link that describes the process of synchronization of photos to a folder on your PC to your iPhone, and remove photos from the selected folder or choose a different folder that you want to synchronize the photos since.

    Sync photos from your computer to your device via iTunes - Apple Support iOS

    So long.

  • check a result using lines that are different to the result

    Hello

    If anyone can help, I have Writer's block!

    I created a VI to create lines of limit for a test.  The VI creates a limit minimum and MAXIMUM by a user entered a frequency, the minimum and maximum limits by using a table.  The example I have is:

    Frequency Min Max

    2 MHz 0-10

    3 0-10 MHz

    3 MHz 0-12

    4 MHz 0-12

    This creates a line on my chart XY.

    When the test has been done, I want the result to check for stored limits.  So far I've posted online time result and limits on the XY graph, but I have trouble controlling the result that the table of results is different.  The results of the example that I have are:

    Result of frequency

    1 MHz - 9

    1.5 MHz - 11

    2 MHz - 12

    2.5 MHz - 11

    3 MHz - 12

    3.5 MHz - 13

    4 MHz - 13

    So in order to visually check the result I skip the first 2 frequencies and check others.  Y at - it a simple way to interpolate the berries to compare or will I have to wrap around the test frequency checking to check the limit or not.  An idea that I had been to calculate the increase in frequency of test and then recreated the table row limit to match the table of results.

    Any help would be appreciated!

    Try this it does all of the verification graphic design limit and anything that you want I think.

  • How to close programs that are running in the background and what services are safe cut

    under windows xp with sp3, I hear something running in the background, but no photo with her, how I close it, also how do you know which windows services are safe to clog then start and stop can be a little faster?

    For performance tweaks that I would recommend looking at http://www.tweakxp.com/performance_tweaks.aspx they have a great compilation of good settings you can do and more are step by step, so even the most novice person can perform these tasks. Insofar as something running in the background of his always possible, you have some kind of malware running I want to run a scan for these emissions.

  • How to print tiles that are smaller than the paper size

    I want to tile print a large image in several sheets of 11 x 17 using print tiling, but I want that the area of the image 10 x 10. In other words, I want to split my image into tiles of 10 x 10 print on paper 11 x 17. I'll shoot the paper after printing. I tried customizing the imageable area in the print settings, but the image 10 x 10 ends by stretched in the sheet 11 x 17. Is there a better way to do it?

    You can configure the work plans of 10 x 10 and have them throughout your work exactly how you want to print them.

  • How to remove programs that are not in the folder "programs". Especially must delete Incredimail and Blekko other programs.

    I would like to uninstall programs Blekko like Incredimail and others.

    Hello JEFoulke,

    In addition to information from SC Tom, you can try the uninstall from the FixIt Solution Center:
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    If this does not help, you can search the Internet for programs uninstall 3rd party software.

    Let us know if that helps.

    Thank you!

  • How to reject records that are incompatible with the definition ODI 11 g data store?

    Buenas tardes.

    Como puedo girls los looking than any stupid fulfil the definition of length of atributos as hay in el data do not store? For example, in a process of integration llega a cuyo campo has a length of 50 characters first_name registro, pero base datos solo supports 40 characters. ODI in este falla y being the run y yo Necesito UN than rechace este registro y con continue the run. How I can control this event?

    Of photos muchas gracias.

    Hello

    Ah yes, I forgot about it.

    You can fool ODI by changing the logical length of the column in the data store in the model.

    In this way the I$ table will have a length of more than time and you won't have the problem.

    Kind regards

    JeromeFr

    PS: Your English is above the average on this forum, don't you worry. Most of us is not English-speaking.

Maybe you are looking for