You can force the log switches using the following statements,
SQL> Alter System Switch LogFile;
SQL> Alter System Archive Log Current;
The difference between the two statements is that the first statement issues a log switch and the control immediately returns to the user. The user can perform other activities while the log file is being archived at the background. However the second statement will not return the control to the user until the current logfile is archived. It issues a log switch and the user session hangs until the log is archived.
A number of DBAs also confuse with the following statement,
SQL> Alter System Archive Log all;
The above statement will not issue a log switch. It will archive all the non-archived log files. If you have no logfiles that are unarchived, then issuing the above statement returns the error message,
ORA-00271 there are no logs that need archiving.
Thanks
If you like the post vote for me by clicking the following button
Sunday, October 11, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment