?
Solved

how to make table or index corrupt ('suspect') in Sybase

Posted on 2001-06-21
3
Medium Priority
?
794 Views
Last Modified: 2008-02-01
I know it sounds crazy, but I'm testing some scripts to detect suspect tables and indexes in Sybase and I'm wondering how to deliberately force a table or index into suspect or corrupt status.  Any ideas?
0
Comment
Question by:schumacr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
gamaerte earned 200 total points
ID: 6286304
Well Mr Crazy,

Try fetching the on-disk placement(I don't have a Sybase engine on site , nor documentatio,which means I can't tell you which system table provides you this information) from one of those indexes /tables and alter it with a hex editor .
and do a select on that table to make the engine "see" it is corrupt.

But doing that will make your database corrupt , and you will need to restore.

Greetings

gamaerte
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7257297

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - Answered by: gamaerte  
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Expert Comment

by:Jgould
ID: 7282243
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question