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

CREATING DATABASE IN DB2 Z/OS FROM AQT SQL COMMAND PROMPT FAILS WITH
SQL0518N.

product:
DB2 CONNECT / DB2CONNCT / 970 - DB2
Problem description:
Environment Details:- 
 
 
=> DB2 Client 
 
Windows XP Professional version 2002 service pack 2. 
DB2 Personal Connect v 9.5. 
Advanced Query Tool v 8.2.4. 
 
=> DB2 Server 
 
DB2 Z/os 8.1 
 
The following error will occur when trying to create a database 
from AQT command prompt. 
 
DIAG [07003] [IBM][CLI Driver][DB2] 
SQL0518N  The statement named in the EXECUTE statement is not in 
a prepared state or is a SELECT or VALUES statement. 
SQLSTATE=07003 (-518)
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* CREATING DATABASE IN DB2 Z/OS FROM AQT SQL COMMAND PROMPT    * 
* FAILS WITH SQL0518N                                          * 
*                                                              * 
*                                                              * 
*                                                              * 
*                                                              * 
*                                                              * 
* => DB2 Client                                                * 
*                                                              * 
*                                                              * 
*                                                              * 
* Windows XP Professional version 2002 service pack 2.         * 
*                                                              * 
* DB2 Personal Connect v 9.5.                                  * 
*                                                              * 
* Advanced Query Tool v 8.2.4.                                 * 
*                                                              * 
*                                                              * 
*                                                              * 
* => DB2 Server                                                * 
*                                                              * 
*                                                              * 
*                                                              * 
* DB2 Z/os 8.1                                                 * 
*                                                              * 
*                                                              * 
*                                                              * 
* The following error will occur when trying to create a       * 
* database                                                     * 
* from AQT command prompt.                                     * 
*                                                              * 
*                                                              * 
*                                                              * 
* DIAG [07003] [IBM][CLI Driver][DB2]                          * 
*                                                              * 
* SQL0518N  The statement named in the EXECUTE statement is    * 
* not in                                                       * 
* a prepared state or is a SELECT or VALUES statement.         * 
*                                                              * 
* SQLSTATE=07003 (-518)                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 V9.7 FP2  or                                  * 
*                                                              * 
* Workaround:                                                  * 
*                                                              * 
* Use the "CREATE DATABASE" tab available in MENU option.      * 
*                                                              * 
* OR                                                           * 
*                                                              * 
* Create the database from CLP.                                * 
****************************************************************
Local Fix:
Use the "CREATE DATABASE" tab available in MENU option. 
OR 
Create the database from CLP.
available fix packs:
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
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 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Workaround
Use the "CREATE DATABASE" tab available in MENU option. 
 
OR 
 
Create the database from CLP.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.01.2010
14.05.2010
14.05.2010
Problem solved at the following versions (IBM BugInfos)
9.7.FP2
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.2 FixList