<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: releasing shared memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896387#M104052</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If 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.&lt;BR /&gt;&lt;BR /&gt;ipcrm -m KEY&lt;BR /&gt;&lt;BR /&gt;Where Key is the second field associated with the corresponding shared memory segment.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Tue, 04 Feb 2003 15:38:51 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2003-02-04T15:38:51Z</dc:date>
    <item>
      <title>releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896386#M104051</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;After aborting an Oracle database  its shared memory is not release.  'ipcs -ma' command showed&lt;BR /&gt;&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP   CREATOR    CGROUP NATTCH  SEGSZ  CPID  LPID   ATIME    DTIME    CTIME &lt;BR /&gt;Shared Memory:&lt;BR /&gt;&lt;BR /&gt;m  458755 0x00000000 --rw-r-----    oracle       dba    oracle       dba      0 673382400 10888 23003 15:50:04 14:40:01 &lt;BR /&gt;&lt;BR /&gt;16:40:32&lt;BR /&gt;m    2052 0x4ff2cc5c --rw-r-----    oracle       dba    oracle       dba      0 441552896 10888 23003 15:50:04 15:50:04 &lt;BR /&gt;&lt;BR /&gt;16:40:32&lt;BR /&gt;&lt;BR /&gt;The "NATTACH" is zero.&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;The only way I know is reboot.&lt;BR /&gt;&lt;BR /&gt;Can I release that shared memory in other way ?&lt;BR /&gt;&lt;BR /&gt;Thanx a lot</description>
      <pubDate>Tue, 04 Feb 2003 15:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896386#M104051</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-04T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896387#M104052</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If 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.&lt;BR /&gt;&lt;BR /&gt;ipcrm -m KEY&lt;BR /&gt;&lt;BR /&gt;Where Key is the second field associated with the corresponding shared memory segment.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 04 Feb 2003 15:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896387#M104052</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-04T15:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896388#M104053</link>
      <description>Yoiu can use the ipcrm -m shmid (which you obtained from the ipcs command) to remove the shm segment BUT be warned you have to understand what you are doing. While nattach = 0 is a necessary condition, it may not be a sufficient condition. In your case with Oracle, it's ok but some software expects a shm segment to be already setup but NATTACH = 0 simply means no process is using it now. When the application starts up and looks for the deleted shm identifier it then crashes. &lt;BR /&gt;</description>
      <pubDate>Tue, 04 Feb 2003 15:41:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896388#M104053</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-02-04T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896389#M104054</link>
      <description>&lt;BR /&gt;Try ipcrm -m 458755&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Feb 2003 15:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896389#M104054</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2003-02-04T15:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896390#M104055</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 04 Feb 2003 16:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896390#M104055</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-02-04T16:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896391#M104056</link>
      <description>This is an important concept behind shared memory: it must be released by the owner and aborting Oracle is a sure way to leave these areas behind. NEVER abort database programs with kill -9. Not only will shared memory be left assigned to non-existant programs, but partial records and indexes will created, leading to a corrupted database or at least one that needs to be cleaned, a process that could take hours.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Tue, 04 Feb 2003 16:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896391#M104056</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-02-04T16:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896392#M104057</link>
      <description>Hi!&lt;BR /&gt;I thing it is good idea first to see all&lt;BR /&gt;resources,suspended after Oracle database crash, you can use:&lt;BR /&gt;#ipcs &lt;BR /&gt;and find all resources,related to this&lt;BR /&gt;database, then use: &lt;BR /&gt;#ipcrm -m &lt;BR /&gt;/or -s, -q ... /&lt;BR /&gt;&lt;BR /&gt;Also after Oracle database crash sometimes&lt;BR /&gt;has openned sockets, so you couldnt start&lt;BR /&gt;base becouse of this - you need to find them&lt;BR /&gt;with #netstat and use #ndd /on hpux 11.0/&lt;BR /&gt;for cleaning.&lt;BR /&gt;&lt;BR /&gt;Regards,Stan&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 04 Feb 2003 16:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896392#M104057</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-02-04T16:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896393#M104058</link>
      <description>Thanx a lot everyone.&lt;BR /&gt;&lt;BR /&gt;I didn't know ipcrm command because ipcs man pages don't mention it even in the SEE ALSO section.&lt;BR /&gt;&lt;BR /&gt;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).</description>
      <pubDate>Tue, 04 Feb 2003 16:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896393#M104058</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-04T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896394#M104059</link>
      <description>You are right. I just reqested to get the SEE ALSO section changed for future releases.</description>
      <pubDate>Tue, 04 Feb 2003 16:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896394#M104059</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-02-04T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896395#M104060</link>
      <description>Here's a hint for those man pages that are hard to find: catman&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;catman 11m234567&lt;BR /&gt;&lt;BR /&gt;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</description>
      <pubDate>Tue, 04 Feb 2003 21:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896395#M104060</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-02-04T21:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896396#M104061</link>
      <description>One last hint: shminfo&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/</description>
      <pubDate>Tue, 04 Feb 2003 21:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896396#M104061</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-02-04T21:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: releasing shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896397#M104062</link>
      <description>Bill, Thanx a lot for shminfo. it works fine.</description>
      <pubDate>Wed, 05 Feb 2003 10:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/releasing-shared-memory/m-p/2896397#M104062</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-05T10:03:49Z</dc:date>
    </item>
  </channel>
</rss>

