Wednesday, October 31, 2007

removing oracle shared memory segment in solaris

kill the oracle processes
u@h:OFSWDC:w>ps -ef|grep $ORACLE_SID| grep -v grep|awk '{print $2}'|xargs -i kill -9 {}

view the shared memory still hold by oracle
u@h:OFSWDC:w>ipcs -pmb
IPC status from as of Wed Oct 31 18:25:42 EDT 2007
T ID KEY MODE OWNER GROUP SEGSZ CPID LPID
Shared Memory:
m 19456 0x27926f00 --rw-r----- oracle dba 1140858880 6163 4954

remove it -
u@h:OFSWDC:w>ipcrm -m 19456

No comments: