Rectifying Error 204 in Corrupted DB2 Version 8 Database

DB2 or Database 2 is a relational model database thatYou may have issued COMMENT ON PACKAGE
is designed by IBM. It is used by many reputedwithout providing a version. Because of this, DB2 has
organizations as the backend support. It gives you theinternally opted for the NULL version but could not find
freedom to operate the databases either from athe NULL version. Another cause for this error is that
command line argument or from its GUI (Graphic Userthe database is corrupted.
Interface). However, sometimes the DB2 databaseResolution
gets corrupted due to various reasons such as bugs inTo resolve this situation, you should perform the
the database software, database header corruption,following steps:
improper system shutdown, virus infections, etc. In such-Verify that the SQL statement is correct by checking
cases, you should try to resolve the error usingthe object name including the qualifiers.
appropriate methods. If you are not able to recover-If the SQL statement is correct, then check the object
DB2 database, then you should use a third-party DB2exists in the database. If it does, then execute the SQL
database recovery software to do the needful.statement again.
Consider a scenario wherein you are using DB2-However, if the null version is not there, then you
version 8 database. You run the Select query to fetchshould drop the specific version by using the VERSION
some records, but it fails to execute. An errorclause. This should resolve the issue.
message is displayed, that is:However, if you are facing the similar problem even
"DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704after performing the aforementioned steps it means
DB2ADMIN.TABLE" [SELECTthat the database is corrupted. In such cases, you
* FROM IDSC.TABLE]"should use a third-party db2 database repair software
Where, db2admin is the user id.to recover database. Such tools are read-only in
Causenature that do not overwrite the existing database
The root cause of this erroneous situation is that thewhile scanning using fast yet sophisticated scanning
identified object is not defined in the DB2 subsystem.algorithms.