- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- releasing shared memory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 07:36 AM
02-04-2003 07:36 AM
After aborting an Oracle database its shared memory is not release. 'ipcs -ma' command showed
T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME
Shared Memory:
m 458755 0x00000000 --rw-r----- oracle dba oracle dba 0 673382400 10888 23003 15:50:04 14:40:01
16:40:32
m 2052 0x4ff2cc5c --rw-r----- oracle dba oracle dba 0 441552896 10888 23003 15:50:04 15:50:04
16:40:32
The "NATTACH" is zero.
The shared memory is aprox. 1 GB. Then if oracle tries to start again it reports error messages due to cannot create shared memory segments.
The only way I know is reboot.
Can I release that shared memory in other way ?
Thanx a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 07:38 AM
02-04-2003 07:38 AM
SolutionIf you are absolutely sure that oracle is down and if you don't any any db processes with ps -ef|grep ora, then you can use ipcrm to delete the memory segment.
ipcrm -m KEY
Where Key is the second field associated with the corresponding shared memory segment.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 07:41 AM
02-04-2003 07:41 AM
Re: releasing shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 07:44 AM
02-04-2003 07:44 AM
Re: releasing shared memory
Try ipcrm -m 458755
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:00 AM
02-04-2003 08:00 AM
Re: releasing shared memory
I am sure the word "KEY" in my message is confusing. I meant ID which is still the second field. If you want to literally use KEY (third field) to remove the segment, use the option "-M". Sorry about my garbage articulation.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:05 AM
02-04-2003 08:05 AM
Re: releasing shared memory
ipcrm will indeed remove a segment but as mentioned, you must be sure that all the processes that share this memory are told to shutdown in an orderly manner according too the manufacturer's instructions. Note also that kill -9 is dangerous to the health of the rest of your applications and if any of them use shared memory, the same fate will befall these programs.
Shared memory is a powerful but fragile resource because multiple programs can read/write to this area and the map for shared memory is common to all programs. Ownership, permissions and the ID number keep programs from stomping on other areas but it must be assigned and returned in an orderly manner.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:20 AM
02-04-2003 08:20 AM
Re: releasing shared memory
I thing it is good idea first to see all
resources,suspended after Oracle database crash, you can use:
#ipcs
and find all resources,related to this
database, then use:
#ipcrm -m
/or -s, -q ... /
Also after Oracle database crash sometimes
has openned sockets, so you couldnt start
base becouse of this - you need to find them
with #netstat and use #ndd /on hpux 11.0/
for cleaning.
Regards,Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:23 AM
02-04-2003 08:23 AM
Re: releasing shared memory
I didn't know ipcrm command because ipcs man pages don't mention it even in the SEE ALSO section.
Bill, I thank you all your advices about 'kill -9' but in my case, the closed database belongs to a testing environment and it was going to be replaced by a copy of a 'good' database (my system is connected to a HP XP512 and it can copy whole disks).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:37 AM
02-04-2003 08:37 AM
Re: releasing shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:14 PM
02-04-2003 01:14 PM
Re: releasing shared memory
This clever program will index the 1-liner description of selected man pages for searching using man -k. In it's simplest (but slowest) form, run this once a month:
catman 11m234567
Not only will it build a fast index, it will also format every page, thus eliminating the "please wait..." message when formatting man pages. Use -w to skip this option. Look also at the -m (merge) option for adding new man pages to the index. The see also defect would be bypassed with: man -k ipc
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:51 PM
02-04-2003 01:51 PM
Re: releasing shared memory
which will show the complete shared memory map. Unlike ipcs which only shows a certain type of shared memory, shminfo shows memory mapped files, shared libraries, basically everything, and shows how fragmented the 32bit shared memory window can become. Get a copy from:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 02:03 AM
02-05-2003 02:03 AM