Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sybase system tables fragmented. What to do?

Status
Not open for further replies.

cougar91

Programmer
Oct 6, 2003
4
US
Hi we are running ASE 12.5.3 on LINUX and I noticed some blocking on system tables sysobjects and syscolumns from time to time. I ran optdiag and it shows both table with very low clustering ratio. I want to see if I can defragment them but they being system tables I wanted to check here to see how I should go about it and if anyone has done something like this before? Appreciate feedback & comments.
 
Hi Paul,

Unfortunately not using data-only locking so can't do REORG. Thought about dropping and recreating a clustered index but since this is a system table, how do I proceed? I seem to remember there is some type of DB option to set so that you can apply DDL (or is it DML only) to system tables in Sybase?
 
Yes there is.

sp_configure "allow updates to system tables",1

I would be very careful while making changes to system tables.

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
> sp_configure "allow updates to system tables",1

But I think this is only DML, not DDL. I need to drop and recreate clustered index. Any other idea?
 
You correct that is to make DML changes. Have you tried to drop and recreate the clustered index? Did you get an error? If it didn't let you this may not be possible. I'll continue to research and post back if I find anything for you.
Sorry I can't be of more immediate help.

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top