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!

Cannot read system catalog

Status
Not open for further replies.

ttkong

Programmer
Jun 5, 2002
22
MY
When I try to drop a database table, the following error appears:

-211 Cannot read system catalog

Thanks for help.
 
Hi ,

All informix table details will be stored in the some of the catalog tables like systables, sysindexes, syscolumns etc .. One of the catalog table values should have got corrupted bcos of which u are getting this error. Kindly check up from systables what is the tabid for the table name. Note it down and login as informix user and delete from syscolumns where tabid = "the table id "
delete from sysindexes where tabid = "table id "
and in the end delete from systables where tabid = "table id " .

Please ensure that u note downt the correct table id number from the systables. For getting the table id . execute the following query

select tabid from systables where tabname = <table name in quotes>

Check it out

Thanks
anu1977
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top