Difference between redo logfiles, Undo Tablespace, Archive log data file

Can some please highlight the difference between Undo and Redo Logs
Also why we need to separate the archive logs when the recovery log data can be written directly in data files...

Help you will be highly appreciated...

Hello

Ed gave you a very good answer.

Rememeber database files are online and they are written to by DBWR process. So we have the database files, redo log files and archive logs.
In order to avoid all the crawl log when you perform a recovery, database performs control points that summarize the State of the database. This operation of control point provides a shortcut to the recovery. At the checkpoint, the database knows that all incorrect pages were written to disk (for example, database files). At the time of recovery, the log (which includes-finished and unfinished transactions) is used to bring the database to a consistent state. The system locates the time of the last checkpoint and returned to this position in the log file. Then he restores forward all completed transactions (read committed) that occurred after the last checkpoint and rolls back all transactions that were not committed, but that began before the last checkpoint. This is where online log files are used.

Now imagine that you need to back up your database GB 100 + all 10 minutes. It would be a waste of space! So you take a backup of your database at time t and backups of archiver process redo logs periodically to check the newspapers so that redo log files can be replaced and RMAN will use the last backup and archive the log files to recover your database at the time.

Now, I mentioned the checkpoint process. The Checkpoint process regularly launches a control point that uses DBWR to rewrite all the blocks Sales in the data files, so synchronize the database. Imagine one dam is running and have exhausted all the redo log files. At this point, Oracle will wait until all Sales already queued blocks have been written to the buffer on disk (database files) foremost him redo log files can be considered as superfluous and available for re-use (i.e. can be overwritten). This will result in the following message in the alert.log:

Thread 1 advanced to log sequence 17973
  Current log# 3 seq# 17973 mem# 0: /oracle/data/HAM1/log3aHAM1.dbf
  Current log# 3 seq# 17973 mem# 1: /oracle/data/HAM1/log3bHAM1.dbf
Thread 1 cannot allocate new log, sequence 17974
Checkpoint not complete
  Current log# 3 seq# 17973 mem# 0: /oracle/data/HAM1/log3aHAM1.dbf
  Current log# 3 seq# 17973 mem# 1: /oracle/data/HAM1/log3bHAM1.dbf
Thread 1 advanced to log sequence 17974

I am sure you have done the following:

alter database mount;

Database altered.

When you mount a database, Oracle combines the instance started the database. Oracle control files are opened and read. However, no checking such as the restore/recovery is performed

alter database open;

Database altered.

An open command opens the data files, recovery logs, it performs automatic and consistency of database recovery. At this point, the database is now ready to be used by all valid users.

HTH,

Mich

Published by: Mich Talebzadeh on November 19, 2011 16:57

Tags: Database

