Shared memory view purge commands IPCS and IPCRM

Source: Internet
Author: User

Today, a problem occurred, in the restart * * *, the use of the Start command, the results of the program in any event, the Final Solution:

View transmit's log has no results, and then view its next nohup.out, with the following output:

......

Notice:06-21 15:57:06: * 0 load_dispatch_dict:load_num:10, max_num:256
Warning:06-21 15:57:06: * 0 transmit.cpp 3943 init_shm:shmget (), File exists

The file to be loaded already exists, indicating that the corresponding memory for the file was not released before, and two commands were used: IPCS command and IPCRM command

Remove the shared memory and reboot

Ipcs:check the shared memory allocation on a system
ipcrm:manually deallocate shared memory on a system


Obtain IPC information:
IPCS [-m|-q|-s]
-m outputs information about shared memory (shared memory)
-Q Output Information about the information queue (message queue)
-S output information about the semaphore
# ipcs-m
IPC status from as of April 10, 2007 Tuesday 18:32 18 sec CST
T ID KEY MODE OWNER GROUP
Shared Memory:
M 0 0x50000d43--rw-r--r--root root
M 501 0x1e90c97c--rw-r-----Oracle DBA
#ipcs |grep Oracle|awk ' {print $}
501
Remove IPC (Clear shared memory information)
Ipcrm-m|-q|-s shm_id
%IPCRM-M 501
For i in ' ipcs |grep Oracle|awk ' {print $} '
Todo
Ipcrm-m $i
Ipcrm-s $i
Done
Ps-ef|egrep "Ora_|asm_" |grep-v grep |grep-v Crs|awk ' {print $} ' |xargs kill-9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.