dbTalk Databases Forums  

DBCC Corruption Simulation

sybase.public.ase.general sybase.public.ase.general


Discuss DBCC Corruption Simulation in the sybase.public.ase.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default DBCC Corruption Simulation - 12-18-2006 , 02:19 AM






I'm asked to give training on dbcc commands. At present we do not have any
corrupted database.

Just wondering is there any way to simulate and retify the database
corruption.

Thanks
KRV



Reply With Quote
  #2  
Old   
Rob Verschoor
 
Posts: n/a

Default Re: DBCC Corruption Simulation - 12-18-2006 , 02:45 AM






You can use 'dbcc corrupt' for this. This must be run in a database named
'victimdb' , e.g.:

use victimdb
go
dbcc corrupt (my_table, 0, 100002)
go


Note that dbcc corrupt is formally undocumented/unsupported.

HTH,

Rob V.
-------------------------------------------------------------
Rob Verschoor

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

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE" (new edition!)
"The Complete Sybase ASE Quick Reference Guide" (new edition!)
"The Complete Sybase Replication Server Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

<KRV> wrote

Quote:
I'm asked to give training on dbcc commands. At present we do not have any
corrupted database.

Just wondering is there any way to simulate and retify the database
corruption.

Thanks
KRV




Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: DBCC Corruption Simulation - 12-18-2006 , 03:44 AM



Thanks for the quick help Rob,

Thanks
KRV

"Rob Verschoor" <rob (AT) DO (DOT) NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY> wrote in
message news:45866357 (AT) forums-1-dub (DOT) ..
Quote:
You can use 'dbcc corrupt' for this. This must be run in a database named
'victimdb' , e.g.:

use victimdb
go
dbcc corrupt (my_table, 0, 100002)
go


Note that dbcc corrupt is formally undocumented/unsupported.

HTH,

Rob V.
-------------------------------------------------------------
Rob Verschoor

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

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE" (new edition!)
"The Complete Sybase ASE Quick Reference Guide" (new edition!)
"The Complete Sybase Replication Server Quick Reference Guide"

mailto:rob (AT) YOUR (DOT) SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

KRV> wrote

I'm asked to give training on dbcc commands. At present we do not have
any corrupted database.

Just wondering is there any way to simulate and retify the database
corruption.

Thanks
KRV







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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.