Similar Questions

  • The UNDO tablespace and its data file cannot be removed

    I would like to delete an UNDO tablespace after you have created a new, but can't. I could follow a large number of instructions TOM and others, but tablepspace is still listed in the State to RECOVER. Please see what I've done below. Your help will be appreciated.
    SQL > drop tablespace UNDOTBS2;
    Drop tablespace UNDOTBS2
    *
    ERROR on line 1:
    ORA-01548: active rollback segment "_SYSSMU29_1272378969$" found, terminate
    drop the tablespace
    SQL > drop rollback segment "_SYSSMU29_1272378969$";
    Drop rollback segment "_SYSSMU29_1272378969$".
    *
    ERROR on line 1:
    ORA-30025: DROP segment ' _SYSSMU29_1272378969$ ' (in the undo tablespace) not
    permit

    Have you tried that
    http://arjudba.blogspot.com/2008/08/ora-01548-active-rollback-segment.html

  • What is the difference between: "Place...". ' or 'add files to download... '. » ?

    Where can I get information about the differences between "Place" commands... ' and 'add files to download... '. "the menu file?

    Understand that, in both cases, the files are related and non-integrated. But what other differences are there?

    I came across this question, because the widget 039 (animation Image Rollovers) of MuseThemes only works if you use the option 'add files to download... '. ».

    Thank you

    Daniel

    Hi Daniel,.

    There are a few differences between the two options-

    Place is used to add content to the page (rendered) while to add files to download... is used to transfer files to your site, but not on the page (not provided).

    The placed images are published to the folder/images from the server while images added using Add files to download... option are posted to the liabilities on the server folder.

    Placed images have a chance to get famous (if resized/interpolated in Muse) to publish all images added using Add files to download... keep their names.

    Can be used to add file formats limited as jpg/png/psd/swf/oam etc so that you can download almost any type of file using Add files to download...

    You see not contained in the drop-down list of links placed for binder files added using Add files to download... appear in the dropdown links so that you can bind to them and allow the download.

    The two serve different purposes and add files to download... is preferred by Widget developers because it gives more control over the downloaded content and insurance this file location and name will be as expected.

    Hope that the above gives you clarity on the fundamental difference.

    See you soon,.

    Vikas

  • tablespace with multiple data files

    Hi all

    We have RHEL4 server with oracle 10 g 2 inside.

    can we create a tablespace with multiple data files? I mean while creating a tablespace itself, we should be able to create two or more data files (should not use ALTER tablespace command).

    If possible, please give me the SQL to do this (assume that I need to create a tablespace with two data files).

    Thanks in advance...

    Not so difficult isn't it?

    create tablespace datafile test
    '1.dbf' size 1 m REUSE AUTOEXTEND ON NEXT 32 M MAXSIZE 1500 M,
    '2.dbf' size 1 M REUSE AUTOEXTEND ON NEXT 32 M MAXSIZE 1500 M
    EXTENT MANAGEMENT SEGMENT LOCAL SPACE MANAGEMENT AUTO;

  • relationship between redo log buffer, journal of redo and undo tablespace files

    What is the relationship between the redo log buffer, redo log files and undo tablespace?

    what I understand is

    redo log buffer is the logical area where all the news of recovery were stored until they are transferred by LGWR bank roll forward log online... but y at - it report any with the undo tablespace with these two?

    Please correct me if I'm wrong

    Thanks in advance

    redo log buffer is the logical area where all the news of recovery were stored until they are transferred by LGWR bank roll forward log online... but y at - it report any with cancellations

    tablespace with these two?

    There is a link between files redo log and buffer, but the undo tablespace is something else entirely.

    spend it here with this links

    REDO LOG FILES
    http://www.DBA-Oracle.com/concepts/redo_log_files.htm

    BUFFER REDOLOG
    http://www.DBA-Oracle.com/concepts/redo_log_buffer_concepts.htm

    UNDO TABLESPACE
    Undo tablespace to cancel files to undo or roll back uncommitted changes pray the database.

    Hope you understood.

  • difference between switch logfile and checkpoint

    Hi all
    What is the difference between
    Forcing log switches:
    ALTER SYSTEM switch logfile;

    and
    ALTER SYSTEM checkpoint;

    When I use one and don't use the other

    Thank you very much

    Its similar comparison mangoes with tomatoes. Checkpoint is a number that is used to make sure that everything is in harmony with the other data files, control files. They are used in different places for different reasons.
    The newspaper fles, as mentioned by Satish, Siwtching is used when it is necessary to create a log file to archive. The only link between this and the control point is that this event causes also point of control and full control point to arrive.
    HTH
    Aman...

  • Difference between DAQ and DAQmx for acquisition of data PCI 6534

    Hello

    I use the PCI DAQ 6534 card for my digital I/o transfer. I am beginner in the labview.

    I want to store the data coming in memory and the reading of the data at the level of the trigger.

    I have seen the examples in the labview. Some have used DAQmx and DAQmx read write that screws and some have used the confg DIO port and all...

    So I want to know the difference between these two. For my application that I use?

    Hey Bo,

    First of all, I would recommend that you discover the NI 6533/6534 for NOR-DAQmx help. You may be able to find some of your answers in this help document. Now for what you try to do in your application, it looks like you are only buying data. If this is the case, with the 6534, the device acquires data in memory shipped as soon as the DAQmx series start task VI, as long as you don't start hardware triggers have in place. If you have a trigger of starting material, then will make the purchase of the aircraft after the DAQmx start task VI and only after you receive this material trigger. If you call not the DAQmx Read VI, then the data will be stored in the memory board for you, as the driver manages this data in the on-board memory storage, until reading DAQmx VI is called, which at that time, data is transferred to the Board of Directors in the memory of the computer. Once you get it in the computer's memory, you can do whatever you want with these data, as this graph or treat. If you look at the sample programs (which have been mentioned on how to find those in a previous post), you can find an example that little shows you how it works. One of the examples that you can check is called reading Dig Port-Ext Clk.VI. In this example, it sets up to read a finite number of samples and then starts the task. If you set a breakpoint on the line of the error after the VI begin, the data will be acquired in the amount of on-board memory. Then when you cancel the break of the VI, data will be extracted from the amount memory embedded in the memory system with the reading VI DAQmx. Again, the pilot takes care to put the data in the memory board for you once you start the task.

    I hope this helps. Please let us know if you have any questions or concerns about this issue. Also, certainly, discover and try to run all the programs related to the 6534 examples so that you can learn how the equipment works and how to use features to do what you want your program to do. Also, be sure to read through the help on the 6534, as well as the help of VI documentation to learn what makes each function. Thank you and have a nice day.

    Kind regards

    DJ L.

  • What is the difference between the external SCSI cables and cables data acquisition

    Hi all, I would like to make a simple extension using an external SCSI cable and a NOR 184749/SH 6868. In other words, it would be: female HD68 bolt of the cable ends OR coupled to an external SCSI HD 68 male with a VHDCI 68 male cable. What are the differences between the external SCSI cables and cables as the (M) 6868EP of the CHS data acquisition. Other than the sex of the end of HD68 is usually on one. How is the posting hit buy using an external SCSI cable for an extension to tell a BNC-2090?

    Yes, I realize that NEITHER wants us to buy their cable, but in these economic times difficult, to do use all available resources, so I have to try,.

    Thank you

    joelowwatt

    Hello

    As long as you have compatible connectors, SCSI cables will work DAQ of basic functions.  They have the advantage of NO cables is that we can meet our DAQ hardware.  So, we can create pairs twisted differential pairs to HAVE, using the ground for shielding terminals and generally specialize the cable to minimize noise and crosstalk.  Because the SCSI cables are not specialized, you are likely to see the most noise and, if you go the sampling rates more Rapids, crosstalk.  If you are in a laboratory or factory with a good amount of noise EMF that your readings are not quite as clean, or if you have fluorescent lights you might see 60 Hz noise you might not see otherwise.

    If you want more details on the specifications of the SH68-68-EPM cable, I recommend these two articles.  The first example of the twisted pair and the principles of the SH cable shielding and the second gives the most precise specifications that you can compare with when looking for a SCSI cable.

    3GRD4C33 Knowledge Base: mapping list of the sons of SHC68-68-EPM & SH68-68-EPM cable

    1TGEHPDM knowledge base: detailed specifications for the SH68-68-EP cable

    Kind regards

  • Tablespace with a data file name in double and the directory added

    Version Oracle 11.1.0.7
    AIX platform

    I have exactly the same directory for the tablespace even a tablespace with 2 files with exactly the same name.

    I don't think it was possible for Oracle create two data files in the same directory with exactly the same data file for a tablespace name.

    The difference between the two seems to be the sizes - one is 10G, the other is 10 m autoextend on but with maximum size is equal to the size of create.

    It is not possible to table either both are full.

    Please notify.

    Thank you.

    You have a character that is hidden in the name of the file. Use ls for your operating system which shows the special characters (ls - lb or something, man ls).

  • create tablespace with existing data file

    Dear Sir.
    We can create tablespace with an existing data file so I can use the tables and objects already exist in the data file?

    Kind regards

    Read about "transportable tablespace" and see if this is what you need.

  • Use of a single tablespace or backup data file

    Hello

    I read the RMAN manual and I'm quite familiar with backup a tablespace or data file, but I can find very little uses for it. Backup upward a tablespace is useful for the TPITR, but since who needs another instance sound very little useful in most production environments. I think that you cannot restore an older version of tablespace in a normal database, except if the tablespace has been done long read-only, in which case RMAN optimizations will do the trick.
    Still less use that I can find for the backup of the data file. I have absolutely no idea of what you can do with a single data file.

    Can you please tell me about the uses of these RMAN features?

    Thank you.

    Hi again!

    OK, you're right. If you are using noarchivelog moden then a partial database backup is no useful. Only the archivelogmode can make a useful partial backup of DB.

    Best regards

    Florian W.

  • difference between redo log .rdo .log extension

    Dear Sir.

    There is a difference in the speed o If we create the log to roll forward with .rdo or .log extension?


    Kind regards

    Previous versions of db Oracle used to talk about the extension as *.rdo but now its *. log. But whatever the extension, it makes no difference in the work. You can even do *.txt, there would still be a Redo Log files.

    Aman...

  • Bug in data modeling: create undo tablespace

    The output of the DDL script for the Undo type tablespace has a spelling error:

    CREATE UNDO TABLESPACE UndoTBS1 PETIT_FICHIER
    DATA FILE
    ' C:\oracle\product\10.2.0\oradata\VolksNet\UNDOTBS01. DBF ' SIZE 512 M AUTOEXTEND ON NEXT MAXSIZE 16 K UNLIMITED
    LOCAL MANAGEMENT MEASURE
    GUARANTEE OF TENSIONING
    ;

    It spells TENSION instead of RETENTION.

    Thank you, I logged a bug.

    Please note that we have a feedback customer specific applications to track issues for data modeling, although it is still an early release of the adopter. The link is http://apex.oracle.com/pls/otn/f?p=2306:10

    Sue

  • Undo tablespace filled with 95%

    Hi all

    We have R12.1 Instance with RDBMS 11.1.0.7.0.
    Undo table space here is got filled up to 95%, all the data files are not in AUTOEXTEND.

    In this case, I need to add a data file?
    If I add a file of data, is the performance database will be mediocre?

    Please suggest...


    Thank you
    Shaik

    Undo tablespace full when data files are not in mode autoextend is normal. PL see this Doc MOS

    UNDO tablespace full gr 10 2 [ID 413732.1]

    If you stop seeing any error ORA-01555, you don't have to do anything.

    HTH
    Srini

  • Diff between switch logfile and archive current log

    Hello
    I see that the effect for the two statements are the same
    ALTER SYSTEM switch logfile;
    =
    ALTER SYSTEM archive log current;


    is that there is no difference between them?
    Thank you

    Hello..

    ALTER SYSTEM switch logfile;

    =
    ALTER SYSTEM log current ;> archives

    alter system switch logfile--> switches to the following log file, regardless of the mode that the database is in ARCHIVELOG or NOARCHIVELOG mode. If the archivelog mode change system swicth logfile will generate the Archives of the redolog which was changed.

    change the current archiving--> oracle here log system passes current related to records and archives as well as all other newspapers not archived. It can be fired only the database that is in ARCHIVELOG mode.

    [http://download.oracle.com/docs/cd/B10501_01/server.920/a96519/backup.htm]

    HTH
    Anand

Maybe you are looking for

  • Synchronization problem between iCloud, iPhone and iPad.

    Good, if I want to sync my iPhone and iPad to iCloud, but I don't want that there is no synchronization BETWEEN devices. In other words, I don't want the notes and photos from my iPhone find you on my iPad and vice versa. How to make that happen?

  • Replacement for the Working Group to el Capitan Manager?

    I recently built new servers, intending using open directory. The equipment I use are the new mac mini servers, with two 1 TB drives and 16 GB of memory. Historically I have used Workgroup Manager for direct starting, deployment of the printer files,

  • Satellite A200-1Z3 - cannot install Windows XP Home edition

    I tried using Nlite, and "slipstreaming" manually manually hard detected and installed windows, but when the window trying to load the first time, a blue screen come up with the error «a recently added material may collide,...» "blah blah... After th

  • Dell Latitude e5540 double letters and spaces at random

    Let Dell know how many of you know the following problem: Regularly, I find that with a single touch, my brand new laptop randommly Dell Latitude e5540 product 2 spaces (more often) and double letters (run less often than the doubling of the spaces,

  • elevation programs, files & folders

    I have a new system w/Windows 7 ultimate installed on C drive a 256 GB SSD. I would like to move all unnecessary programs, files & folders d Drive an SSD 512 GB drive. I backed up my old system, the same operating system on an external hard drive. Wh