Subscribe to aSkDba.org Forum Posts

Enter your email address:

Delivered by FeedBurner


Askoracledba's Weblog Tech@aSkDbA.org


AskDBA.org Forum » Database Administration

Database shutdown hangs.

(2 posts)
Average Rating For This Topic:

Rate This Topic Yourself:
  • Started 7 months ago by pratheep
  • Latest reply from Saurabh Sood
  • This topic is not a support question

  1. pratheep

    new member
    Joined: Jan '10
    Posts: 1

    offline

    Hi,

    One of my production database shutdown process hangs every planned shutdown. (Both shutdown immediate and abort options).

    Database version & OS : 10.2.0.4 on SuSe Linux 10 SP2, All the latest patches, cpus installed.

    Some of the active database server process are preventing the database from shutdown. I tried to kill the process from OS root user also. But the process are not closing. When I check ps command the process are in 'D' state (uninterruptable sleep). For the particular pid, strace command also stuck. As I verified in v$session before shutdown immediate there is no active sessions or jobs in database. But above mentioned "D" state pid's are exist in v$process.
    Please suggest me, how to find the history of the process.? like when it is hanged/which session id/which sql statement caused that..?

    Thank you all,
    Pratheep

    Posted 7 months ago #
  2. Saurabh Sood

    admin
    Joined: Jun '08
    Posts: 30

    offline

    Hi Pratheep,

    Processes with status "D" cannot be killed at all. They are in "D" status because they are sleeping and waiting for a resource like "Kernel lock" etc. which they will never get.

    If you are seeing these ospid in v$process they will not allow "shutdown immediate" or "shutdown abort".

    The only way to remove such processes is to "reboot" server.

    These processes cannot be traced down.

    Check If you can apply Dead Connection detection (DCD) to avoid such situations in future.

    Cheers!!!

    Saurabh Sood
    Senior Consultant:DBA Services
    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

158 posts in 58 topics over 28 months by 43 of 83 members. Latest: shyamsundar, oraclebychoice, taraldesai