RE: major blunders

From: Kellyn Pedersen <kjped1313_at_yahoo.com>
Date: Wed, 7 Oct 2009 09:59:33 -0700 (PDT)
Message-ID: <361095.10249.qm_at_web32005.mail.mud.yahoo.com>



Sheesh, you just reminded me of my dumb DBA trick that actually occurred in SQL Server 9 years ago-  Someone had removed the "WHERE USERID =XXXXX " clause from a 30 line login/user cleanup script for a SQL Server system and the last statement just issued- DELETE FROM SYSUSERS
 

I pretty much stopped breathing as I watched the final results on the screen: 1 row deleted.
 

1 row deleted.
 

1 row deleted
 

1659 rows deleted.
 

Microsoft said, "Yeah, start restoring, we can't help you..."  36 hrs later everyone was back in and working... That script became a stored proc that very day! :)
  • On Wed, 10/7/09, Kenneth Naim <kennaim_at_gmail.com> wrote:

From: Kenneth Naim <kennaim_at_gmail.com> Subject: RE: major blunders
To: dofreeman_at_state.pa.us, sims_at_suu.edu, oracle-l_at_freelists.org Date: Wednesday, October 7, 2009, 9:57 AM

When copying and pasting delete and update statements into sqlplus put them on a single line if possible to avoid the possibility of missing the where clause.

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Freeman, Donald
Sent: Wednesday, October 07, 2009 11:47 AM To: 'sims_at_suu.edu'; oracle-l_at_freelists.org Subject: RE: major blunders

Well, I always use a script to place the database name into the sql prompt. Making changes on the wrong database can ruin your whole day (or life).

So you need "do's"  and "don'ts"

Donald Freeman
Database Administrator II
Commonwealth of Pennsylvania
Department of Health
Bureau of Information Technology
2150 Herr Street
Harrisburg, PA 17103
dofreeman_at_state.pa.us

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of April Sims
Sent: Wednesday, October 07, 2009 11:42 AM To: oracle-l_at_freelists.org
Subject: major blunders

Compiling a list of major blunders to avoid:

Don't use the number 8 for scripting or ORACLE_SID due to the wild card character * above it.
Don't use rm *.*
....

Anyone else have some to contribute?

thanks

April Sims
SELECT IOUG Contributing Editor
http://aprilcsims.wordpress.com
OCP 8i, 9i, 10g DBA
Southern Utah University
sims_at_suu.edu
940-484-4276

--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l





      
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Oct 07 2009 - 11:59:33 CDT

Original text of this message