Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: shutdown immediate or abort for cold-backup?

Re: shutdown immediate or abort for cold-backup?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 28 Aug 2001 11:15:39 +0100
Message-ID: <998993556.11719.0.nnrp-13.9e984b29@news.demon.co.uk>

Talking of guessing what happens - have you run a trace/truss/tusc command to see what actually does happen ?

Your svrmgrl/sqlplus shadow sends a SIGKILL to all the current dedicated servers in turn, then does the same to the background processes in turn.

There is a great difference between sending SIGKILL to a process, and pulling the plug out of the back of the computer.

SIGKILL to a process does not cause the current, or previous call to the operating system to fail catastrophically - pulling the plug could leave disk heads spiralling in to crash on disks, scouring the surface clean, or at least sending a stream of electrical garbage down onto the disk.

Every time you do a shutdown abort, your filesystem is clean, your database files are clean, and the combination of data, control and redo log files are as consistent as they would be at any other instant of the database's life.

There is, however, one valid reason for not using 'shutdown abort' as a standard way of stopping the database: namely, very few people use it.

Because of this the recovery code will not have been tested at all the possible boundary conditions - the more times you do it, the greater your chance of being the first person to discover a 'special case' bug that causes recovery to fail.

In the same way, a shutdown immediate is more dangerous than a shutdown normal. The former requires Oracle to rollback any current transactions - again there may be some obscure boundary condition waiting to be discovered that results in a rollback failing and logically corrupting the database

--
Jonathan Lewis

Host to The Co-Operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases
See http://www.jlcomp.demon.co.uk/book_rev.html

For latest news of public appearances
See http://www.jlcomp.demon.co.uk

Screen saver or Life saver: http://www.ud.com
Use spare CPU to assist in cancer research.




Scorpion wrote in message <3b8acdcd.47436757_at_news>...

> If you do not work with a test DB or two,
>then you have no buisness guessing what happens.

>Look at it this way, how many times can you pull the plug out of the
>back of your computer while running ('aborting' the OS) before you
>start to suffer?
Received on Tue Aug 28 2001 - 05:15:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US