- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- funcion system() does not finish !
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
тАО11-30-2004 10:54 PM
тАО11-30-2004 10:54 PM
funcion system() does not finish !
We dit not change program, environment, operating system. This function is standard c library function. We do not understand the relation between oracle and sustem call.
Have somebody idea ? Thanks.
- Tags:
- system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2004 11:06 PM
тАО11-30-2004 11:06 PM
Re: funcion system() does not finish !
interprets string as a command and executes it. See sh(1) to determine
which command interpreter is defined by sh on your system.
The system() function invokes the fork() function to create a child process
that in turn uses theexec function to run sh, which interprets the shell
command contained in the string parameter. The current process waits until
the shell has completed before returning.
If you have patched Oracle, possibly the called shell (or script) may have been changed. Try to find out which sh command is hanging (f.e. by "ps" command).
Erich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2004 01:41 AM
тАО12-01-2004 01:41 AM
Re: funcion system() does not finish !
I forget write that the program which hangs runs not as oracle. We did not change it and its environment, except ORACLE_HOME, however system() is not its part. Program runs under /usr/csh and I supposed that the fork() will create csh also. Now I do not know. However I mus say that the submited command is not in csh specific syntax, for ex. "ls -l".
The program when hanged has not child. So I do not know, if it hangs before fork() is executed or after child process finished.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2004 08:21 PM
тАО12-01-2004 08:21 PM
Re: funcion system() does not finish !
You can also play arround with following short c-program, by changing the system call to your needs:
main()
{
if(system("sleep 10") < 0);
{
perror("system");
}
printf("after system-call\n");
exit(0);
}
Erich.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 04:04 AM
тАО12-02-2004 04:04 AM
Re: funcion system() does not finish !
The simple program works.
Problem is with more complex programs with call to Oracle. We find that problem was in use of bad version of library file libjip8.so in $LD_LIBRARY_PATH. We did not find what we made bad in client installation. Which part of oracle installs this file.
Best regards
Fedor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 04:10 AM
тАО12-02-2004 04:10 AM