Link to home
Start Free TrialLog in
Avatar of subrat13
subrat13

asked on

exiting out of the terminal kills the DB process

Hi,

I start dbsrv7 in the startup script of my application. Now after I start the application, when all processes are running., if I exit from the terminal, the next time log in to the machine, I find the dbsrv7 got killed with  my application processes.

I am in Solaris2.8 and I run my application as:
        login as user
        su root
        start.sh

dbsrv  is started as :
    dbspawn dbsrv7 "...  "  <dbservername>  <databse>

exit from shell i.e root, then exit from terminal causes the problem.

I also tried with nohup, but same problem pesisted.

Can anyone please lt me know the cause and the solution?

Any help in this regard is highly appreciable.

Thanks
Subrat



Avatar of john_reddin
john_reddin

You need to start the process in the background.  This can be done by adding the amphersand to the startup line

start.sh &
Avatar of subrat13

ASKER

I did that also.

But same problem persisted.

The dbsrv is getting killed always.

nohup really should do the trick.  How exactly did you use nohup in the syntax to start the server?

-bret

In start up script I started DB with the following approaches.

1.  nohup dbspawn dbsrv7 -sb 0 -n $dbserverName -ti 0 -m $DBOPTIONS <db name>

or
2. nohup dbspawn dbsrv7 -sb 0 -n $dbserverName -ti 0 -m $DBOPTIONS <db name> & ( i.e. back ground)

or
3. nohup dbsrv7 -sb 0 -n $dbserverName -ti 0 -m $DBOPTIONS <db name> &
( i.e. without dbspawn and background)
Hi,

Any more comments or views.

Thanks
Subrat

Hi,

Any more comments or views.

Thanks
Subrat

Can you humor me on this for a while,
 Can you confirm,  when you logoff as root, but not from the terminal, is the database still running.  If yes, is there something in your profile - or system wide that kills off zombie processess (ie cleans up any processess a user may have started but left running when they logged off).  
ASKER CERTIFIED SOLUTION
Avatar of ve3cnu
ve3cnu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
With -ud option it is working fine i.e start the process as a daemon.

Thanks
Subrat