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


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Script to force Oracle database shutdown when shutdown immediate does not work
# 8  
Old 03-11-2010
I do give shutdown immediate. I don't use Shutdown as it takes forever to shutdown the database. The reason I need this solution is due to known bugs (MTS Related) in 9iR2 those are fixed in Oracle-10g and higher releases . I am in the process of doing the DB upgrade to Oracle-11g-R2. However it is 3-4 months away.

my shutdown immediate takes long with following message
Code:
Waiting for dispatcher 'D001' to shutdown
.
.
.
.
Waiting for dispatcher 'D020' to shutdown
Then
Waiting for shared server 'S010' to die
.
.
.
.
Waiting for shared server 'S059' to die
All dispatchers and shared servers shutdown
Mon Mar  1 02:19:04 2010
ALTER DATABASE CLOSE NORMAL
Mon Mar  1 02:19:05 2010
SMON: disabling tx recovery
Mon Mar  1 02:19:23 2010
SMON: disabling cache recovery
Mon Mar  1 02:19:23 2010
Shutting down archive processes
Archiving is disabled
Mon Mar  1 02:19:23 2010
ARCH shutting down
ARC0: Archival stopped
Mon Mar  1 02:19:23 2010
ARCH shutting down
ARC1: Archival stopped
Mon Mar  1 02:19:25 2010
Thread 1 closed at log sequence 6678
Successful close of redo thread 1
Mon Mar  1 02:20:48 2010
Completed: ALTER DATABASE CLOSE NORMAL
Mon Mar  1 02:20:48 2010
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Mon Mar  1 02:21:03 2010
Errors in file /oracle/app/oracle/product/9.2.0/admin/TAXPROD/udump/TAXPROD_ora_2103814.trc:
ORA-00600: internal error code, arguments: [504], [0x7000000000214D8], 

and then Hangs...If I try to start I get message
Database is already running
If I do shutdown immediate I get the message
Database shutdown in process
Even after an hour I get same message
Only way at this point is to do 
Shutdown abort
Startup
Shutdown Immedaite
Startup

That's why I need something like this script so I can automate the process

Last edited by Scott; 03-11-2010 at 02:32 PM.. Reason: Code tags, please...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

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 ... (4 Replies)
Discussion started by: db_senior
4 Replies

2. Shell Programming and Scripting

Help required for Oracle database shutdown script conversion from shell to perl

Please tell me how to convert below program from shell script to perl. Same commands need to use in shutdown, just need program help for startup. export ORACLE_BASE=/home/oracle1 lsnrctl start lndb1 sqlplus '/ as sysdba' startup; (2 Replies)
Discussion started by: learnbash
2 Replies

3. Shell Programming and Scripting

db shutdown script

I am going to create shutdown database script. We have dabase shutdown script. But i need take dabase which online and make it down. I got user id which needs to dabase to down ID=`ps -ef | grep -i pmon | grep -v grep | awk '{print $1}'` ( got orace side DB=`ps -ef | grep -i pmon |... (1 Reply)
Discussion started by: allwin
1 Replies

4. Solaris

shutdown -y -i5 -g0 DOESN'T work

hello, The command above seems not working on my solaris 8/9 sparc machines. a. resulted to the ff below when I instead use "shutdown" only. Broadcast Message from root (pts/1) on "hostname" date.. The system "hostname" will be shut down in 30 seconds THE SYSTEM bdosg IS BEING SHUT... (4 Replies)
Discussion started by: lhareigh890
4 Replies

5. Shell Programming and Scripting

Oracle DB Start shutdown scripts

Hi, We have a requirement wherein we do not want to share the Oracle DB sys and system passwords to be shared with the support desk. But they will be responsible for starting/shuting down the Database. Is it possible to write a shell script which will read the sys and system passwords from a... (0 Replies)
Discussion started by: narayanv
0 Replies

6. BSD

Battery Empty -> force shutdown

hi Howto force shutdown on the notebook with freeBSD before battery is empty? (3 Replies)
Discussion started by: ccc
3 Replies

7. 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

8. HP-UX

Shutdown script

Hi, I am on Alpha Server with HP Tru64 system. I wish to setup shutdown to automatically and cleanly shutdown informix during the shutting down of the system. Ie. I was trying to use rc0.d to do this but failed. Has anyone tried doing this before? I already have the script and linked it to... (0 Replies)
Discussion started by: kingsto88
0 Replies

9. UNIX for Dummies Questions & Answers

A script for shutdown

I want to make a script to shutdown a unixware computer from other user then root. In Sco version i use "as root" but in the unixware i don't know. Please help me. 10x (12 Replies)
Discussion started by: kelu
12 Replies

10. UNIX for Advanced & Expert Users

Shutdown script

Hi Guys, I want to execute few of my bash script, so that whenever someone calls shutdown now -r command, I want my script to execute first before shutting down. Any help please????? I've just started playing with the unix system, so far its been brilliant.... (10 Replies)
Discussion started by: alpha_manic
10 Replies
Login or Register to Ask a Question