<?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 Shared memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880330#M937845</link>
    <description>I have installed memory windows which seems to work for our 4 instances of Oracle. However, we have another application that now does not run. The log file says " Trying to use shared file instead of shared memory" Anyone have any insight into my next step? Thanks.</description>
    <pubDate>Mon, 13 Jan 2003 14:45:32 GMT</pubDate>
    <dc:creator>Gerry Tully</dc:creator>
    <dc:date>2003-01-13T14:45:32Z</dc:date>
    <item>
      <title>Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880330#M937845</link>
      <description>I have installed memory windows which seems to work for our 4 instances of Oracle. However, we have another application that now does not run. The log file says " Trying to use shared file instead of shared memory" Anyone have any insight into my next step? Thanks.</description>
      <pubDate>Mon, 13 Jan 2003 14:45:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880330#M937845</guid>
      <dc:creator>Gerry Tully</dc:creator>
      <dc:date>2003-01-13T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880331#M937846</link>
      <description>Hi Gerry,&lt;BR /&gt;&lt;BR /&gt;First of all you need to identify if this application is stand-alone (creates and uses its own resources) or if it shares resources with another application.&lt;BR /&gt;&lt;BR /&gt;If the first is true you will need to identify which system call failed and the exit code.&lt;BR /&gt;&lt;BR /&gt;If the second is true and it is trying to share information with one of the windowed applications it will need to join that window to access the information.&lt;BR /&gt;&lt;BR /&gt;For memory windows remember the global window (3rd quadrant) is still the default window for all applications that do not specify which window id to use. So if you are trying to attach to a shared memory segment that is in a unique window and don't specify a window id, this will try to attach to an address in the global window and will fail.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Mon, 13 Jan 2003 15:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880331#M937846</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-01-13T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880332#M937847</link>
      <description>Thanks for the reply James. I guess at this point what I have is, the owner of the application can get in to it with out a problem. When anyone else tries to get in they can't. It seems it won't attach to the correct memory window. The memory window set for that application is set globally, so I would expect that anyone could get into it but apparently I'm wrong. Do you know any way around this? Thanks</description>
      <pubDate>Mon, 13 Jan 2003 18:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880332#M937847</guid>
      <dc:creator>Gerry Tully</dc:creator>
      <dc:date>2003-01-13T18:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880333#M937848</link>
      <description>If indeed your memory window identifiers are assigned globally and your application has been altered to enable memory windows, I would next simply do an ipcs -ma and look to see if anyone other than the owner has access to the shared memory segment. &lt;BR /&gt;&lt;BR /&gt;If it's actually a permission problem and you don't have access to the source then you could write a small c program making a shmctl() call to open the permissions on the shmid.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jan 2003 18:26:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880333#M937848</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-13T18:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880334#M937849</link>
      <description>Clay, after doing ipcs -am, that looks like the problem. The rights are 640. Being very unfamiliar in this area, how would I change them? Thanks</description>
      <pubDate>Mon, 13 Jan 2003 18:37:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880334#M937849</guid>
      <dc:creator>Gerry Tully</dc:creator>
      <dc:date>2003-01-13T18:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880335#M937850</link>
      <description>Okay Gerry,&lt;BR /&gt;&lt;BR /&gt;Here's my 3-minute C program.&lt;BR /&gt;&lt;BR /&gt;1) cc shm.c -o shm&lt;BR /&gt;&lt;BR /&gt;If you don't have a development C compiler, you can use the bundled compiler but you will need to convert the ANSI functions to K&amp;amp;R.&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;becomes&lt;BR /&gt;int main(argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;&lt;BR /&gt;problem(char *msg, int err)&lt;BR /&gt;becomes&lt;BR /&gt;problem(msg,err)&lt;BR /&gt;char *msg;&lt;BR /&gt;int err;&lt;BR /&gt;&lt;BR /&gt;As is, it will set permissions to 666 but you can change the NEW_PERMS define to anything you like.&lt;BR /&gt;&lt;BR /&gt;2) Run ipcs -ma and determine the shared memory identifier. (The decimal identifier in the 2nd column of ipcs -ma output). &lt;BR /&gt;&lt;BR /&gt;3) shm shmid&lt;BR /&gt;&lt;BR /&gt;ipcs -ma should now display 666 permissions on this shmid.&lt;BR /&gt;&lt;BR /&gt;It took me longer to type this stuff than to do the C.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jan 2003 20:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880335#M937850</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-13T20:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shared memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880336#M937851</link>
      <description>One more thing, Gerry:&lt;BR /&gt;&lt;BR /&gt;The C program will need to be run by either the owner of the shmid or root; noone else will have sufficient permissions to do an IPC_SET.&lt;BR /&gt;&lt;BR /&gt;You should man shmctl to see how this works.</description>
      <pubDate>Mon, 13 Jan 2003 23:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-memory/m-p/2880336#M937851</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-13T23:01:21Z</dc:date>
    </item>
  </channel>
</rss>

