1752584 Members
4230 Online
108788 Solutions
New Discussion юеВ

Re: tar crashed oracle

 
SOLVED
Go to solution
A. Clay Stephenson
Acclaimed Contributor

Re: tar crashed oracle

Assuming this was a tar reading these files, that should have not caused your problem. Tar and cpio do absolutely no file locking. I think this was a case of "I was running tar; Oracle crashed." The technical term for this is called "coincidence" rather than cause and effect.
If it ain't broke, I can fix that.
Yogeeraj_1
Honored Contributor

Re: tar crashed oracle

hi,

check the oracle alert.log. maybe you will have some clues about the crash there.

hope this helps!

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
John Jayaseelan
Super Advisor

Re: tar crashed oracle

Hi,

I do not think tar will lock the file during the back or reason for the crash. Could be due to the oracle process. Better to check the log file for the further info.

John Jayaseelan
Steven E. Protter
Exalted Contributor

Re: tar crashed oracle

tar should not have caused the problem, it does not lock the files.

Oracle may not have had the access level it wanted during the process, but this is probably an oracle problem.

You can not use fbackup for anything other than a cold, database down backup.

fbackup will try to lock the files on an open database, might hack oracle off and cause corruption. It will eventually fail to backup open database files resulting in error messages.

If you want to back up hot oracle databases, use rman. It comes with oracle and is a pretty useful and reliable tool.

You can also use omniback, over version 3.5 I think to get oracle 8.1.7 databaes. omniback also uses rman for oracle 8 backups.

If you choose this route, let me know, I can probably find and forward you a document on how to set up and use rman(I might have to mail it snail style it may only be here on paper)

If you mail, make the subject line relavent, I've been sick for two weeks and am nearly 100 emails behind schedule.
stevenprotter@juf.org
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Raynald Boucher
Super Advisor

Re: tar crashed oracle

Which was the exact tar command issued?

A bad tar command could cause Oracle to error. ex.:
tar -cvf control_file1 control_file2

would corrupt control_file1.

Colin Jensen
Occasional Advisor

Re: tar crashed oracle

it was tav -cvf ... pls explain how this would corrupt it. Thanks.
Ian Lochray
Respected Contributor

Re: tar crashed oracle

In Raynald's example, control_file1 follows the "f" flag of the tar command so control_file1 would be the destination for the tar output. The example command would tar control_file2 into a tar image called control_file1, overwriting the control file.
TwoProc
Honored Contributor

Re: tar crashed oracle

The above posted message is right. The "c" in "cvf" means "create" and the "f" means "file" and the file you gave it was your control file. Basically, you turned your controlfile into a tarball. The correct syntax would have been "tar cvf /tmp/mynewtarfile.tar controlfile1 controlfile2". That would take both controlfile1 and controlfile2 and put them in the newlycreated file /tmp/mynewtarfile.tar.
We are the people our parents warned us about --Jimmy Buffett
Colin Jensen
Occasional Advisor

Re: tar crashed oracle

It did create a .tar file, but also left the oracle files intact. Yes, the command entered was as in the last post.
CJENSEN_1
Regular Advisor

Re: tar crashed oracle

Thanks