Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g7N09fQ20393
 for <oracle-l@naude.co.za>; Thu, 22 Aug 2002 20:09:41 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id RAA59134;
 Thu, 22 Aug 2002 17:06:56 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004BDC7E; Thu, 22 Aug 2002 16:53:32 -0800
Message-ID: <F001.004BDC7E.20020822165332@fatcity.com>
Date: Thu, 22 Aug 2002 16:53:32 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Steve Perry" <sperry@sprynet.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Steve Perry" <sperry@sprynet.com>
Subject: Re: Shutdown Immediate Hanging
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----=_NextPart_000_0798_01C24A0D.A1FDCBB0"
------=_NextPart_000_0798_01C24A0D.A1FDCBB0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Messagethanks.=20
I'll take a look at the notes.

Steve
  ----- Original Message -----=20
  From: Muqthar Ahmed=20
  To: Multiple recipients of list ORACLE-L=20
  Sent: Thursday, August 22, 2002 8:58 AM
  Subject: RE: Shutdown Immediate Hanging


  Steve,

  Recently I got same problem and I have resolved it.  This will happen =
if you setup INITIAL and NEXT extent size very small for TEMPORARY =
tablespace.  Look at the following information:
       http://metalink.oracle.com and look for the following DOC ID:
       DOC ID: 61997.1
       DOC ID: 1076161.6

  I created new LOCALLY MANAGED TEMPORARY tablespace which handles =
better than DICTIONARY tablespace:

       CREATE TEMPORARY TABLESPACE temp
           TEMPFILE '/d05/oradata/prod/temp01.dbf' SIZE 2048M=20
           EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;

      ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;

  Muthar Ahmed
  DBA
    -----Original Message-----
    From: Steve Perry [mailto:sperry@sprynet.com]
    Sent: Wednesday, August 21, 2002 11:13 PM
    To: Multiple recipients of list ORACLE-L
    Subject: Shutdown Immediate Hanging


    I hope somebody can help me with this  shutdown problem. There's 2 =
questions unless: how to troubleshoot a stalled shutdown and the best =
way to deal with it.

    #1 - Database hangs during shutdown
    We have several instances running 8.1.7.3 on Win2k and continue to =
have intermittent shutdown problems.
    The shutdown never completes.
    Here's are the steps used to stop the database
    1.) Stop the application servers
    1.) run a kill session script to kill all remaining sessions except =
the one running the script=20
    2.) issue shutdown immediate and hope it shuts down.

    At this point, the database closes but it never dismounts.
    We never receive the "Completed: ALTER DATABASE DISMOUNT"

    Is there anything I can do to diagnose the problem at this point?=20

    After 15 minutes, Arcserve backs up the files to tape (delay field =
in arcserve job).
    After the backup is complete, the database startup script is run.
    The alert log says the startup is normal, but no connections are =
allowed into the database.

    I either have to do a shutdown abort or stop the service and then I =
can start the database.
    I wrote a script to detect the shutdown hangs that will page me, do =
a shutdown abort, startup and then shutdown immediate (before the backup =
job starts)
    There's not much I can do when it stalls and I don't mind running =
the script if it won't corrupt my database.
    Is there a better way to handle this?=20

    I checked metalink and opened a tar.=20
    Oracle said it was a security dll issue with MS and that I should =
change the scripts to shutdown the service instead of using svrmgrl or =
sqlplus. That was fine until I realized that stopping the service will =
do a shutdown immediate. If the database doesn't complete before the =
ora_<SID>_shutdown_timeout value, it does a shutdown abort (or =
equivalent).

    Thanks,
    Steve

------=_NextPart_000_0798_01C24A0D.A1FDCBB0
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#fcfbd1>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>thanks. </FONT></DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>I'll take a look at the =

notes.</FONT></DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Steve</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DMuqthar.Ahmed@decoratetoday.com=20
  href=3D"mailto:Muqthar.Ahmed@decoratetoday.com">Muqthar Ahmed</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DORACLE-L@fatcity.com=20
  href=3D"mailto:ORACLE-L@fatcity.com">Multiple recipients of list =
ORACLE-L</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, August 22, 2002 =
8:58=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: Shutdown Immediate =

  Hanging</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Steve,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Recently I got same problem and I have resolved it.&nbsp; =
