<?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 Then second instance don't run in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887628#M845286</link>
    <description>I have two instances of oracle in my system. A few days ago both instances run correctly but now it does not work and returns the following error:&lt;BR /&gt;Oracle Server Manager Release 3.0.4.0.0 - Production&lt;BR /&gt;&lt;BR /&gt;(c) Copyright 1997, Oracle Corporation.  All Rights Reserved.&lt;BR /&gt;&lt;BR /&gt;Oracle8 Enterprise Edition Release 8.0.4.0.0 - Production&lt;BR /&gt;PL/SQL Release 8.0.4.0.0 - Production&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; Connected.&lt;BR /&gt;SVRMGR&amp;gt; ORA-27123: unable to attach to shared memory segment&lt;BR /&gt;HP-UX Error: 22: Invalid argument&lt;BR /&gt;SVRMGR&amp;gt; Server Manager complete&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I execute the ipcs -ma the system returns this:&lt;BR /&gt;IPC status from /dev/kmem as of Thu Feb 24 09:40:08 2005&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;m       0 0x411c025d --rw-rw-rw-      root      root      root      root      0    348   792   792  7:00:56  7:00:56  7:00:50&lt;BR /&gt;m       1 0x00000000 D-rw-rw-rw-      root      root      root      root      2  61760   792   794  8:59:56  7:00:56 16:49:40&lt;BR /&gt;m       2 0x4120189e --rw-rw-rw-      root      root      root      root      2   8192   792   794  8:59:56  7:00:50  7:00:50&lt;BR /&gt;m       3 0x301c7964 --rw-rw-rw-      root      root      root      root      4 1048576  1592  1629  7:02:17 no-entry  7:01:12&lt;BR /&gt;m       4 0x501c75da --r--r--r--      root     other      root      root      1 1075095  1731  1731  7:01:18  7:01:18  7:01:18&lt;BR /&gt;m   12805 0x0007ae37 --rw-rw-rw-      root      root      root      root      5 512000  2585 21282  3:14:28 no-entry  7:01:31&lt;BR /&gt;m     518 0x4918214f --rw-r--r--      root      root      root      root      0  22908  2383 11554 19:06:00 19:06:00  7:01:32&lt;BR /&gt;m   40967 0x0107ae37 --rw-rw-rw-      root      root      root      root      1    808  2585   290 19:11:59 no-entry 19:11:59&lt;BR /&gt;m   35336 0x65645769 --rw-rw-rw-     chovi   general     chovi   general      3  16392 20969  3430  9:38:44 no-entry  8:02:01&lt;BR /&gt;m   17929 0xe1d282f0 --rw-r-----    oracle       dba    oracle       dba    124 881332224 22356  3782  9:40:07  9:40:07  4:30:01&lt;BR /&gt;m   11786 0x0c6629c9 --rw-r-----      root   general      root   general      1 16247200 14385 12288 18:59:29 16:15:15  7:18:25&lt;BR /&gt;m      11 0x06347849 --rw-rw-rw-      root   general      root   general      0  77384 15976 11554 18:56:26  7:18:25 18:16:44&lt;BR /&gt;&lt;BR /&gt;Can someone say to me that shared memory can would deleted to have sufficient shared memory to run another instance?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Feb 2005 03:42:55 GMT</pubDate>
    <dc:creator>Joaquín_2</dc:creator>
    <dc:date>2005-02-24T03:42:55Z</dc:date>
    <item>
      <title>Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887628#M845286</link>
      <description>I have two instances of oracle in my system. A few days ago both instances run correctly but now it does not work and returns the following error:&lt;BR /&gt;Oracle Server Manager Release 3.0.4.0.0 - Production&lt;BR /&gt;&lt;BR /&gt;(c) Copyright 1997, Oracle Corporation.  All Rights Reserved.&lt;BR /&gt;&lt;BR /&gt;Oracle8 Enterprise Edition Release 8.0.4.0.0 - Production&lt;BR /&gt;PL/SQL Release 8.0.4.0.0 - Production&lt;BR /&gt;&lt;BR /&gt;SVRMGR&amp;gt; Connected.&lt;BR /&gt;SVRMGR&amp;gt; ORA-27123: unable to attach to shared memory segment&lt;BR /&gt;HP-UX Error: 22: Invalid argument&lt;BR /&gt;SVRMGR&amp;gt; Server Manager complete&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I execute the ipcs -ma the system returns this:&lt;BR /&gt;IPC status from /dev/kmem as of Thu Feb 24 09:40:08 2005&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;m       0 0x411c025d --rw-rw-rw-      root      root      root      root      0    348   792   792  7:00:56  7:00:56  7:00:50&lt;BR /&gt;m       1 0x00000000 D-rw-rw-rw-      root      root      root      root      2  61760   792   794  8:59:56  7:00:56 16:49:40&lt;BR /&gt;m       2 0x4120189e --rw-rw-rw-      root      root      root      root      2   8192   792   794  8:59:56  7:00:50  7:00:50&lt;BR /&gt;m       3 0x301c7964 --rw-rw-rw-      root      root      root      root      4 1048576  1592  1629  7:02:17 no-entry  7:01:12&lt;BR /&gt;m       4 0x501c75da --r--r--r--      root     other      root      root      1 1075095  1731  1731  7:01:18  7:01:18  7:01:18&lt;BR /&gt;m   12805 0x0007ae37 --rw-rw-rw-      root      root      root      root      5 512000  2585 21282  3:14:28 no-entry  7:01:31&lt;BR /&gt;m     518 0x4918214f --rw-r--r--      root      root      root      root      0  22908  2383 11554 19:06:00 19:06:00  7:01:32&lt;BR /&gt;m   40967 0x0107ae37 --rw-rw-rw-      root      root      root      root      1    808  2585   290 19:11:59 no-entry 19:11:59&lt;BR /&gt;m   35336 0x65645769 --rw-rw-rw-     chovi   general     chovi   general      3  16392 20969  3430  9:38:44 no-entry  8:02:01&lt;BR /&gt;m   17929 0xe1d282f0 --rw-r-----    oracle       dba    oracle       dba    124 881332224 22356  3782  9:40:07  9:40:07  4:30:01&lt;BR /&gt;m   11786 0x0c6629c9 --rw-r-----      root   general      root   general      1 16247200 14385 12288 18:59:29 16:15:15  7:18:25&lt;BR /&gt;m      11 0x06347849 --rw-rw-rw-      root   general      root   general      0  77384 15976 11554 18:56:26  7:18:25 18:16:44&lt;BR /&gt;&lt;BR /&gt;Can someone say to me that shared memory can would deleted to have sufficient shared memory to run another instance?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2005 03:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887628#M845286</guid>
      <dc:creator>Joaquín_2</dc:creator>
      <dc:date>2005-02-24T03:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887629#M845287</link>
      <description>The second line in the ipcs output is what is possibly causing the problem: there is a process (in fact 2, NATTCH is still 2) attached to that block of memory, though it is marked as deleted (the D in the mode).&lt;BR /&gt;So what you need to do is find those 2 processes, stop them, and then look at the ipcs output again. If the segment is gone from the output, you can try to start the instance again.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;                Elmar</description>
      <pubDate>Thu, 24 Feb 2005 03:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887629#M845287</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2005-02-24T03:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887630#M845288</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The error ORA-27123: unable to attach to shared memory segment&lt;BR /&gt;HP-UX Error: 22: Invalid argument&lt;BR /&gt;&lt;BR /&gt;Make sure the oracle executable ($ORACLE_HOME/bin/oracle) has proper permissions set.  It should be : 6755 (-rwsr-sr-x) . This is usually the cause for the error you get&lt;BR /&gt;&lt;BR /&gt;There could be a piece of shared memory still allocated for this particular instance. Issue the  commands 'ipcs -sa' and 'ipcs -ma' and clear them by issuing 'ipcrm -m &lt;ID&gt;' for memory and 'ipcrm -s &lt;ID&gt;' for semaphores associated with oracle. &lt;BR /&gt;&lt;BR /&gt;Then try starting oracle again. Another problem that may happen is you could be requesting too many semaphores. Try reducing the number of processes in the init.ora or increasing the semaphores in the system. Oracle checks to see if enough contiguous semaphores are available at startup... even if you never have that many processes.&lt;BR /&gt;&lt;BR /&gt;The value of the kernel parameter "shmmax" is at least 10% bigger than the estimated size of the SGA of for database.&lt;BR /&gt;&lt;BR /&gt;There is a piece of shared memory still allocated for this particular instance. &lt;BR /&gt;&lt;BR /&gt;Oracle does not always clean up it's resources when an instance does not successfully mount and they must be removed manually. You need to remove the shared memory for this instance. &lt;BR /&gt;&lt;BR /&gt;Indira A&lt;BR /&gt;&lt;/ID&gt;&lt;/ID&gt;</description>
      <pubDate>Thu, 24 Feb 2005 04:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887630#M845288</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-02-24T04:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887631#M845289</link>
      <description>Only I have found a process with the pid 794 that it is the process:  &lt;BR /&gt;&lt;BR /&gt; F S      UID   PID  PPID  C PRI NI             ADDR   SZ            WCHAN    STIME TTY       TIME COMD&lt;BR /&gt;  1 S     root   794     1  0 127 20         49f97680   17           ae3684  Jan 22  ?         0:00 /usr/lbin/nktl_daemon 0 0 0 0 0 1 -2&lt;BR /&gt;&lt;BR /&gt;This process seems to be important. Must I eliminate it?&lt;BR /&gt;&lt;BR /&gt;The permissions of $ORACLE_HOME/bin/oracle is-rwsr-s - x. &lt;BR /&gt;Can it influence something?&lt;BR /&gt;&lt;BR /&gt;thank reply me!</description>
      <pubDate>Thu, 24 Feb 2005 05:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887631#M845289</guid>
      <dc:creator>Joaquín_2</dc:creator>
      <dc:date>2005-02-24T05:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887632#M845290</link>
      <description>Ensure the oracle executable in $ORACLE_HOME/bin has the correct ownerships. The file should be owned by ora&lt;SID&gt; and the group, dba.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;/SID&gt;</description>
      <pubDate>Thu, 24 Feb 2005 09:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887632#M845290</guid>
      <dc:creator>S Plunkett</dc:creator>
      <dc:date>2005-02-24T09:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887633#M845291</link>
      <description>I've also seen this when I've managed somehow to shutdown one instance when using the Oracle_Home of the other.  Basically, you can use the Oracle_home of one with just another SID (assuming that each instance has its own ORACLE_HOME - but they don't have to).  &lt;BR /&gt;&lt;BR /&gt;Like this...&lt;BR /&gt;&lt;BR /&gt;First database in use..&lt;BR /&gt;ORACLE_HOME=/u1/app/oracle/ONEDB&lt;BR /&gt;PATH=$PATH:/u1/app/oracle/ONEDB/bin&lt;BR /&gt;ORACLE_SID=ONEDB&lt;BR /&gt;&lt;BR /&gt;Second database in use (at different times).&lt;BR /&gt;ORACLE_HOME=/u1/app/oracle/TWODB&lt;BR /&gt;PATH=$PATH:/u1/app/oracle/TWODB/bin&lt;BR /&gt;ORACLE_SID=TWODB&lt;BR /&gt;&lt;BR /&gt;Let's say you mix it up somehow...&lt;BR /&gt;( by manually making cahnges and not using your standard commands )...&lt;BR /&gt;ORACLE_HOME=/u1/app/oracle/TWODB&lt;BR /&gt;PATH=$PATH:/u1/app/oracle/ONEDB/bin&lt;BR /&gt;ORACLE_SID=ONEDB&lt;BR /&gt;&lt;BR /&gt;if you startup from here - you'll have to shutdown the exact same way or you won't be able reach the shared memory segments...&lt;BR /&gt;&lt;BR /&gt;Due to this type of problem I put in scripts years ago that change database environments for us and our programmers, and they prevent the user from being in two environments at once - so to speak...&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2005 09:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887633#M845291</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-02-24T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887634#M845292</link>
      <description>The problem already this solved. The error was and the last two segments of shared memory, these segments were of the midaemon. I have deleted them and have turn on midaemon and the instance of oracle has worked correctly.&lt;BR /&gt;&lt;BR /&gt;Thanks to all.</description>
      <pubDate>Thu, 24 Feb 2005 12:19:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887634#M845292</guid>
      <dc:creator>Joaquín_2</dc:creator>
      <dc:date>2005-02-24T12:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Then second instance don't run</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887635#M845293</link>
      <description>thanks</description>
      <pubDate>Thu, 24 Feb 2005 12:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/then-second-instance-don-t-run/m-p/4887635#M845293</guid>
      <dc:creator>Joaquín_2</dc:creator>
      <dc:date>2005-02-24T12:29:46Z</dc:date>
    </item>
  </channel>
</rss>

