GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Oracle  >  Backup and Recovery
Go To First  |  Previous Question  |  Next Question 
 Backup and Recovery  |  Question 12 of 37    Print  
What is Log Switch ?
The point at which ORACLE ends writing to one online redo log file and begins writing to another is called a log switch.



  
Total Answers and Comments: 5 Last Update: December 08, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 13, 2005 15:24:32   #1  
sandeep vig        

RE: What is Log Switch ?
logswitch occurs when the current logfile becomes full and at logswitch a checkpoint is performed by the checkpoint process
 
Is this answer useful? Yes | No
January 20, 2006 10:54:32   #2  
devesh        

RE: What is Log Switch ?
When you give this command 'alter database switch logfile' then he generate a checkpoint number which shows that your courrent redo log is full and he write the second redo log. If you want to information about checkpoint the you have to use this view 'V$datafile'.
 
Is this answer useful? Yes | No
April 11, 2007 01:40:58   #3  
Anand Maripalli        

RE: What is Log Switch ?
Just to correct U..


 ITS "alter system switch logfile"; it would switch from one redolog file to another redolog file.

 We can use the view V$LOG (select sequence#, status from v$log) to knw the current used redolog group and the sequence number of the redo's.

 
Is this answer useful? Yes | No
September 28, 2007 05:08:44   #4  
Mohammed Abdul Afroze        

RE: What is Log Switch ?
The point at which oracle ends writing from one redo log and begins writing to another is called as a log switch.
 
Is this answer useful? Yes | No
December 08, 2007 08:43:43   #5  
nitanjandial Member Since: December 2006   Contribution: 4    

RE: What is Log Switch ?
log switch occurs when current redo logfile gets full and lgwr writes redo to next redo logfile.
Even we can perform log switch with the command also
before we execute the sql execute following statement
SQL> select status from v$log;

STATUS
----------------
UNUSED
UNUSED
CURRENT------>active redo logfile 3

After execute the statement

SQL> alter system switch logfile;

System altered.

SQL> select status from v$log;

STATUS
----------------
CURRENT---->now it have changed the position from logfile3 to logfile1
UNUSED
ACTIVE

SQL>


Cheers





 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape