1830238 Members
3565 Online
109999 Solutions
New Discussion

need to read core file

 
SOLVED
Go to solution
jedd
Advisor

need to read core file

hello everyone
i need help in reading a core file. i have an oracle instance that throws a core file/dump everytime it starts or stops. even if it throws a core file, it starts/stops and runs fine. can somebody help me read the core file??
i'm running HP-UX 11 64 bit. i'm using adb to read the core file, but am not too familiar with the syntax and having problems in reading it.
i will be attaching the core file and hope that somebody can help me with it.
thanks a lot.
my core file sits in /oracle//817_64/dbs/core_<****>/core
can you help me in the proper syntax of the adb, or are there any freeware debugger there that i can use?
again thanks
11 REPLIES 11
S.K. Chan
Honored Contributor
Solution

Re: need to read core file

For a quick look at the core file you can use the command 'strings', though not very helpful but you can usually catch an error when you see it.
# strings core
Hopefully you'll get some help from any "adb expert" out there.
Animesh Chakraborty
Honored Contributor

Re: need to read core file


Hi,
You can refer the following discussions:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x00016d96588ad4118fef0090279cd0f9,00.html
Did you take a backup?
Steve Steel
Honored Contributor

Re: need to read core file

Hi


Use file core

# file /*/core
/makepatchbundle/core: core file from 'e' - received SIGSEGV
/tmp/core: core file from 'pax' - received SIGSEGV

This is often a good guide to what is wrong.

adb can wait until this test has been done.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
MOI_1
Occasional Advisor

Re: need to read core file

hi
use file core >tmycore
so you can read it also you can use one of the optins with file command like
file -e core
the redirect sign is for the long file so you can read it propably.
thanks.
Do it always right
Bill McNAMARA_1
Honored Contributor

Re: need to read core file

file core
for finding out which process and signal was received

what core
for library information

wdb (hp wildebeest debugger)
for stack trace and debugging
(http://www.hp.com/go/developers)

Later,
Bill
It works for me (tm)
Trond Haugen
Honored Contributor

Re: need to read core file

A program core file is most usefull if you also have the source of the program that produced it and have compiled it with the debug option. Then you can find what line of the program that created the core file. Otherwise the moust you get is the output from 'file core' (on 11.x).
If a system coredumps you'll find the files in /var/adm/crash usefull if you have q4 installed and have some experience with it. You can also get SOME info with adb.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Steve Steel
Honored Contributor

Re: need to read core file

Hi


You certainly have enough choices now


what core
file core
file -c core
adb program core
$C
$Q

The $C will give a stack trace if it is there
and $Q exits.remeber adb has no prompt.

Please post the results if you need more


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill McNAMARA_1
Honored Contributor

Re: need to read core file

Yes,
Ctrl D to exit!

(or search formus form "how to exit adb!!)

;)
Later,
Bill
It works for me (tm)
Paula J Frazer-Campbell
Honored Contributor

Re: need to read core file

Bill

I do not know how many "got" your last post.

;^))


Paula
If you can spell SysAdmin then you is one - anon
Steven Gillard_2
Honored Contributor

Re: need to read core file

My advice is - don't bother. Corefiles are generally useless unless you have access to the source code.

As it was Oracle there should be a process trace file in the bdump or udump directory that corresponds to the core file. I suggest you gather up all this along with your alert log and take it to Oracle support.

Regards,
Steve
jedd
Advisor

Re: need to read core file

hi all
thanks for the response. i was able to figure the core file out, after pooling all the responses from my post.
that is why i love this forum.
what happened was, after patching oracle from 8.1.7 to 8.1.7.3.0.. there was another patch that needed to be applied to correct the errors that came with 8.1.7.3.0.
again, i do thank everybody for all your help.