- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Strange OS Behavior
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 07:11 PM
тАО06-03-2004 07:11 PM
Strange OS Behavior
Not sure If I can explain the entire sceanrio in a mail , but let me try . A Cobol routine calling a C function to move files from one place to another depending on upon certain critiria , the C program is designed in such way that if the file to be moved is existing in the target place , the he will overwrite . Stangly when The Cobol routine calls this C function this does not happen the entire program just hangs .
But if you run C program on its own using the same file in this situation it works fine .The previous version of this Cosftwasre in the CC and the new CC do not have difference .
The only difference on the system is Oracle 9i . Can some one suggest me something ? Pls ask as many as you need to to understand the problem .
Thanx Guys , Sorry for a long story but no other way . :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 08:09 PM
тАО06-03-2004 08:09 PM
Re: Strange OS Behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 08:19 PM
тАО06-03-2004 08:19 PM
Re: Strange OS Behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 09:34 PM
тАО06-03-2004 09:34 PM
Re: Strange OS Behavior
Does it hang forever of it timesout after sometime. It may be that the file which the C program wants to write is having a lock and the prog just waits for it.
manish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 09:47 PM
тАО06-03-2004 09:47 PM
Re: Strange OS Behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 09:58 PM
тАО06-03-2004 09:58 PM
Re: Strange OS Behavior
I would suggest to trace both programs Cobol and C. If you can't figure what's appening, copy both and make more verbose versions.
As for the depencies, do you link against Oracle libraries ? (use ldd to find out if necessary).
If the C program works fine on its own, check the environnement, args, ..., when it is called from the Cobol one.
Cheers
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 11:05 PM
тАО06-03-2004 11:05 PM
Re: Strange OS Behavior
Your statement:
"The only difference on the system is Oracle 9i"
Well, i would just like to raise a thought here not sure about its significance.
So as far as OS is concerned, installation of 9i must have changed the kernel parameters and probably you might have added some patches as well. Why don't you look back and analyse if any of those are the culprits.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 11:05 PM
тАО06-03-2004 11:05 PM
Re: Strange OS Behavior
Thank you so far for your interest in this strange behavior . Yes it does have links to Oracle libs, syncsort,quick select and wholelot of thirs party products , at the point of the problem , where the cobol rogram hangs there is no call made to the c call , I even tried to use "lsof" and fuser and few other things to find if the file the c code want to use is locked or in use by some other resources but NO .
Let say the cobol passes a file name called X.Y to the C function to move that file from place "old" to new and the X.Y is already existing in place "new" , this is where the cobol hangs , when you go and remove the exixting file in the place "new" the fileX.Y becomes a directory immediately and there is no where a call is made to make directories in any of these codes .
The most strange problem I have ever seen in my life .