find the interval of time between the generation of logs archives of v$ log_history

Hi all:

I want to find the interval of generation of newspaper archives of v$ log_history,.

SEQUENCE # FIRST_TIME
11349 10/17/2009 12:08:58 AM
11350 10/17/2009 12:13:10 AM
11351 10/17/2009 12:15:46 AM
11352 10/17/2009 12:18:32 AM
11353 10/17/2009 12:21:32 AM
11354 10/17/2009 12:23:06 AM
11355 10/17/2009 12:24:59 AM
11356 10/17/2009 12:26:10 AM
11357 10/17/2009 12:27:18 AM
11358 10/17/2009 12:34:34 AM
11359 10/17/2009 12:37:43 AM
11360 10/17/2009 12:48:36 AM
11361 10/17/2009 12:52:10 AM

Add a column to display the time difference (in minutes) between 11350 and 11349. It is actually 5 minutes, even between 11351 and 11350 nearly 2 minutes.

Kind regards

Hassan
select sequence#,
       to_char(first_time, 'DD/MM/YYYY HH:MI:SS AM'),
       (first_time - lag(first_time) over (order by first_time)) * (24*60) as mins
from v$log_history

Tags: Database

Similar Questions

  • What is the interval of time between the virtual machine Linux and ESXi host synchronization?

    I have ESX5.0 with a centos6 installed on this linux virtual machine.

    After the installation of vmware for Linux virtual machine tools, I activated the time synchronization between the virtual machine linux and ESXi host through vmware-toolbox-cmd.

    I wonder what is the interval of time between the virtual machine linux and ESXi host synchronization? If I quickly time OS system, when the OS system time will sync back to the ESXi host?

    According to http://www.vmware.com/files/pdf/techpaper/Timekeeping-In-VirtualMachines.pdf:

    By default, the demon checks the guest only once per minute operating system clock.

    However, depending on whether the guest is behind or in front of the result is different. So, please read the section "periodic synchronization" (at least) in the document mentioned above.

    André

  • Where can I find the MSN Gaming Zone Archive on my Windows 7 (x 64) DVD?

    Where can I find the MSN Gaming Zone Archive on my Windows 7 (x 64) DVD? Apparently, I lost the file with these default sets of M$.

    Hello
     
     
    MSN games is not included in the Windows 7 DVD.
    You can follow the link below to download the games msn from the MSN Web site.
    http://zone.MSN.com/en-us/home
     
    If you are looking for Windows 7 built-in games and impossible to find, it is a possibility that the games is disabled on your computer.
    See the article below for assistance.
    Where are my games?
    http://Windows.Microsoft.com/en-us/Windows7/where-are-my-games
    For more information see the articles below:
    Use the Games folder
    http://Windows.Microsoft.com/en-us/Windows7/working-with-the-Games-folder
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Invalid application - cannot find the config.xml file archive

    I'm new to webworks development... I created a sample config.xml and index.html in the folder Helloworld and made a Zip file...

    Then using ripple I packed up the app and the. Cod files are generated correctly...

    But I was not able to pack and sign using ripple, if I had the signature keys added to the bin folder of the SDK correctly...

    So I tried bbwp command line argument to achieve the same... But it has ended up with the error "Invalid application archive - cannot find the file config.xml.

    What is the problem that I do with the archieve file?

    How to use eclipse for development for the Webworks 2.3.1.5 sdk?

    My guess is that you have a HelloWorld inside your zip file and the file config.xml and index.html are inside this folder. The config.xml file must be in the root and must reference the index.html file, wherever it is in the zip directory structure.

  • Not found for the sequence of logs archived

    I am very new in Golden Gate

    I have test input of command-line ok, she use sqldeveloper data insertion error.
    Help me.

    connect GG:

    2011-09-27 11:04:53 GGS ERROR 500 Oracle GoldenGate Capture for Oracle, lhremd1.prm: did not find journal archived for wire sequence 22 1 under destinations by default SQL < SELECT name OF gv$ archived_log WHERE the sequence # =: ora_seq_no AND thread # =: ora_thread AND resetlogs_id =: ora_resetlog_id AND archived = "YES" AND remove = ' n >, error recovery redo the sequence file name 22 archived = 1, use_alternate = 0Not able to establish the initial position of the sequence 22, rba 6918672.


    Thanks in advance!

    Edited by: 882918 Sep 26, 2011 20:24

    You are running in archivelog mode? If so, find the log file and restore it on the file system (and probably those after him).

    Or, if you're into CARS? See the notes 1186935.1.

    Alternatively, modify the clip.
    Oracle ERROR Golden Gate OGG-00446 found journal archived for next...

  • SQL to determine the generation of newspaper archived daily

    Someone has to calculate reliably sql daily generation of archived newspapers? I have an older script that uses v$ archived_log, but after seeing him recently generate some great numbers, I started doing some research and discovered that v$ archived_log can have several lines of a given log file. After reading the reference manual, I suspect that it is probably not new to many of you. After reviewing data and tweaking the script, I'm still not comfortable, I have something that I can count. I searched the data dictionary for a view of the replacement dictionary, but can't find anything that seemed better than v$ archived_log. appreciate your thoughts, thank you.

    Hello

    Why not just use the distinct values of the sequence and size? Ignore targets if they do not count.

    HTH

    Joerg

  • Problem to find the LUT processing log menu drop-down.

    I installed the utility LUT and can see utility LUT in the effects pane. I downloaded a free sample LUT of the Falcon and saved it on my desktop. It is in the cube, MGA and forms of 3DL.

    How can I get the LUT file is available from FCPX. I check the journal dealing with lower menu in "info" and it lists blackmagic, canon and sony but my READ of the Falcon does not appear.

    Any ideas?

    Get you in the "LUT Utility" filter.  Apply it to an element, in the Inspector, it will allow you to load an external file of LUT.

  • Help to find the journal vpxd - Windows 2008 64-bit file?

    Hi all

    Just us re - build the server on that we vCenter.   I tried to find the files vpdx.log, but have not been able to.  In the users folder there is no

    ALLUSERSPROFILE folder.

    I've done the Show hidden in the folder and search options.

    Am I missing something else?

    Thank you.

    check

    c:\ProgramData\VMware\VMware VirtualCenter\Logs
    
  • How to translate the text of 'log out' (Apex 5.0)

    Hello

    Wanted for the last few hours how to translate "correctly" the text "logout" in the new universal theme.   (Look like this in html: span class = "t-button-label" Log Out/Span)

    Also a few trivial questions.   Is it possible to directly change a page navigation?  4.2.6 and slot, you simply found the wire of Ariane/nav entries/lists on the right-hand side, double clicked on it and you could change it.   Now, I have to browse the shared components and find it there.   Been using this great product for HtmlDB, still getting used to the new interface, just work out a few kinks.

    Thank you

    Oli

    Hi Oli,

    Cannot find the text hardcoded 'Log Out' in the universal theme. This text should normally be part of the Navigation bar. Can take you a look at->-> list of Navigation bar Navigation, shared components / Navigation bar classic if you see this text. Otherwise, please download your application at apex.oracle.com and I can take a look.

    Is it possible to directly change a page navigation?

    No page designer. The reasoning was that the Navigation bar is very static and not changed on a daily basis and it is not related to a particular page. That's why we wanted to remove the Page Designer to remove the complexity of the display of the amount of data.

    Concerning

    Patrick

    Member of the APEX development team

  • Size of the huge log archive

    I have 5 redo log files. Each is 4 GB. There are huge transactions (1800-2000 per second). So we have every hour 5-6 journal of the switches. So all the hours of archives journal 20 to 24 GB and daily increase in size, the size 480 GB.

    I had planned to take an incremental backup of level 1 and level 0 per week daily with the option delete log archiving 'sysdate-1 '.

    But we have little storage if, it is impossible to the sphere 480 GB per day and take backup of these 480 GB for 7 days (480 * 7) GB = 4 TB. How can I correct this situation? Help, please.

    1 disk is cheap
    2 the onus on those who "Advanced" application
    3 you can use Log Miner to check what is happening.

    You need to this address with application developers and/or clients and/or buy the disc.
    There are no other solutions.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

    Published by: sybrand_b on July 16, 2012 11:11

  • Find the time delay between two signals

    In this code, I sent you a pulse in the acquisition of data using labview. The pulse triggers a thermistor to another analog input input data.

    I want to find the delay between the time of the positive edge of the switch, and the exact time of the DAQ begins to take in the signal of the temperature probe.

    I enclose the code below.

    Thank you.

    Hey,.

    Here is a link to some information about the sources of clock on the FPGA.

    http://digital.NI.com/public.nsf/allkb/94CE338CC80ACF008625791400516BAA?OpenDocument

    Hope this helps

  • How to find the time between two channels of entry in the data acquisition card or pci 6036

    Hello

    I read a lot-related posts on the simultaneous measurement of two input voltage of similar channels in map data acquisition. I know that the best material is "simultaneous measurments of the Series DAQ cards" but I only pci data acquisition card 6036 and I try to understand what is the time between the reading of the two channels . This period is always constant? (must it rely on a voltage (amplitude, frequency, waveform..). I send the sine wave (s) to the two channels and read the values of V, if they read the same value, the difference should always be zero but I get-0,002 to 0.002 Volt difference (I must find a way to convert it in time). A screenshot of my VI is attached. I wonder how I can accurately measure the time delay between the channel.

    I am open to any suggestion, my final goal to read exactly two channels at the same time ((ou connaître le délai exact donc je peux correspondre les données correspondantes étant donné le temps de retard))

    Hi spinup,

    better you should post your question in the forum of LabVIEW, LabWindows/CVI is used

    Good luck.

  • Find the area between the axe of waveform and time

    Hello.

    I have acquired a signal to 1ms rate. I recorded in a .lvm file, and now I want to calculate the area between the axe of waveform and time. So, it's a classic integral.

    So, I create a .vi separated with a module for reading measurement, but I don't know which is the right module of integration, in this case. I tried all the modules to integrate to find the area, but no good result.

    PS: I also want to display this area, hasurate, somehow, but it's secondary.

    Any idea?

    For the first part, we should look at your code and data.

    The second use the "Fill" option available for the plot which will fill in the specify box.

    Ben

  • How to find the difference between two dates in time except Sunday

    Hi all

    I have a table, as shown below.
    SQL> select * from test;
    
    TR_ID                                              CREATE_TIME                                                                       CODE
    -------------------------------------------------- --------------------------------------------------------------------------- ----------
    S12341                                             05-JUN-12 12.20.52.403000 AM                                                      1003
    S12342                                             11-JUN-12 11.15.33.182000 AM                                                      1003
    S12342                                             07-JUN-12 12.00.36.573000 PM                                                      1002
    S12343                                             20-JUN-12 12.34.37.102000 AM                                                      1003
    S12343                                             15-JUN-12 11.34.27.141000 PM                                                      1002
    S12344                                             01-JUL-12 10.01.06.657000 PM                                                      1002
    S12344                                             06-JUL-12 12.01.04.188000 AM                                                      1003
    S12341                                             31-MAY-12 11.20.38.529000 PM                                                      1002
    I would like to know the difference between same tr_ids create_time, which should give out in hours except Sunday.

    For example:

    TR_ID: S12344
    1002_Create_time: July 1, 12 PM 10.01.06.657000 (i.e. Sunday)
    1003_Create_time: 12.01.04.188000 AM 6 July 12

    1002 create time is 22:00 Sunday.

    If the query must exclude only the hours of Sunday which is 10 p.m. to Monday 00 h which is 2 Hrs.

    I tried the sub query after doing a search on this forum but I am not getting the desired output.
    SELECT count(*) FROM (SELECT ROWNUM RNUM,tr_id,create_time CT_1002 FROM test c WHERE c.tr_id='S12344' and 
    ROWNUM <= (select (cast(a.create_time as date)-cast((select create_time from test b where a.tr_id=b.tr_id and code=1002) as date)) 
    from test a where a.code=1003 and a.tr_id=c.tr_id) + 1) d 
    WHERE to_char(cast((select create_time from test e where e.tr_id=d.tr_id and code=1002) as date) + RNUM - 1, 'DY') NOT IN('SUN');
    Need help to get the desired o/p

    Hello

    If I unederstand the problem correctly, that's what you want:

    WITH       got_extrema     AS
    (
         SELECT       tr_id
         ,       CAST (MIN (create_time) AS DATE)     AS start_date
         ,       CAST (MAX (create_time) AS DATE)     AS end_date
         FROM       test
         GROUP BY  tr_id
    )
    SELECT       tr_id
    ,       start_date, end_date          -- If wanted
    ,       24 * ( ( ( TRUNC (end_date,   'IW')          -- Count -1 day for every full week
                        - TRUNC (start_date, 'IW')
                 )
               / -7
                  )
                + LEAST ( end_date               -- If end_date is a Sunday
                            , TRUNC (end_date, 'IW') + 6     -- consider it 00:00:00 on Sunday
                     )
                - CASE
                          WHEN  start_date >= TRUNC (start_date, 'IW') + 6     -- If start_date is a Sunday
                   THEN  TRUNC (start_date, 'IW') + 6               -- consider it 00:00:00 Sunday
                   ELSE  start_date
                      END
                )     AS total_hours
    FROM      got_extrema
    ;
    

    I guess that you don't need to worry about fractions of a second. As you did in the code you have posted, I am to convert the TIMESTAMP to date values, because of DATE arithmetic and functions are so much better than what is available for timestamps.

    Basically, it's just to find the number of days between start_date and end_date and multiplying by 24, with these twists:
    (a) 1 day is deducted for each week between start_date and end_date
    (b) if End_date is a Sunday, none of the end_date himself hours are counted
    (c) If start_date is a Sunday, then all the start_date himself hours are counted. Why these hours should be counted? Because 1 day is already being deducted for the week which includes start_date, which contains only this Sunday.

    TRUNC (dt, 'IW') is the beginning of the ISO week containing dt; in other words, 00:00:00 the or before the dt last Monday. This is not the NLS parameters.

    Of course, I can't test without some sample data and the exact results you want from these data. You may need a little something more If start_date and end_date are both on the same Sunday.
    Whenever you have a problem, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) of all of the tables involved.
    Also post the results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.
    Always tell what version of Oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

  • Find the difference between two date and time

    Hi friends,

    I wanted to find the difference between two date and time, but my qury is slightest error "invalid number."

    select sql_step_num,proc_name,run_seqno,start_date,end_date,(to_char(start_date,'HH24-MI-SS') - to_char(end_date,'HH24-MI-SS') ) as ed  
    from eval.EVAL_RUNTIME_DETAILS
    where trunc(start_date) = trunc(sysdate) 
    order by sql_step_num;

    You try to get the feel between two char strings.
    And more difference between two dates gives a NUMBER of days.
    Try this:

    select sql_step_num,proc_name,run_seqno,start_date,end_date,numtodsinterval(end_date-start_date,'DAY') as ed
    from eval.EVAL_RUNTIME_DETAILS
    where trunc(start_date) = trunc(sysdate)
    order by sql_step_num;
    

Maybe you are looking for