1832592 Members
3040 Online
110043 Solutions
New Discussion

Can core file be deleted

 
wish_1
Frequent Advisor

Can core file be deleted

Hi All,

We are having HP RP7400 with OS HP-UX11i and Oracle 9i, 9iAS 2 node cluster with va7100 Array.

In one of the nodes there is core as follows:-
-rw------- 1 oracle dba 18045868 Nov 19 10:07 core

I want to know whether it can be deleted or not, i also want to know the date of the same.
I want to delete it becoz / size is 90%.

Thax in adv.
Wish
9 REPLIES 9
Arunvijai_4
Honored Contributor

Re: Can core file be deleted

You can delete core files if its not required for any debugging or support call. To know which process dumped core, use # file core

Deleting a core is totally depends upon your need.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
MarkSyder
Honored Contributor

Re: Can core file be deleted

Run the command:

file core

If the filetype is core, delete it.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Indira Aramandla
Honored Contributor

Re: Can core file be deleted

Hi,

Yes you can delete the core file if you do not need it for any analysis (debug) prupose.

To see what the core file you can do
file core
as other mentioned or
strings core


IA
Never give up, Keep Trying
Muthukumar_5
Honored Contributor

Re: Can core file be deleted

check which application generated that core as,

# file core

will give signal and file generated that.

# what core
# strings core

If you don't want to analyse the application then you can remove that. I hope it is generated by oracle application. See the username oracle. I hope it will be.

hth.

Easy to suggest when don't know about the problem!
Joseph Loo
Honored Contributor

Re: Can core file be deleted

hi,

sure, core file may be deleted unless u know how to debug it.

use "file core" to find out what error it may be giving.

regards.
what you do not see does not mean you should not believe
Steven E. Protter
Exalted Contributor

Re: Can core file be deleted

Shalom wish,

They can also be prevented from creation.


In /etc/profile or .profile for user

ulimit -Sc 0

No more core files created.

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
Yogeeraj_1
Honored Contributor

Re: Can core file be deleted

hi,

if you are not sure, you can also move it to another file system with more space for further analysis.

There must also be something wrong in your script so that the core file is being generated in / instead of the oracle user home directory or like...

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Senthil Prabu.S_1
Trusted Contributor

Re: Can core file be deleted

Hi,
you cna delete core file.

use command file < core file > to find which application have dumped the core.

Also, use this one line script to reomve all cores conditionally:

PROMPT> find ~ -name core -exec file {} \; -exec rm -i {} \;

--
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Raj D.
Honored Contributor

Re: Can core file be deleted

Hi Wish ,

You can certainly delete the core file to keep disk/fs space ok. The core file generates due to abnormal termination of process or app. You can find the core file and run

# ls -l core # check the date/time stamp.
# file core ,
# strings core ,

to know details of that core file , if want to know which process/app made that core file. And then can be deleted.

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "