1753964 Members
7434 Online
108811 Solutions
New Discussion юеВ

when /tmp full ......

 
SOLVED
Go to solution
Ridzuan Zakaria
Frequent Advisor

when /tmp full ......

Hi,

Can some please explain to me why the following script behave differently when /tmp is full

Script 1:
#!/bin/ksh

sqlplus -s / @test.sql


Script 2:
#!/bin/ksh

sqlplus -s /nolog <connect /
@test.sql
exit;
Eof

Script1 run successfully but the script2 terminated with the following message:
msgcnt 152 vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 blo)

Why Script2 to need /tmp and script1 doesn't?

Thanks in advance.
ridzuan
quest for perfections
4 REPLIES 4
SS_6
Valued Contributor

Re: when /tmp full ......

Some time scripts need to create temporary files during processing /tmp needs to have sufficient space. Not only scripts bu compress or swinstall sometime need space in /tmp but you would not find these files because the programe deletes them once the job is finished.
By providing solutions I am helping myself
Jeff Schussele
Honored Contributor

Re: when /tmp full ......

Hi Ridzuan,

Becaused it's coded poorly.
/tmp is the OS domain, /var/tmp is for apps.
Anything other than the OS using /tmp is out of bounds.
Check your scripts & TMP / TMPDIR - they should be /var/tmp - *not* /tmp.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ridzuan Zakaria
Frequent Advisor

Re: when /tmp full ......

Hi Jeff,

That why I puzzled me, my TMP and TMPDIR point to /local/lfs2/tmp. Only when I use script2 syntax it trying to access /tmp.

Is <
Any ideas?

Thanks.
quest for perfections
James A. Donovan
Honored Contributor
Solution

Re: when /tmp full ......

"Here" documents, (i.e. anything of the form <<[-]word) allocate space from /tmp in the form of files (like 99.sh or 338.sh, etc.)

The manpage for ksh describes their usage.

Remember, wherever you go, there you are...