Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC78245 Status: Closed

ADMIN_DROP_SCHEMA FAILED WHEN ONLY INOPERATIVE OBJECTS EXIST IN A SCHEMA

product:
DB2 FOR LUW / DB2FORLUW / 950 - DB2
Problem description:
When only inoperative objects exist in a schema, the stored 
procedure ADMIN_DROP_SCHEMA does not remove the schema and 
dependent objects correctly. 
 
Below is the script that creates a database and tests 
ADMIN_DROP_SCHEMA. It first creates a table and a view, then 
drops the table. This gives an error SQL0478N, and does not 
remove the view. 
 
--drop database tmp; 
create database tmp; 
connect to tmp; 
call sysproc.sysinstallobjects('DB2AC', 'C', null, null); 
create table sven.test(x integer not null, y integer); 
create view sven.v as select * from sven.test; 
drop table sven.test; 
call sysproc.admin_drop_schema('SVEN', null, 'E', 'E'); 
select * from e.e; 
list tables for schema sven;
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users using 97fp8  or below db2level can be affected         * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* When only inoperative objects exist in a schema, the stored  * 
* procedure ADMIN_DROP_SCHEMA does not remove the schema and   * 
* dependent objects correctly.                                 * 
*                                                              * 
* Below is the script that creates a database and tests        * 
* ADMIN_DROP_SCHEMA. It first creates a table and a view, then * 
* drops the table. This gives an error SQL0478N, and does not  * 
* remove the view.                                             * 
*                                                              * 
* --drop database tmp;                                         * 
* create database tmp;                                         * 
* connect to tmp;                                              * 
* call sysproc.sysinstallobjects('DB2AC', 'C', null, null);    * 
* create table sven.test(x integer not null, y integer);       * 
* create view sven.v as select * from sven.test;               * 
* drop table sven.test;                                        * 
* call sysproc.admin_drop_schema('SVEN', null, 'E', 'E');      * 
* select * from e.e;                                           * 
* list tables for schema sven;                                 * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to 95fp9                                             * 
****************************************************************
Local Fix:
Drop underlying objects and the schema manually using 
corresponding DROP statements.
available fix packs:
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC78261 IC84137 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
22.08.2011
08.03.2012
08.03.2012
Problem solved at the following versions (IBM BugInfos)
9.5.FP9
Problem solved according to the fixlist(s) of the following version(s)
9.5.0.9 FixList