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 IC80012 Status: Closed

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

product:
DB2 FOR LUW / DB2FORLUW / 970 - 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                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See ERROR DESCRIPTION.                                       * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to v9.7 Fixpack 6.                                   * 
****************************************************************
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 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
This was first fixed in v9.7 Fixpack 6.  This is a server side 
fix which must be applied to the DB2 database server.
Workaround
See LOCAL FIX.
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC84347 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.11.2011
04.06.2012
04.06.2012
Problem solved at the following versions (IBM BugInfos)
9.7.FP6
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.6 FixList