hi,
We have noticed a number of files being created in the /var/tmp directory on our server which are not being removed and begining to fill up the space.
The file names are somewhat random 'qeYzypqb' for example and the content is a mix of non-readable text, readable text (our data) and occasional SQL codes.
It would seem as though they are rejected records from ODBC stages which we use to load into a DB2/UDB target.
My questions are, how do i control the location of these files? Are they needed or is it possible to not create them at all? Can they simply be deleted by a scheduled job once all DS jobs are complete?
I have searched everywhere I can think of but cannot find anywhere where it is specified either to create these files or even to use the /var/tmp directory for anything.
Any ideas?
unknown files in /var/tmp
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
these files are created by buffer operators and sometimes left there in case the job aborts. Other readables are the files created by ODBC as you noted.
To control the location:
change the value of TMPDIR environment variables to point to scratch disk in seperate folder/any different location so that you can identify/remove them easily (which ever disk you want to use). Also create a user defined variable called TEMP_DIR and set it same/different as TMPDIR.
To control the location:
change the value of TMPDIR environment variables to point to scratch disk in seperate folder/any different location so that you can identify/remove them easily (which ever disk you want to use). Also create a user defined variable called TEMP_DIR and set it same/different as TMPDIR.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.![Wink :wink:](./images/smilies/icon_wink.gif)
Genius may have its limitations, but stupidity is not thus handicapped.
![Wink :wink:](./images/smilies/icon_wink.gif)
Thanks,
Will give that a try. Was a little confused that files seemed to be appearing in both /var/tmp and /tmp.
As long as they are safe to delete that solves the problem anyhow.
I'll mark this as resolved but just for reference, is setting TEMP_DIR a workaround to cover different OS's that use this instead of TMPDIR?
Will give that a try. Was a little confused that files seemed to be appearing in both /var/tmp and /tmp.
As long as they are safe to delete that solves the problem anyhow.
I'll mark this as resolved but just for reference, is setting TEMP_DIR a workaround to cover different OS's that use this instead of TMPDIR?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI