DB2 - Problem description
Problem IC62763 | Status: Closed |
RUNNING DRDA TRACE ON WINDOWS - TEMP DIR PERMISSION ISUES | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
Running db2drdat or ddcstrc on Windows results in the following error: Could not create file "\s36c.". SQL1512N ddcstrc could not write to the specified file. SQL1513W ddcstrc has not been turned off. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Windows users using ddcstrc/db2drdat and have limited write * * permissions to route directory * **************************************************************** * PROBLEM DESCRIPTION: * * With added security on windows systems mechanism by which * * ddcstrc/db2drdat was trying to open a temp file could fail. * * Need to ensure opening temp file in directory user has write * * access too. * **************************************************************** * RECOMMENDATION: * * Update to latest fixpack only if experiencing issues using * * db2drdat. * **************************************************************** | |
Local Fix: | |
On Windows use _tempnam to generate temp file in current directory to ensure temp file used to dump trace for formatting is written to directory user has write access on. | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 1 for Linux, UNIX, and Windows | |
Solution | |
changed ddcstrc/db2drdat to use different windows API to create temp file. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 25.08.2009 05.02.2010 05.02.2010 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.1 |