Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

added /u02/scripts/startdb.sh in rc.local but not working

VPSApr 13 2008 — edited Apr 14 2008

Friends,

OS: RHEL AS 3
DB: 9iR2

I created a script startdb.sh to start the oracle database when the system startsup.
the script startdb.sh contains....

#!/bin/bash
su - oracle
. $HOME/.bash_profile
sqlplus '/as sysdba' @ /u02/scripts/startup.sql
lsnrctl start

in the rc.local i added the below line at the end.

/u02/scripts/startdb.sh

when i reboot the pc to test the script.

its logging in to oracle user but the database is not up the error is

-bash: no job control in this shell

what's the mistake i made in the above steps?
note: if i run the script manually as oracle user its working.

thanks & regards

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2008
Added on Apr 13 2008
8 comments
3,531 views