DB2 Enterpirse Stage use /tmp directory to making temp file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dhwankim
Premium Member
Premium Member
Posts: 45
Joined: Mon Apr 07, 2003 2:18 am
Location: Korea
Contact:

DB2 Enterpirse Stage use /tmp directory to making temp file

Post by dhwankim »

Hi All,

I Now use db2 enterpise stage for loading data with write method "load".
then My Concern is that Each Job exhaused "/tmp" for making tempaory file, msg and error file also.

My machine is allocated small size volume for /tmp.

So I want to change direcotr /tmp to /disk01/tmp

How can i configure this.

Thanks in advance.


(dsadm) dwmsr06:/tmp/DB200021.PID/DB20010F.OID> ls -al
total 128
drwxrwxrwx 2 dwinst db2adm 4096 May 09 14:41 .
drwxrwxrwx 6 dwinst db2adm 4096 May 11 15:04 ..-rwxrwxrwx 1 dwinst db2adm 11216 May 09 14:41 load0007.CT1
-rwxrwxrwx 1 dwinst db2adm 11216 May 09 14:41 load0007.CT2
-rwxrwxrwx 1 dwinst db2adm 408 May 09 14:41 load0007.msg
-rwxrwxrwx 1 dwinst db2adm 11216 May 09 14:41 load0013.CT1
-rwxrwxrwx 1 dwinst db2adm 11216 May 09 14:41 load0013.CT2
-rwxrwxrwx 1 dwinst db2adm 408 May 09
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

The temp directory setting is under the project environment variable settings in the DataStage Administrator and is set for each project. I think this is the one the DB2 load will use.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Datastage Adminstrator cleint --> Project --> Properties -- > Environment -- >General ---> TMPDIR
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dhwankim
Premium Member
Premium Member
Posts: 45
Joined: Mon Apr 07, 2003 2:18 am
Location: Korea
Contact:

Post by dhwankim »

kumar_s wrote:Datastage Adminstrator cleint --> Project --> Properties -- > Environment -- >General ---> TMPDIR
I changed This Parameter /tmp ==> /disk1/dstmp already But result is same.

PLS Help me.~~
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is there a property in the DB2 Enterprise stage that allows you to set the temporary directory? Or a DB2 environment variable?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ghila
Premium Member
Premium Member
Posts: 41
Joined: Mon Mar 15, 2004 2:37 pm
Location: France

Post by ghila »

Hello,

I think that if you have not configured the DB2 Enterprise Options, the stage is using the /tmp directory by default for Local Message files and other DB2 load files. You can add the "Message File" options, available in the stage and use your own directory.
Regards,

Daniel
dhwankim
Premium Member
Premium Member
Posts: 45
Joined: Mon Apr 07, 2003 2:18 am
Location: Korea
Contact:

Post by dhwankim »

ghila wrote:Hello,

I think that if you have not configured the DB2 Enterprise Options, the stage is using the /tmp directory by default for Local Message files and other DB2 load files. You can add the "Message File" options, available in the stage and use your own directory.
I configured the DB2 enterprise option ("Message File") but onley Message file can located in a specific directory. Error File during execting is located in /tmp. I can not control this file
Actually I wanna change error file location.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Also just check whether, the db2 temp directory is pionting to the same. Check in ../sqlib/db2profile or with DBA.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply