I don't have a scheme that can fall at hand, but the info center ( http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin /t0005230.htm ) says that a DROP SCHEMA [schema name] will work on DB2 8.x
EDIT: Well, Infocenter also says: "Before dropping a schema, all objects that were in this schema must be reset themselves or moved to another schema"
So, first you need to delete all the objects in the circuit. Objects (tables, views, triggers, procedures, indexes ...) can be specified in catalog requests in the SYSIBM schema.
eg. to get all tables belonging to the schema, do:
select table_name from sysibm.tables where table_schema = '[your schema name]'
Check other sysibm views to get all objects that belong to the schema. views: sysibm.views, sysibm.triggers, sysibm.routines, sysibm.indexes, ... - see IBM Infocenter (link above) for details.
source share