Do u know how to get the error messages that get generated
while the system boots. In NT we normally check the event viewer. If there is a way to view the log files, then I can email
u the log file itself
THis is what I did after loggin in as root. Otherwise,
if I log in as oracle, I dont have the permission to
create files in the system folders.
 I created a file called /etc/init.d/oracle with the contents
echo "Entered init.d oracle script "
case $1 in
su - oracle -c /export/home/oracle/oracle817/bin/dbstart
su - oracle -c "/export/home/oracle/oracle817/bin/lsnrctl start"
su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
su - oracle -c $ORACLE_HOME/bin/dbshut
echo "End of the oracle script - gopi"
 ln -s /etc/init.d/oracle /etc/rc2.d/S98oracle. Here is a listing
of the folder.
C:\>ls -l S9*
-rwxr--r-- 5 root sys 1131 Feb 23 09:19 S90wbem
-rwxr--r-- 5 root sys 391 Jan 5 2000 S92volmgt
-rwxr--r-- 2 root sys 364 Jan 5 2000 S93cacheos.finish
-rwxr--r-- 5 root sys 1181 Jan 5 2000 S94ncalogd
-rwxr--r-- 5 root sys 522 Dec 22 2000 S95ncad
lrwxrwxrwx 1 root root 16 Jul 13 20:25 S96ab2mgr -> ../init.d/ab2mgr
lrwxrwxrwx 1 root other 18 Jul 30 00:53 S98oracle -> /etc/init.d/oracle
-rwxr--r-- 5 root sys 447 Jan 5 2000 S99audit
-rwxr--r-- 5 root sys 2804 Dec 2 1999 S99dtlogin
 ln -s /var/opt/oracle/oratab /etc/oratab
 I rebooted and expected oracle to start. But oracle fails to
I dont know in which folder the solaris OS writes the messages.
I do see this line "Entered init.d oracle script " on the screen
but I dont think it is sucessfully executing the dbstart since
I dont see "End of the oracle script - gopi".
Solaris puts system messages in /var/adm/messages. What is logged there is controlled by /etc/syslog.conf
The output from your script will not get logged anywhere unless you direct it. For example, define a logfile as LOG=/tmp/start.log
and then for each command redirect standard out to the log as in
/usr/local/bin/doit.script > $LOG
Standard error (error messages) can also be redirected by adding a 2>&1 to the end as in
/usr/local/bin/doit.script > $LOG 2>&1
grajee, did you setup your env in your dbstart file? Like you said, you could mannually start the db with the script, but not the autostart, I think the difference here is the env. Try and see if it works.