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