1820561 Members
2036 Online
109626 Solutions
New Discussion юеВ

unix administrator

 
SOLVED
Go to solution
davidraju
Occasional Contributor

unix administrator

Oracle to run shellscripte the server say /tmp is full now I am what to do?

Server say /tmp 100 full


7 REPLIES 7
Dennis Handly
Acclaimed Contributor
Solution

Re: unix administrator

What is the size of /tmp?
$ bdf /tmp

Is /tmp on its own filesystem? If not, you would have to search more places than in the following.

What large files are there??
$ du -kxs /tmp/*

If the above command shows a directory, do that du command in for that directory.

If you figure out these files are useless, you would have to remove them, or move them elsewhere.
DCE
Honored Contributor

Re: unix administrator



by definition the /tmp directory is for temporary files. Delete anything in it older than two weeks (this can be done via a cron job)

It is probably a good idea to backup the tmp directory before you initially erase the files as some programmers do not understand the word temporary
Rasheed Tamton
Honored Contributor

Re: unix administrator

If it is really the /tmp full then the above info is enough to solve the issu

or

if you got this error while you try to install oracle, then you have to change the oratmp variable to another dir path; normally /var/tmp is good for this.


Rasheed Tamton.
Steven E. Protter
Exalted Contributor

Re: unix administrator

Shalom,

Welcome to ITRC.

Setting the TEMP variable to another location prior to starting the Oracle installer will solve the problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: unix administrator

Strangely /tmp is not intended for user or application temporary files; those should go in /var/tmp; only OS related temp files should go in /tmp. Well-written applications and shell scripts should observe the TMPDIR convention and creat temporary files in ${TMPDIR} or /var/tmp if TMPDIR is not defined.

Your shell scripts should be modified to do something like this:

TDIR=${TMPDIR:-/var/tmp}
TFILE1=${TDIR}/X${$}_1.tmp
TFILE2=${TDIR}/X${$}_2.tmp
...
...

If it ain't broke, I can fix that.
davidraju
Occasional Contributor

Re: unix administrator

Thanks, very good answer
Hein van den Heuvel
Honored Contributor

Re: unix administrator

David, once the problem is solved/understood you might want to say thanks with 'points' and then close the topic.

See: http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Regards,
Hein.

[ 0 point for this please ]