home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
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 IC84347 Status: Closed

SYSPROC.ADMIN_DROP_SCHEMA FAILS WITH SQL0478 IN DATABASE ENABLED FOR ORACLE
COMPATIBILITY

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
Calling ADMIN_DROP_SCHEMA will return -478 / SQL0478 in the 
error schema and error table in databases created with Oracle 
compatibility features enabled. 
 
To Reproduce: 
 
db2set DB2_COMPATIBILITY_VECTOR=ORA 
db2stop 
db2start 
 
/* Oracle compatibility must be enabled for this database */ 
db2 "create db test" 
 
db2 "connect to test" 
db2 "create table s.t(c1 int)" 
 
db2 "call sysproc.admin_drop_schema('S', NULL, 'E', 'E')" 
 
/* Select from the error schema and error table, this contains 
 * -478/SQL0478 error because the call to ADMIN_DROP_SCHEMA 
failed 
 */ 
 
db2 "select * from e.e" 
 
/* succeeds after the schema name is padded with 7 blanks */ 
db2 "call sysproc.admin_drop_schema('S       ', NULL, 'E', 'E')" 
 
db2 "terminate" 
db2stop
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All users of DB2                                             * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 10.1 Fix Pack 1 or higher             * 
****************************************************************
Local Fix:
Pad the schema name with blanks if it is less than 8 characters. 
For example if the schema name is REX, then it should be padded 
with 5 blank chars so that the total length is 8 characters.
available fix packs:
DB2 Version 10.1 Fix Pack 1 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
Problem first fixed in DB2 Version 10.1 Fix Pack1
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
13.06.2012
08.04.2013
08.04.2013
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.1 FixList
10.5.0.1 FixList