why alter system archive log current? [message #233264] |
Wed, 25 April 2007 07:50 |
meggens
Messages: 57 Registered: February 2007 Location: Netherlands
|
Member |
|
|
Hi All,
I'm currently trying some RMAN scripts.
When I google around I see a lot of people are using
'alter system archive log current' to archive the current redo log file.
I did some testing (oracle 10.2.0.1) and saw that if I backup the archivelog files a redo log switch occurs...so I guess the current redo log is already archived by doing the backup...
Am I wrong?
regards,
martin
|
|
|
|
Re: why alter system archive log current? [message #233273 is a reply to message #233266] |
Wed, 25 April 2007 08:34 |
meggens
Messages: 57 Registered: February 2007 Location: Netherlands
|
Member |
|
|
Thanks for you reply. I understand.
I did some more testing.
When I ussue the RMAN command 'backup archivelog all delete input;'
I see the number of archive logs increasing by 1 and when the backup is finished all archive logs are gone from the archive_log_dest. So I guess with oracle 10.2.0.1 it's save to leave out the alter system archive log current from the backup script.
|
|
|
|
Re: why alter system archive log current? [message #233280 is a reply to message #233264] |
Wed, 25 April 2007 09:04 |
meggens
Messages: 57 Registered: February 2007 Location: Netherlands
|
Member |
|
|
Thanks again....
I had some doubts but I'll include it in the scripts, it doesn't hurt....and I have to backup some oracle 10.1 and 9 databases also so I think it's good to be consistent.
Regards,
Martin
|
|
|