1752735 Members
5415 Online
108789 Solutions
New Discussion юеВ

Pro*C Coredump

 
SOLVED
Go to solution
Saravanan Kaliappan
Occasional Advisor

Pro*C Coredump

I wrote a program in Pro*C (oracle 8.1.7 with HP UX 11i) to read a file and split the records into 2 files based on one condition. The program works fine if the file is less than or around 2GB. If the file is moe than 2GB then the program coredump immediately. If I split the big file into smaller files and then I run the program agaisnt the smaller files, it went through fine.

Any idea to run the program without coredump for big files?
6 REPLIES 6
Peter Godron
Honored Contributor

Re: Pro*C Coredump

Saravanan,
i suspect the filesystem is not allowing for filesizes > 2Gb.
Have a look at the /etc/fstab file.
If it says nolargefiles, that is the problem.
Get the filesystem set-up changed.
Peter Godron
Honored Contributor
Solution

Re: Pro*C Coredump

Saravanan,
sorry for the follow-up post, but how are you compiling your code. Is it in 32bit or 64bit mode. I think 32bit can only address files < 2Gb.

Arunvijai_4
Honored Contributor

Re: Pro*C Coredump

Hi Saravanan,

You need to find whether you have enabled largefile support on your FS.

Try with, # fsadm

Make sure, you have enabled largefiles support to handle >2GB

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

Re: Pro*C Coredump

Hi saravanan,

IMPORTANT NOTE: the command I have given is very sensitive. Make sure u use "-m" option.

1) check where the file is situated.

let say in /var/opt/app is the directory where the file is created..

then perform

bdf /var/opt/app
find the LV that is used for this mount point. lets say is is /dev/vg01/lvol9.

now be careful in issuing the following command. Make sure you use "-m" option.

mkfs -m /dev/vg01/lvol9

See whether "largefiles" is mentioned in the output.

If YES,

then most probably the FS ,though supports the largefiles, it wasn't mounted with Largefile support may be.. so mount the FS, with

mount -o largefiles ....

IF NO,

then you need to recreate the FS with largefiles support.. for this you have be using -o largefiles to "newfs" or "fsadm" commands.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Saravanan Kaliappan
Occasional Advisor

Re: Pro*C Coredump

Thanks Peter.

Earlier the program was compiled in 32 bit mode. I changed to 64 bit mode and now no problem. No coredump. It works fine.

Thanks for the lightning response.

Regards,
Saravanan.
Saravanan Kaliappan
Occasional Advisor

Re: Pro*C Coredump

Got the solution for my problem.

Thanks to ITRC members.

Regards,
Saravanan.