Environment:
$ uname -a
AIX <withheld2 5 000100614C00
$ db2level
DB21085I Instance "<withheld>" uses "32" bits and DB2 code release
"SQL08024"
with level identifier "03050106".
Informational tokens are "DB2 v8.1.1.104", "s060120", "U805924", and
FixPak
"11".
Product is installed at "/usr/opt/db2_08_01".
Failing SQL synopsis:
DECLARE xyz CURSOR FOR SELECT <withheld>
;
....
DB20000I The SQL command completed successfully.
LOAD FROM xyz OF CURSOR MESSAGES /path/to/message/dir/xyz.log
TEMPFILES PATH /path/to/temp/dir
REPLACE INTO <schema>.<table>
STATISTICS YES AND DETAILED INDEXES ALL
;
Agent Type Node SQL Code Result
__________________________________________________ ____________________________
LOAD 001 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 002 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 003 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 004 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 005 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 006 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 007 +00000000 Success.
__________________________________________________ ____________________________
LOAD 008 +00000000 Success.
....
LOAD 028 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 029 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
LOAD 030 -00003508 Init error. Table unchanged.
__________________________________________________ ____________________________
RESULTS: 2 of 30 LOADs completed successfully.
__________________________________________________ ____________________________
Summary of LOAD Agents:
Number of rows read = 0
Number of rows skipped = 0
Number of rows loaded = 0
Number of rows rejected = 0
Number of rows deleted = 0
Number of rows committed = 0
SQL3508N Error in accessing a file or path of type "TEMP_FILE" during
load or
load query. Reason code: "1". Path:
"/path/to/temp/dir/DB20049A.PID/DB200003.OID/load0024".
There is approximately 172 gig left on drive. This is a new directory,
so persistent historical data is not the problem. This is only
happening
on our development box - there is no problem in the production or user
acceptance
test environments.
The problem is intermittent. Sometimes you can just resubmit the job
and it works. Right now, it's just not working.
TIA for any help or advice.
Dan Mercer