Teradata Database Message 5969 - 17.10 - 5969 - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Database Messages

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1096-171K
Language
English (United States)
Message
The database '%VSTR' has tables with error tables defined in another database.
Explanation
The above error is generated when a user submits a DELETE DATABASE command on a database that contains tables with error tables defined in some other database. The DELETE is disallowed in order to avoid orphaned error tables.
Generated By
OPD module(opddeldb)
For Whom
End User or Field Engineer or the concerned site support Representative.
Notes
Find all the error tables that are defined on the tables in the database being deleted by using the following command: SELECT BaseTblDbName, BaseTblName, ErrTblDbName, ErrTblName FROM DBC.ErrorTblsV WHERE BaseTblDbName <> ErrTblDbName AND BaseTblDbName = CurrentDBName; where <CurrentDBName> is the database name of the database being deleted.
Remedy
Drop all error tables from the above list and re-submit the DELETE DATABASE command.