This will=20
  happen if you setup INITIAL and NEXT extent size very small for =
TEMPORARY=20
  tablespace.&nbsp; Look at the following =
information:</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; <A=20
  href=3D"http://metalink.oracle.com">http://metalink.oracle.com</A> and =
look for=20
  the following DOC ID:</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; DOC ID: 61997.1</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; DOC ID: =
1076161.6</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
  created new LOCALLY MANAGED&nbsp;TEMPORARY tablespace which handles =
better=20
  than DICTIONARY tablespace:</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; CREATE TEMPORARY TABLESPACE=20
  temp</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPFILE=20
  '/d05/oradata/prod/temp01.dbf' SIZE 2048M&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTENT =
MANAGEMENT=20
  LOCAL UNIFORM SIZE 1M;<BR></FONT></SPAN><SPAN =
class=3D325304612-22082002><FONT=20
  face=3DArial color=3D#0000ff size=3D2></FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp; ALTER DATABASE DEFAULT TEMPORARY =
TABLESPACE=20
  temp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Muthar Ahmed</FONT></SPAN></DIV>
  <DIV><SPAN class=3D325304612-22082002><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>DBA</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
    size=3D2>-----Original Message-----<BR><B>From:</B> Steve Perry=20
    [mailto:sperry@sprynet.com]<BR><B>Sent:</B> Wednesday, August 21, =
2002 11:13=20
    PM<BR><B>To:</B> Multiple recipients of list =
ORACLE-L<BR><B>Subject:</B>=20
    Shutdown Immediate Hanging<BR><BR></FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>I hope somebody can =
help me with=20
    this&nbsp; shutdown problem. There's 2 questions unless: how to=20
    troubleshoot&nbsp;a stalled&nbsp;shutdown and the best way to deal =
with=20
    it.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>#1 - Database hangs =
during=20
    shutdown</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>We have several =
instances running=20
    8.1.7.3 on Win2k and continue to have intermittent shutdown=20
    problems.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>The shutdown never=20
    completes.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>Here's are the =
steps used to stop=20
    the database</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>1.) Stop the =
application=20
    servers</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>1.) run a kill =
session script to=20
    kill all remaining sessions except the one running the script =
</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>2.) issue shutdown =
immediate and=20
    hope it shuts down.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>At this point, the =
database=20
    closes but it never dismounts.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>We never receive =
the "Completed:=20
    ALTER DATABASE DISMOUNT"</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>Is there anything I =
can do to=20
    diagnose the problem at this point? </FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>After 15 minutes,=20
    Arcserve&nbsp;backs up&nbsp;the files to tape (delay field&nbsp;in =
arcserve=20
    job).</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>After the backup is =
complete, the=20
    database startup script is run.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>The alert log says =
the startup is=20
    normal, but no connections are allowed into the =
database.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>I either have to do =
a shutdown=20
    abort or stop the service and then I can start the =
database.</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>I wrote a script to =

    detect&nbsp;the shutdown&nbsp;hangs&nbsp;that will page me, do a =
shutdown=20
    abort, startup and then&nbsp;shutdown immediate (before the backup =
job=20
    starts)</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>There's not much I =
can do when it=20
    stalls and I don't mind running the script if it won't corrupt my=20
    database.</FONT></DIV>
    <DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>Is there a better =
way to handle=20
    this?&nbsp;</FONT></DIV></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>I checked metalink =
and opened a=20
    tar. </FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2>Oracle said it was =
a security dll=20
    issue with MS and that I should change the scripts to shutdown the =
service=20
    instead of using svrmgrl or sqlplus. That was fine until I realized =
that=20
    stopping the service will do a shutdown immediate. If =
the&nbsp;database=20
    doesn't complete before the ora_&lt;SID&gt;_shutdown_timeout value, =
it does=20
    a shutdown abort (or equivalent).</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial color=3D#000000 =
size=3D2>Thanks,</FONT></DIV>
    <DIV><FONT face=3DArial color=3D#000000=20
size=3D2>Steve</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0798_01C24A0D.A1FDCBB0--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Steve Perry
  INET: sperry@sprynet.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

