If a physical database file is deleted but the catalog still contains definitions of SQL segments, schemas and tables that reference this database area, then these definitions become “orphaned”. A subsequent DROP TABLE results in an SQLSTATE = DB001031 DB error 1492.
Release: All supported releases.
Component: SQL Option.
This occurs when a database area is physically deleted before any definitions that reference this area are dropped from the catalog.
There are two possible solutions to this dilemma.
The first involves a number of steps:
The second option only applies if the orphaned SQL definitions are the only things in the catalog. In that situation, simply FORMAT the catalog segments, and then delete them from the DMCL. If starting with this approach, back up the areas first, so that they can be restored in the event that the first approach must be used instead.