Solved

Error code 138??

Posted on 2000-05-11
8
1,383 Views
Last Modified: 2013-12-27
Hi all,

Im tring to track down what error code 138 means.

I stop all processes running on the system do a database backup and then restart all processes. After the backup I try making a  command line call from a application (Remedy-ARS) and it returns: error code 138 and doesnt run, where before the backup the script works fine??

> before backup ...
>
> su - root -c "/etc/init.d/hiplink stop"
> /etc/init.d/arsystem stop
> /etc/init.d/oracle.sh stop
>
> after backup ...
>
> /etc/init.d/oracle.sh start
> /etc/init.d/arsystem start
> su - root -c "/etc/init.d/hiplink start"

Can anyone tell me what error code 138 is?

Operating System is Solaris 2.5.1

Cheers
0
Comment
Question by:edans
8 Comments
 
LVL 12

Expert Comment

by:geotiger
Comment Utility
What type script, ksh, csh, awk, or else from what application?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
I suspect that might be an application error code. I don't have a 2.5.1 system handy to check, but I do know that Solaris 2.6 and later doesn't define error codes from 135-142.

When you restart the processes are you doing it the same order and with the same arguments as is done at boot time? If there's an init file(s) in /etc/init.d for the application(s), you should stop and stop the app with those init files using a "start" or "stop" argument as appropriate. Do be careful to ensure that "init-script stop" does actually stop everything that "init-script start" starts up (I've seen more than one vendor botch the "stop" argument).
0
 

Author Comment

by:edans
Comment Utility
Edited text of question.
0
 
LVL 12

Expert Comment

by:geotiger
Comment Utility
Check your Oracle alert file, you may find some clues there if the error is related to Oracle database.

Did you use dbshut and dbstart scripts that Oracle provides? In these scripts, environment variables are set for the specific instances based on information in oratab.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Expert Comment

by:bob.18243
Comment Utility
This may or may not have any relevance.

Under HP-UX, an exit status of 138 means the process terminated as a result of receiving a signal 10.
Signal is ECHILD:

No child processes.  A wait() was executed by a process that had no existing or unwaited-for child processes.
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Your start/stop procedure looks odd. You are apparently root for one, but not the others. Could I see what "ls -l /etc/init.d" shows?
0
 
LVL 5

Expert Comment

by:ianB
Comment Utility
We have opened up a new Solaris Topic Area.  

To increase the visibility of questions, we moved questions we felt
appropriate to the new Solaris Topic Area where they will be easier for
Solaris experts to find and answer. You may view your question at
http://www.experts-exchange.com/Computers/Operating_Systems/Solaris/

If you have any questions about the new topic area you can contact
Community Support by posting a comment at the following URL or by
emailing us at cs@experts-exchange.com.
http://www.experts-exchange.com/Customer_Service/Experts_Exchange/

Ian
Community Support @ Experts Exchange

0
 

Accepted Solution

by:
xPeterS earned 200 total points
Comment Utility
If you are sure that the error code from the operating system , you can look after the error codes in the /usr/include/sys/errno.h file.
I use solaris 2.6 , and in this file '/* XENIX has 135 - 142 */' this line
to 138 error code.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now