|
-
Re: Alter system archivelog current
Originally posted by DaPi
It would seem MUCH better to use ALTER SYSTEM ARCHIVE LOG CURRENT and not wait. Can I be sure that the archlog file has been totally written and any OS sharing locks released, before control is returned (ARCH being an asychronous process)?
(The answer ought to be "Yes" - but I can't find it anywhere).
The answer is kinda "YES", but your scenario might still not work!
I think (but have never tested it, it's just my impression) that after ALTER SYSTEM ARCHIVE LOG CURRENT command is executed you can be sure that archlog file has realy been written.
BUT: You have no guarantie that the previous redo logs have also been archived by that time! So for example if your current redo log is archived as seq# 100009, your ZIP file might contain archfiles #100009, #100007, #100006, ...., but #100008 might be missing because it has not been archived yet.
Archlogs might be created out of sequential order, meaning that nothing is stopping oracle to write archlog #N+1 even if the archiving of #N or any previous redologs has not been finished yet.
And BTW, you could encounter the same scenario with your present setup (ALTER SYSTEM SWITCH LOGFILE + wait).
If you would like to avoid this, then you'd better use "ALTER SYSTEM ARCHIVE LOG ALL" instead.
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|