Unix Technical Forum

someone drop a database....

This is a discussion on someone drop a database.... within the Sybase forums, part of the Database Server Software category; --> Hello everyone! I'm from El Salvador and i have a problem, i have a sybase system running on windows ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 03:55 PM
becker
 
Posts: n/a
Default someone drop a database....


Hello everyone!



I'm from El Salvador and i have a problem, i have a sybase system
running on windows 2000 server, probably a programmer drop a
database...but i dont know who did it?, is it possible to know who drop
the database?, if the answer is yes... plese help me, because we need to
solve this security problem in our company.



Sybase saves all the TSQL and transaction somewhere?,



SALUDOS desde centroamerica


--
Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 03:55 PM
Rob Verschoor
 
Posts: n/a
Default Re: someone drop a database....

"becker" <member38633@dbforums.com> wrote in message
news:3345398.1063059523@dbforums.com...
>
> Hello everyone!
>
>
>
> I'm from El Salvador and i have a problem, i have a sybase system
> running on windows 2000 server, probably a programmer drop a
> database...but i dont know who did it?, is it possible to know who

drop
> the database?, if the answer is yes... plese help me, because we

need to
> solve this security problem in our company.
>


There is no easy way to do this, but something may be possible.
Provided the transaction log in the master database has not been
truncated, you should be able to find log records for the drop
database.
Do a 'dbcc log(1)' (enable traceflag 3604 first) and look for log
records affecting objects 30 and 31 (sysdatabases and sysusages,
respectively). The BEGINXACT record for the transaction in which these
log records occur, will tell you the exact time when it happened as
well as the suid (which identifies the login name).
In practice, this is actually a bit complicated and requires an
understanding of the transaction log. Without that knowledge, this
procedure may not be feasible.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of "Tips, Tricks & Recipes for Sybase ASE" and
"The Complete Sybase ASE Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob@DO.NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 04:03 PM
Roy Stewart
 
Posts: n/a
Default Re: someone drop a database....

Turn on Sybase audting. You may be able to catch who is doing this in the future.

On Mon, 08 Sep 2003 18:18:43 -0400, becker <member38633@dbforums.com> wrote:
>
> Hello everyone!
>
>
>
> I'm from El Salvador and i have a problem, i have a sybase system
> running on windows 2000 server, probably a programmer drop a
> database...but i dont know who did it?, is it possible to know who drop
> the database?, if the answer is yes... plese help me, because we need to
> solve this security problem in our company.
>
>
>
> Sybase saves all the TSQL and transaction somewhere?,
>
>
>
> SALUDOS desde centroamerica
>
>
> --
> Posted via http://dbforums.com




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com