What is the purpose of Redo Log files?

1 Answer

Answer :

Before Oracle changes data in a datafile it writes these changes to the redo log.
If something happens to one of the datafiles, a backed up datafile can be restored and the redo, that was written  since, replied, which brings the datafile to the state it had before it became unavailable.

Related questions

Description : What is the use of redo log information?

Last Answer : The information in a redo log file is used only to recover the database from a system or media failure prevents database data from being written to a database's data files.

Description : What is the function of redo log?

Last Answer : The primary function of the redo log is to record all changes made to data.

Description : What is a redo log?

Last Answer : The set of redo log files for a database is collectively known as the database redo log.

Description : What is Archived Redo Log ?

Last Answer : Archived Redo Log consists of Redo Log files that have archived before being reused.

Description : What is On-line Redo Log?

Last Answer : The On-line Redo Log is a set of tow or more on-line redo files that record all committed changes made to the database. Whenever a transaction is committed, the corresponding redo entries temporarily ... file by the background process LGWR. The on-line redo log files are used in cyclical fashion.

Description : What is meant by redo log buffer ?

Last Answer : Changes made to entries are written to the on-line redo log files. So that they can be used in roll forward operations during database recoveries. Before writing them into the redo log files ... buffers in SGA and LGWR will write into files frequently. LOG_BUFFER parameter will decide the size.

Description : What is meant by Redo Log file mirroring ? How it can be achieved?

Last Answer : Process of having a copy of redo log files is called mirroring. This can be achieved by creating group of log files together, so that LGWR will automatically writes them to all the members ... . If any one group fails then database automatically switch over to next group. It degrades performance.

Description : What is a Redo Log ?

Last Answer : The set of Redo Log files YSDATE,UID,USER or USERENV SQL functions,or the pseudo columns LEVEL or ROWNUM.

Description : What is Mirrored on-line Redo Log ?

Last Answer : A mirrored on-line redo log consists of copies of on-line redo log files physically located on separate disks, changes made to one member of the group are made to all members.

Description : How does one backup archived log files? (for DBA

Last Answer : One can backup archived log files using RMAN or any operating system backup utility. Remember to delete files after backing them up to prevent the archive log directory from filling up. If the ... oracle/arch_backup/log_t%t_s%s_p%p' 5> (archivelog all delete input); 6> release channel dev1; 7> }

Description : What are database files, control files and log files. How many of these files should a database have at least? Why?

Last Answer : ∙ Database Files The database files hold the actual data and are typically the largest in size. Depending on their sizes, the tables (and other objects) for all the user accounts can go in one ... or redo log file to the database, the information is recorded in the control files. ∙ Redo Logs

Description : Describe what redo logs are.

Last Answer : Redo logs are logical and physical structures that are designed to hold all the changes made to a database and are intended to aid in the recovery of a database.

Description : How many maximum Redo Logfiles one can have in a Database?

Last Answer : Maximum number of logfiles is limited by value of MAXLOGFILES parameter in the CREATE DATABASE statement. Control file can be resized to allow more entries; ultimately an operating system limit. ... for the CREATE DATABASE statement, then the database uses an operating system default value.

Description : What is a Redo Log?

Last Answer : The set of Redo Log files YSDATE,UID,USER or USERENV SQL functions, or the pseudo columns LEVEL or ROWNUM.

Description : What is Mirrored on-line Redo Log?

Last Answer : A mirrored on-line redo log consists of copies of on-line redo log files physically located on separate disks, changes made to one member of the group are made to all members.

Description : What is Archived Redo Log?

Last Answer : Archived Redo Log consists of Redo Log files that have archived before being reused.

Description : What is On-line Redo Log?

Last Answer : The On-line Redo Log is a set of tow or more on-line redo files that record all committed changes made to the database. Whenever a transaction is committed, the corresponding redo entries temporarily stores in redo log buffers of the SGA are written to an on-line redo log file by the background

Description : How would you force a log switch?

Last Answer : ALTER SYSTEM SWITCH LOGFILE;

Description : What is Log Switch ?

Last Answer : The point at which ORACLE ends writing to one online redo log file and begins writing to another is called a log switch.

Description : What is a SNAPSHOT LOG ?

Last Answer : A snapshot log is a table in the master database that is associated with the master table. ORACLE uses a snapshot log to track the rows that have been updated in the master table. Snapshot logs are used in updating the snapshots based on the master table.

Description : What is snapshot log ?

Last Answer : It is a table that maintains a record of modifications to the master table in a snapshot. It is stored in the same database as master table and is only available for simple snapshots. It should be created before creating snapshots.

Description : When will the data in the snapshot log be used?

Last Answer : We must be able to create a after row trigger on table (i.e., it should be not be already available) After giving table privileges. We cannot specify snapshot log name because oracle uses the ... 23 characters. (The table name created will be MLOGS_tablename, and trigger name will be TLOGS name).

Description : How can we specify the Archived log file name format and destination?

Last Answer : By setting the following values in init.ora file. LOG_ARCHIVE_FORMAT = arch %S/s/T/tarc (%S - Log sequence number and is zero left paded, %s - Log sequence number not padded. %T - Thread number lef ... not padded). The file name created is arch 0001 are if %S is used. LOG_ARCHIVE_DEST = path.

Description : Which log would you check if a database has a problem?

Last Answer : Alert log

Description : How does one give developers access to trace files (required as input to tkprof)? (for DBA)

Last Answer : The "alter session set sql_trace=true" command generates trace files in USER_DUMP_DEST that can be used by developers as input to tkprof. On Unix the default file mask for these files are "rwx r-- -- ... = true Include this in your INIT.ORA file and bounce your database for it to take effect.

Description : Can one resize tablespaces and data files? (for DBA)

Last Answer : One can manually increase or decrease the size of a datafile from Oracle 7.2 using the command. ALTER DATABASE DATAFILE 'filename2' RESIZE 100M; Because you can change the ... UNLIMITED DEFAULT STORAGE (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0) ONLINE PERMANENT;

Description : Name two files used for network connection to a database.

Last Answer : TNSNAMES.ORA and SQLNET.ORA

Description : You have just had to restore from backup and do not have any control files. How would you go about bringing up this database?

Last Answer : I would create a text based backup control file, stipulating where on disk all the data files where and then issue the recover command with the using backup control file clause.

Description : What are the characteristics of data files?

Last Answer : A data file can be associated with only one database. Once created a data file can't change size. One or more data files form a logical unit of database storage called a tablespace.

Description : Table Space,Data Files,Parameter File, Control Files

Last Answer : Table Space :: The table space is useful for storing the data in the database.When a database is created two table spaces are created. a) System Table space :: This data file stores all the tables ... They contain the Db name, name and location of dbs, data files ,redo log files and time stamp.

