Shutdown Oracle DB on SunOS Cluster


 
Thread Tools Search this Thread
Operating Systems Solaris Shutdown Oracle DB on SunOS Cluster
# 1  
Old 06-06-2015
Shutdown Oracle DB on SunOS Cluster

Hi,
I've this Oracle database version:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

Oracle is install in a SunOS DBSERVER1 5.11 11.2 sun4v sparc sun4v cluster (Not RAC environment)
DBSERVER1 is node active and DBSERVER2 is node inactive


Now I need to shutdown Oracle DB and I'd like to Know if I have to put in
before the freeze cluster or I can do the shutdown normally issue the command "shutdown immediate".
I have another cluster redhat and I follow the below sequence to shutdown oracle DB:
Code:
1) clusvcadm -Z <service_name>
2) sqlplus / as sysdba
shutdown immediate
startup
3) clusvcadm -U <service_name>

In SunOS cluster What is the correct set of sequence to shutdown oracle DB?

Thanks in advance!

Last edited by jim mcnamara; 06-07-2015 at 01:01 AM..
# 2  
Old 06-07-2015
I'm confused - the example you gave restarted the oracle instance.

Generally during an oracle install, system startup and shutdown routines:
/var/opt/oracle/oratab are created to handle this. sysadmins do nothing except cluster and system shutdown/reboot stuff.

Is your oracle instance running on a Solaris cluster - it looks that way.

If what you showed is how you handle a reboot, then remove the sqlplus restart command and the clusvcadm -U command in order to completely power down.

Last edited by jim mcnamara; 06-07-2015 at 12:11 PM..
# 3  
Old 06-07-2015
I am not that well versed with SunOS clusters, but we use a lot of Oracle on AIX too. Doesn't the listener have to be shut down too when you want to completely bring the DB down, like this:

Code:
$ lsnrctl stop <listener_name>
$ sqlplus / as sysdba
sql> shutdown immediate
sql> ^D
$

Furthermore, in AIX both the "lsnrctl" and the "sqlplus" has to be issued as a specific user, which is NOT "root" usually. You will have to prepend all these commands be either an su - <ora_adm> -c or even by sudo su - <ora_adm> -c if the situation is the same in SunOS.

I hope this helps.

bakunin
# 4  
Old 06-07-2015
One listener is all that is needed for a single db server with lots of other oracle instances. Bakunin is correct about the listener if the oracle db is the only one. Otherwise if you stop the listener no application can run against other instances of oracle. But there is not enough information in the question to tell.

IF you are actually freezing a single resource, the oracle db, I'm not sure.
# 5  
Old 06-08-2015
You should not issue shutdown commands from instance on Solaris Cluster.

The clusterware will see this as failed resource group and will failover on another node.

What you need to do is :

Identify the cluster group resource which is responsible for resources.
clrg show and clrs show will tell you that.

After you have identifed the cluster group(s) responsible for database you will just need to do a clrg offline group-name

This will stop everything related to database (every resource in resource group[s]), umount filesystems if used, stop ASM etc. -> depending on the resources configuration and database resources setup).

If you want to tinkle around the database while resource group is online you will need to put its resources in unmonitor state clrg unmonitor group-name .
Be sure to return them to monitor after you are done, or risk failover not happening.

Test this on virtualbox cluster or test enviroment, setup a small cluster and get into resource groups and resources Smilie

I haven't done this with oracle databases, but i have with NFS and HA filesystem on sun cluster.


Hope that helps.
Regards
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Solaris

SunOS 8.5 random shutdown

hope this is the correct spot. we have 4 unit running SunOS 8.5 2 in offices and 2 running equipment in the lab. the communicate over our network to run/monitor jobs on the equipment. they randomly shut off recently. twice last thursday and once this friday. the vendor of the equipment... (4 Replies)
Discussion started by: fah_kinright
4 Replies

2. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

3. Solaris

Shutdown the package in SUN cluster

Hi, I have a SUN cluster system. I want to know what script do when the SUN cluster shutdown the package as I may need to modify it ?? Where can I find out this information in the system?? In which directory and log file ??? Any suggestion ??? (5 Replies)
Discussion started by: chuikingman
5 Replies

4. Shell Programming and Scripting

Shell script to Shutdown Computers on Cluster

Hello all. I have built a cluster of 9 Macs for computational chemistry and I need a shell script that I can use from one computer to all the rest to shutdown. I have modified all of the Macs so that there is pass-wordless ssh. As well, I have modified each "visudo" file on each machine by... (1 Reply)
Discussion started by: marcozd
1 Replies

5. UNIX for Advanced & Expert Users

Capturing Oracle Shutdown error

Hi, Iam calling 3 sql scripts through one shell script 'rmia.sh'. Till now this was working fine, but last time while calling the SQL scripts, Oracle was down. But amazingly the exit status was '0' (success)!!! Below is the shell code: #!/usr/bin/ksh -x assign_file asql a.sql 1... (15 Replies)
Discussion started by: ganapati
15 Replies

6. UNIX for Dummies Questions & Answers

Connecting to a Oracle Db using SunOS

Hi Guys, how do I connect to a Oracle Database from my machines running on Solaris 5 and 9. Do I need a Oracle client installed or is there any other way to connect to the Oracle Db without using the oracle client? Any inputs will be highly appreciated. (2 Replies)
Discussion started by: darmat0712
2 Replies
Login or Register to Ask a Question