Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: oradim - return codes??

Re: oradim - return codes??

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Mon, 13 Sep 2004 19:38:41 -0400
Message-ID: <hYednfi0GesRstvcRVn-iQ@comcast.com>

"Hans Forbrich" <forbrich_at_yahoo.net> wrote in message news:XCp1d.5019$KU5.4941_at_edtnps89...
| Joel Garry wrote:
|
| > Hans Forbrich <forbrich_at_yahoo.net> wrote in message
| > news:<ki81d.202145$X12.27768_at_edtnps84>...
| >> Gerry Sinkiewicz wrote:
| >>
| >> >
| >> > "David" <goshengoogle_at_yahoo.com> wrote in message
| >> > news:c6a42c32.0409080726.2ed43d0b_at_posting.google.com...
| >> >> I am executing 'oradim' from Java code 9using the system runtime
| >> >> package) to stop and start a 9.2.0.5 database instance. I would
like
| >> >> to capture the return code from oradim to determine the success or
| >> >> failure of the command. I can find no documentation on
return/status
| >> >> codes. Can anyone help with this? Thank you.
| >> >>
| >> >
| >> > It might be better to just check if the DB is running.
| >> >
| >> > grep for smon from a ps -ef.
| >>
| >> Curiosity gets the better of me ... oradim on the same machine as 'ps
| >> -ef'? (Pls explain!)
| >
| > http://www.research.att.com/sw/tools/uwin/download.html
| >
| > jg
| > --
| > @home.com is bogus.
| > :-]
|
| Haven't tried uwin .... does ps interact with the Windows-originated
| processes? Can you see smon?
|
| /Hans

don't know about uwin, but cygwin is ps -W... sman is a thread, so it doesn't show (just oracle.exe):

$ ps -W | grep -i oracle

      832 0 0 832 ? 0 15:56:39 C:\ORACLE\iSuites\bin\dbsnmp.exe

      964 0 0 964 ? 0 15:56:50 C:\ORACLE\iSuites\Apache\Apache\Apache.exe

      984 0 0 984 ? 0 15:56:51 C:\Oracle\Ora817\BIN\TNSLSNR.exe

     1056 0 0 1056 ? 0 15:57:10 C:\ORACLE\iSuites\Apache\Apache\Apache.exe

     1088 0 0 1088 ? 0 15:57:13 C:\ORACLE\iSuites\Apache\jdk\bin\java.exe

     1288 0 0 1288 ? 0 15:57:15 c:\oracle\ora817\bin\ORACLE.EXE

     2260 0 0 2260 ? 0 16:00:48 C:\ORACLE\iSuites\Apache\jdk\bin\java.exe

++ mcs Received on Mon Sep 13 2004 - 18:38:41 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US