Description : Name the two files that are created when you generate the form give the filex extension ?

Last Answer : INP (Source File) FRM (Executable File)

Description : How to implement the multiple control files for an existing database ?

Last Answer : Shutdown the database Copy one of the existing control file to new location Edit Config ora file by adding new control file. name Restart the database.

Description : It is possible to use raw devices as data files and what is the advantages over file. system files ?

Last Answer : Yes. The advantages over file system files. I/O will be improved because Oracle is bye-passing the kernnel which writing into disk. Disk Corruption will be very less.

Description : What are the default extensions of the files created by forms modules?

Last Answer : .fmb - form module binary .fmx - form module executable

Description : What are the default extensions of the files created by menu module?

Last Answer : .mmb, .mmx

Description : I've lost my REDOLOG files, how can I get my DB back? (for DBA

Last Answer : The following INIT.ORA parameter may be required if your current redo logs are corrupted or blown away. Caution is advised when enabling this parameter as you might end-up losing your entire database. Please contact Oracle Support before using it. _allow_resetlogs_corruption = true

Description : Can one export to multiple files?/ Can one beat the Unix 2 Gig limit? (for DBA

Last Answer : From Oracle8i, the export utility supports multiple output files. This feature enables large exports to be divided into files whose sizes will not exceed any operating system limits (FILESIZE= parameter). When ... > scott.exp.gz & # feed the pipe exp userid=scott/tiger file=exp.pipe ...

Description : Does Oracle write to data files in begin/hot backup mode? (for DBA

Last Answer : Oracle will stop updating file headers, but will continue to write data to the database files even if a tablespace is in backup mode.In backup mode, Oracle will write out complete changed blocks ... ). Because of this, one should notice increased log activity and archiving during on-line backups.

Description : What are the default extensions of the files created by library module?

Last Answer : The default file extensions indicate the library module type and storage format .pll - pl/sql library module binary

Description : What are the Characteristics of Data Files ?

Last Answer : A data file can be associated with only one database. Once created a data file can't change size. One or more data files form a logical unit of database storage called a tablespace.

Description : Name the three major set of files on disk that compose a database in Oracle

Last Answer : There are three major sets of files on disk that compose a database. All the files are binary. These are ∙ Database files ∙ Control files ∙ Redo logs The most important of these ... actual data resides. The control files and the redo logs support the functioning of the architecture itself.

Description : What Oracle tool will you use to transform datafiles into text files?

Last Answer : Trick question: you can’t do that, at least with any Oracle tool. A very experienced DBA should perfectly know this.

Description : What command will you use to navigate through ASM files?

Last Answer : asmcmd

Description : What is value of using access control database transaction and firewall log files?

Last Answer : Need answer

Description : Where can I find Windows NT server log files?

Last Answer : The Windows NT operating system is full of issues. The fact they do not have specific server file is one of them. Any file can be converted to a server file.

Description : Which of the following is not a type of volatile evidence a) Routing Tables b) Main Memory c) Log files d) Cached Data

Last Answer : c) Log files

Description : Which of the following is not type of volatile evidence: A)Routing Tables B) Main Memory C)Log Files D) Cached Data

Last Answer : D) Cached Data

Description : Which of the following is not a type of volatile evidence? a. Routing Table b. Main memory c. Log files d. Cached Data

Last Answer : c. Log files

Description : Which of the following is not type of volatile evidence: A)Routing Tables B) Main Memory C)Log Files D) Cached Data

Last Answer : D) Cached Data

Description : What is the purpose of a cluster?

Last Answer : Oracle does not allow a user to specifically locate tables, since that is a part of the function of the RDBMS. However, for the purpose of increasing performance, oracle allows a developer ... from different tables together for faster retrieval than if the table placement were left to the RDBMS.