Auto Start/Stop Didnt Work in Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Auto Start/Stop Didnt Work in Solaris 10
# 1  
Old 04-23-2008
Power Auto Start/Stop Didnt Work in Solaris 10

Hi...all

database - 10g Rs 2 with ASM
platform - Sun Solaris V890 64bit

This is the step i use to auto start the database n ASM: (auto start can start but need to kill lsvcrun first)

1 dbora---script
2 start_shutdown_asm.ksh---script
3. Dbora file must be put under /etc/init.d directory and start_shutdown_asm.ksh must be put under /ek_ora/script directory.

Note : Please create the 'script' directory if it does not exist. Create ‘log’ directory in the ‘script’ directory. Also create ‘data’ and ‘arch’ in /ek_bkup

4. Go to /etc/rc3.d OR rc2.d, delete all S96init.cssd file/link.----as root

5. Go to /etc/rc3.d OR rc2.d, delete all S99dbora file/link.----as root

6. Create this new file in /etc/rc3.d as root.

7. vi S96init.cssd.

Insert this command in the file. Refer file attached
Code:
/etc/init.d/init.cssd start
sleep 10
kill -9 `ps -ef | grep lsvcrun | grep S96init.cssd | awk '{print $2}'`
sleep 30
/etc/init.d/dbora start

8. Change mod 775 to the file.

This is the step i use to auto stop the database n ASM:

1. edit the file /etc/rc0.d/K01dbora

2. Contents of K01dbora :
/etc/rc0.d/dbora stop

-------------------------------------------------------------------

Some Info :

1. I didnt edit anything in /etc/inittab
2. I need to kill the lsvcrun process first in order to bring up the asm n database.
3. This is the content of dbora :

Code:
#!/bin/sh
#export ORA_DB_HOME=/u01/app/oracle/product/10.2.0/db_1
#export SH=/apps/oracle/general/sh

ORA_DB_HOME=/ek_ora/10.2.0/db_1
SH=/ek_ora/script
export ORA_DB_HOME SH

ORA_OWNER=oracle
case "$1" in
    'start')
        # Start the Oracle databases:
        # The following command assumes that the oracle login
        # will not prompt the user for any values
      su - $ORA_OWNER -c "$SH/start_shutdown_asm.ksh start" >  /tmp/start_asm.log
      su - $ORA_OWNER -c "$ORA_DB_HOME/bin/dbstart $ORA_DB_HOME" > /tmp/dbstart.log
	su - $ORA_OWNER -c "$ORA_DB_HOME/bin/lsnrctl start" > /tmp/start_lsnrctl.log
      su - $ORA_OWNER -c "$ORA_DB_HOME/bin/emctl start dbconsole" > /tmp/emctl_start.log
        ;;
    'stop')
        # Stop the Oracle databases:
        # The following command assumes that the oracle login
        # will not prompt the user for any values
 	su - $ORA_OWNER -c "$SH/start_shutdown_asm.ksh stop" > /tmp/shutdown_asm.log
	su - $ORA_OWNER -c "$ORA_DB_HOME/bin/dbshut" > /tmp/dbshut.log
	su - $ORA_OWNER -c "$ORA_DB_HOME/bin/lsnrctl stop" > /tmp/stop_lsnrctl.log        
	su - $ORA_OWNER -c "$ORA_DB_HOME/bin/emctl stop dbconsole" > /tmp/emctl_stop.log
        ;;
esac



APPRECIATE TO ANYBODY TO HELP ME SOLVE THIS ISSUE. I'VE ALREADY REFER TO ORACLE METALINK AND THE NOTES IT SEEM DOESNT WORK


This is the logfile show that autostop didnt work...

Errors in file /ek_ora/admin/ekadaste/bdump/ekadaste_asmb_2759.trc:
ORA-15064: communication failure with ASM instance
ORA-03113: end-of-file on communication channel
Mon Mar 24 07:34:47 2008
ASMB: terminating instance due to error 15064
Instance terminated by ASMB, pid = 2759
Wed Apr 16 17:14:07 2008

Last edited by adzuanamir; 04-23-2008 at 04:16 AM.. Reason: add more info
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. Solaris

Stop/start script problem on Solaris-10

I have Big brother script, which start/stop Big Brother processes. Something got change on server and now I am not able to start/stop it. There is no change in script, as I compared it from other server. This service is being managed by bb user (group is also bb). root@tsazdq04:/#... (6 Replies)
Discussion started by: solaris_1977
6 Replies

3. Solaris

How to auto start a service on rebooting a Solaris 5.10 x86 machine?

Hi all, How to auto start a snmpd deamon on rebooting a Solaris 5.10 x86 machine. snmpd's path: /opt/download/net-snmp/sbin Thank you in advance. (6 Replies)
Discussion started by: ziosnim
6 Replies

4. Solaris

auto start interfaces

Hi, I'v just installed solaris 10 on a server. I have configured 4 nic card's, but when i reboot the system i have to ifup all 4 of them evertime after a reboot. How can i solve this ? (6 Replies)
Discussion started by: p33w5t3r
6 Replies

5. HP-UX

Hardware Change 715/33 715/100 HIL - PS2 - XServer didnt start ???

I Need help ! We changed a WS HP 715/33 the new is a HP 715/100 ! The old one supports a HIL keyboard and mouse. The "new" one PS2 keyboard. We changed only the hardware not the harddisk - now the Xserver didnīt start ! What have we to configure thatt the WS supports the PS2 keyboard under... (0 Replies)
Discussion started by: rbrandt1
0 Replies

6. UNIX for Dummies Questions & Answers

how to start and stop the network in Solaris 9??

Hi how do I start or stop the network interfaces in Solaris 9 I have tried "/etc/init.d/network stop" but it doesn't work thanks (1 Reply)
Discussion started by: eldiego
1 Replies

7. Solaris

Help: how to start/stop FTP server in solaris?

As the title. Thanks (1 Reply)
Discussion started by: eddsos
1 Replies

8. UNIX for Dummies Questions & Answers

stop cdrom from auto-mounting

Somebody loaded RH 7.3 for me on my PC & now I'm running through & configuring all my settings. Question: Every time I insert a CD into the cdrom, it automatically mounts the cdrom if there's anything on the CD. How do I disable this? I don't want it to automount. Thanks in advance!! (2 Replies)
Discussion started by: jalburger
2 Replies
Login or Register to Ask a Question