difference between deletion archive using until the time and completed before

Hello

Can someone please let me know what is the difference between the following commands below.

DELETE ARCHIVELOG UNTIL ' SYSDATE - 1';

and

DELETE ARCHIVELOG ALL COMPLETED BEFORE ' SYSDATE - 1';

Thank you

The UNTIL clause specifies a Recovery Point.

The COMPLETED clause indicates the time of creation of the journal.

So until ' SYSDATE-1' specifies ' all archivelogs needed to recover the database from 24 hours ago. " If it is 09:00 28 - Jun and ArchiveLog Seq # 1001 was created 08:45 27 - Jun and Seq # 1002 was created at 09:10 27 - Jun, then Seq #1002 is required for recovery as at 09:00 27 - Jun.

Hemant K Collette

Tags: Database

Similar Questions

  • What is the difference between count (1) selection of the tab and select count (*) tab;

    What is the difference between count (1) selection of the tab and select count (*) tab;

    994122 wrote:

    Hello

    SQL > set timing on

    SQL > select count (*) of the emp

    2 where deptno = 30;

    COUNT (*)

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

    6

    Elapsed time: 00:00:00.01

    SQL > select count (1) of the emp

    2 * where deptno = 30

    SQL > /.

    COUNT (1)

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

    6

    Elapsed time: 00:00:00.01

    See that both give the same time

    Do you really think the 100th's of a second it takes 6 rows from counting will truly representative of the difference it takes actually?

    Such a small data set cannot possibly show no difference to these larger units of time (in the calculation of terms where we have millions of instructions per second in lieu)

    As the link to the FAQ provided in the response of Anton (first response on this thread) Watch, count (1) and count (*) are essentially the same, except that count (1) actually get re-written by the query re - write the step of the optimization to make it count (*).

    Generally 'count (*)' makes more sense language, because it reads like "count" while "count (1)" reads as "count we ', which does not have as much good sense when you actually count all.

  • Restore database HRCS90 question: until THE TIME which was before the RESETLOGS

    People,


    Hello. On December 2, 2013, I backed up my instance of database with RMAN with Oracle Linux 5 HRCS90. the backup of the database to run correctly. 2 files 'full_0doqhbqc_13_1' and 'full_0eoqhce9_14_1' are saved in the /backup_database_instance_HRCS90 directory.


    Because my HRCS90 database has been damaged, I need to restore the database to HRCS90 until the time 02-Dec_13 when it is saved. I have run the commands below:

    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    Its release: complete the restore to February 11, 14.

    SQL > alter drop database datafile offline 121;

    Its release: alter database.

    SQL > alter database open resetlogs;

    Its release: alter database.

    SQL > shutdown immediate;

    SQL > startup;

    Its release: mounted database. Open database.


    So I can execute select * TableName off HRCS90 the database successfully.

    Because the HRCS90 database is corrupted again, I need to restore it again on December 2, 2013. I have run the commands below:

    In the directory/u01/oradata/HRSC90 /:

    [user@linux HRCS90] $ rm *.dbf

    RMAN > Connect target;
    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    Its output:

    RMAN-03002: failure of the set command
    RMAN-20207: until the RECOVERY WINDOW, which was before the RESETLOGS.

    My questions are:

    Is that mean 'UNTIL TIME' before the RESETLOGS? How to solve the problem to restore the HRCS90 database?


    Thanks in advance.

    you have run this on your system.correct source?

    Try

    (5) name of the element: / home/user/OracleDB_Home/dbs/c-612194578-20131202-00

    Check the included file: cash SNA: cash 1947113 time: 01-DEC-13

    This backup must be available on the local system.

    HTH
    Anuj

  • Differences between expdp, impdp using sys as sysdba and system users

    Hello group,

    I import a complete dump generated with impdp file by using the system account, but I have a doupt, what is the difference between export or import the full dump using system and sys as sysdba?

    Are there items that are not considered or something like that?

    Thank you very much

    PD: I use Oracle version 10.2.0.5
    S.O. Aix 6.1

    You should not use sysdba for import - always use SYSTEM - see the first note here - http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#i1012504

    HTH
    Srini

  • I use 8 Captivate. Here's my problem: I have a slide that has narration in the background.  I want to stay on the slide until the story is complete, no matter if the user steh bittun click Next and allow it to

    I use 8 Captivate. Here's my problem: I have a slide that has narration in the background.  I want to inform the user about this slide until the story is complete, before moving on to the next slide. Any ideas?

    Something like this: Force first discovered - Captivate 8 - Captivate blog ?

  • The difference between delete and insert transactions

    Hello

    How can I tell the difference between delete and insert in a process using Apex 5.0

    Best regards

    OraDev wrote:

    In a presentation table when you click the "Delete" button checked the database update triggers trigger I do not know why

    Do you really mean 'database trigger', or are you referring to a process of page APEX? Ensure that the tabular form MRU delete process conditional on the button DELETE and that the MRU update process is conditional on the "SAVE" button.

  • I can't find one of my files that I use all the time

    I can't find one of my files that I use all the time, apparently didn't get it back when the computer turns off?  How can I find document?

    Hello

    1. where did you save the file?

    2 did you observe in the location where you saved the file?

    3. did you remove the file by accident?

    I suggest you to check in the recyclebin folder if you have deleted the file by mistake:

    http://Windows.Microsoft.com/en-us/Windows-Vista/recover-files-from-the-Recycle-Bin

    Check if that helps.

  • Hola! no self if alguien quiera Yes a bit of Asesoría, are as bastante confundido estoy... Queria long!  the difference existing between el PHOTOSHOP CC led package of FOTOGRAFIA y APPLICATION UNICA? that difference between ellos hay? are the same app

    Hola! no self if alguien quiera Yes a bit of Asesoría, are as bastante confundido estoy... Queria long!  the difference existing between el PHOTOSHOP CC led package of FOTOGRAFIA y APPLICATION UNICA? that difference between ellos hay? are the same cc photoshop application? because is offers mas barata in el FOTOGRAFIA package?

    photoshop and lightroom in the Pack of photographers are 100% identical as individual photoshop and lightroom different subscriptions (for much less cost).

    So yes, it is foolish to subscribe to only one photoshop or lightroom.  even if you're only going to use one of them, you should subscribe to the plan of photographers.

  • Using AS2 to get the time and change according to result

    I need to make any changes to a flash projector which was built recently that changes of what is played according to the time of day. It is used to announce the breakfast or lunch/dinner for a restaurant. Previously we had put in place so that the time change happened at 5 in the morning and 10 o'clock in the morning. The code is below. The restaurant wants to change the time switch to be now at the half. I know how to extract the hours and minutes to do.

    This is the code that I've been using

    var currentHours:Date = new Date();
    var currentMin:Date = new Date();

    timeInHours = currentHours.getHours ();
    timeInMin = currentMin.getMinutes ();

    var today: Date = new Date();
    shownow = now.setMilliseconds;


    If (timeInHours > 4 & & timeInHours < 11) {}
    breakfast_mc._visible = true;
    breakfast_mc.play ();
    dinner_mc._visible = false;
    dinner_mc.stop() ;
    / / trace (timeInHours);
    } else {}
    breakfast_mc._visible = false;
    breakfast_mc.stop ();
    dinner_mc._visible = true;
    dinner_mc.play() ;
    / / trace (timeInHours);
    }
    trace (timeInHours);
    trace (timeInMin);
    Stop();
    Clips of film of breakfast and dinner have this code in them, as well as at the end of each cycle, it checks the time and switches.
    I found this code on Flash Kit, and wanted to try to change it, my hope, was so that he could generate a delay of 24 hours 1604 or 1029 I could then do a comparison <>/ with, but this function adds the numbers then 16:15 = 31 and 12:19 = 31 also. Does anyone have any suggestions on how I can do this
    ? I need time to change at 05:00 and 10:30.  There is a possibility that they will want to extend out to include the day of the week as well. Now I just need the fractional hours for works well.
    function checkTime()
    {
    dat var = new Date() ;
    var h = dat.getHours (); / / 24-hour format is already...
    mn var = dat.getMinutes ();
    / turn to the last limit of 15 minutes /
    //mn = Math.floor (minutes/15) * 15;

    / / OPTIONAL - add zeros to the hour and minute
    if (hr < 10)
    hr = "0" + hr;
    if (mn < 10)
    mn = "0" + mn; / / remove these last 4 lines if the zeros not significant not due not

    retour hr + mn ;
    }

    usage example:
    time = checkTime();
    trace (time);
    Any suggestions are welcome. Thanks in advance!

    If you want to do something when the user time is between 05:00 and 10:30, use:

    var d: Date = new Date();

    If ((d.getHours () > = 5 & d.getHours ()))<10) ||(d.gethours()=""><>

    No matter what

    }

  • What happened to the button on the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? I use it all the time and it is not on FF4.

    What happened to the button on the left end of the address bar which allow you to see the pages you had been so that you don't have to click the back button several times? You can look at the drop down window of pages and just choose whatever you want. I use it all the time and it is not on FF4. I want to go back to the old FF.

    If you right click on your back button, or click and hold down the mouse button, it will display the list. (I prefer a click-right, because sometimes my fingers slide when I try to click and hold)

  • What is the difference between win 7 pro DSP OEI DVD and the OEM or normal Full pack?

    1. What is the difference between win 7 pro DSP OEI DVD and the pack OEM or normal Full we learned normally?
    2. does DSP OEI DVD comes with CD of instalation?

    These versions are for small integrators (DSP = 'partners in enforcement service'), which usually contain a single Windows (1pk = 32-bit or 64-bit, not both as in commercial versions) and an OEM preinstallation kit to preconfigure Windows and/or integrate additional tools (OEI = 'Installation of Original equipment' or 'Integration organizational environment'). They have the same limitations that versions OEM = license is tied to the computer where the operating system has been installed initially and not transferable in case of death of the machine. "192GO should be enough for everyone." (of the miniseries "Next generation jokes")

  • RunTimeException when you use the timer and TimerTask.

    In the switchNext() method, it changes an image and some text in a Vertical management. When I run the application, I get a RunTimeException. However, when I have not used the timer and tested the method switchNext() with just a button method worked perfectly. How can I make it work with timer or another class that he will call every 30 seconds?

     time = new Timer();
    TimerTask task = new TimerTask()
    {
    
    public void run()
    {
    
        switchNext();
    }
    };
    time.schedule(task, 10000);
    

    It would be useful to know what Exception you actually get.

    However, I think that it is indeed related to the fact IllegalStateException the TimerTask is running in the "bottom", and you try to update your User Interface.

    If you change the code as follows, it will work the method on the event Thread and so he has access to update the user interface.

    public void run()
    {
    UiApplication.getUiApplicat () .invokeLater (new Runnable()

    public void run() {}
    switchNext();

    }});
    }

    You can find more information on the event thread here:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

  • What is the difference between creative Cloud ENT 'SN EDFUL V15' and 'SN EDFUL N15'?

    What is the difference between creative Cloud ENT 'SN EDFUL V15' and 'SN EDFUL N15'?

    Moving to this discussion on the Adobe Creative Cloud forum.

    ESI valladolid, please contact our support team directly to contact customer service for more details on the plans available to your organization creative cloud.

  • by default the currency used at the time of the creation of opportunity

    Hello

    How default currency used at the time of the creation of the opportunity. At the time conversion of lead it is set by default according to the currency of lead, but when creating a new it does not work very well.

    Thank you
    Olivier

    Dominique,
    You can default currency by using the function of join field at the level of the currency of the opportunity.
    Choose the currency of the user.
    Default post that he will record it as the currency of the USER.
    I hope this helps.

    Thank you and best regards.,.
    Chaouche

  • Why my ipod touch 5 turn on she used that happened last night I went on netflix for like 20 minutes then I closed it and then I'm gone on it again 5 minutes later, he worked later I hung on it and then I just wanted to check the time and it dint work

    I went to netflix for like 20 minutes, and then I closed and then I'm gone on it again 5 minutes later, he worked later I hung up it and then I just wanted to check the time and it dint work I can't see the screen I have tried pressing the home button and the stopcock one its does not work how to fix it

    Try:

    - iOS: do not respond or does not light

    -Also try DFU mode recovery mode post-test

    How to put iPod touch / iPhone in DFU "Karthik doodles."

    -If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.

    -Try a different cable

    -Try on another computer

    S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.

    Shop Apple Store - Genius Bar

Maybe you are looking for