473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

SQL3508N Error in accessing a file or path of type "TEMP_FILE" during load

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

Jan 18 '07 #1
2 14049
Can be different reasons
1) check ulimit -a on your dev box to see if there is a limit on file
size
2) check the chmod values for the directory you are writing the load
file to..
maybe the user you are loading the data as does not have appropriate
privileges to write to the directory.

************************************************** *************************************************
contractsup wrote:
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
Jan 22 '07 #2
************************************************** *************************************************
contractsup wrote:
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
Asphalt Blazer wrote:
Can be different reasons
1) check ulimit -a on your dev box to see if there is a limit on file
size
ulimit -a
....
file(blocks) unlimited
....

2) check the chmod values for the directory you are writing the load
file to..
maybe the user you are loading the data as does not have appropriate
privileges to write to the directory.
I created a brand new parent directory with permissions 777 - no luck.

However, we have had a similar problem with the MSGFILES keyword. In
both
cases, the error messages have contained truncated path names. The
major
difference between the production, uat and dev environments is the
path length
of the locations where we keep logs and tempfiles. To get around this
we
have symbolically linked our log dir and tempfile dir into /tmp which
seems
to obviate the problem.

Dan Mercer

Jan 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Vivek | last post by:
Hi, I want to know if it is possible to load(using the db2load API) into a remote database. By remote database i mean one that i have cataloged. Any parameters that need to be changed ? TIA
4
slapshock
by: slapshock | last post by:
gud morning!!!!!!!! i have a problem on how to upload photo and save it in the database.... i am not so familiar in visual basic on how to code..... can you help me with this problem?? i want...
4
by: liberty1 | last post by:
Hi everyone. I appreciate your effort at helping newbies like me. I have the following problems and will appreciate urgent help. PROBLEM NUMBER 1: Using PHP and MySQL, I am able to upload...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.