Home > Uncategorized > kill semaphore in Oracle Instance / remove shared memory from oracle instance

kill semaphore in Oracle Instance / remove shared memory from oracle instance

if you have an issue after shutting down the instance you cannot start the instance it probably due to the fact that the semaphore of the instance is stil locked

#ipcs |grep oracle

Image

Set the ORACLE_SID

Image

sysresv is command to find symaphore attached to Instance.It will also shows shared memory address.

Image

To confrim

ipcs -a | grep oracle | grep <id> | grep <key>

 Image

To clean up symaphore.

ipcrm -s 5996551   <- ID
ipcrm -M 0x9fcf02b4 <- key

confirm that the semaphore is killed

#sysresv

IPC Resources for ORACLE_SID “rmancpr” :
Shared Memory
ID              KEY
No shared memory segments used
Semaphores:
ID              KEY
No semaphore resources used
Oracle Instance not alive for sid “rmancpr”

 

 

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: