I have a question on Archive logs. I am compressing the archive logs with a cron job. What will happen if arch process has just started to create a new file and the compress cron job start compressing it.
As the arch file being written has compressed, will the oracle write to a different arch file or will it hang and fail.
Not quite the answer to your question:
Had the same prob under NT - pkzip created an unusable zip file (Oracle did not hang). Worked around it by moving the file to another directory before zipping. The move failed with a sharing violation if the file was still being written and the zip job found nothing new to do - so no zip file (get it in the next cycle) instead of a "corrupted" one.
I hope you can translate that to UNIX.
"The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman
Sorry, didn't know that - I'm no UNIX expert.
So one up to Bill Gates, eh?
"The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman
I have a question on Archive logs. I am compressing the archive logs with a cron job. What will happen if arch process has just started to create a new file and the compress cron job start compressing it.
As the arch file being written has compressed, will the oracle write to a different arch file or will it hang and fail.
Badrinath [/QUOTE
Neither might happen.Unix will not remove the existing file (unzipped) until it zips 100% of the file. So, I guess oracle keeps writing the file and zipping process might get failed, but not archiving process of oracle. You can test it and go with it ELSE under benefit of doubt, Do not let your zipping process start instantly, give time atleast for 10 logs to be archived before your script capture logs for zipping.
Very convincing answer. I think that really make sence now!!
Just another thing!! What if the file is deleted or moved while the arch is still writing to a file.
Badrinath
It creates the file with less contents(say there is log of 100 MB, you deleted after archiving 50MB, you do get log but, only 50MB)You get incomplete file which can't be used for recovery most probably... forgot there is specific error it says incomplete file for recovery.
Bookmarks