I prefer this solution.
-----Message d'origine-----
De: Deepak Sharma [mailto:sharmakdeep_at_yahoo.com]
Date: mardi 6 juin 2000 20:39
=C0: Multiple recipients of list ORACLE-L
Objet: RE: shared memory processes and oracle instances
I have also used 'oradebug ipc' in the past. But,
before I knew that I tried a different approach. There
were 1 production and 2 other instances on the same
box. Accidentally one of the 2 non-production got
aborted accidentally. The 'ipcs -ma' still showed 3
instances. In order to startup the aborted instance I
had to first cleanup the shared memory process (using
ipcrm). My approach was to find the instance startup
time for the instances already up, compare it with the
last field CTIME (ipcs -ma). These were not exactly
same, but close enough to identify the running
instances (and thus, idenitfying the aborted instance)
But, surely 'oradebug ipc' is the answer. I am,
however, not sure what happens when there are more
than 1 shared memory process per Oracle instance when
issuing a 'ipcs -ma'.=20
- Deepak
- "Deshpande, Kirti" <Kirti.Deshpande_at_gtedc.gte.com>
wrote:
> Hi Walt,=20
> Thanks for the info.
> I did not know that..=20
> Works for Oracle 7.3.4 as well. Displays both Shared
> Memory and Semaphore
> related info.=20
> In 8.0.6 it creates a trace file (in udump dest) for
> Shared Memory
> information but the Semaphores info is displayed on
> the screen. I was using
> HP-UX 10.20 (for 7.3.4) and HP-UX 11.0 (for 8.0.6).=20
> =20
>=20
> - Kirti=20
>=20
> > -----Original Message-----
> > From: Weaver, Walt [SMTP:wweaver_at_rightnowtech.com]
> > Sent: Tuesday, June 06, 2000 10:55 AM
> > To: Multiple recipients of list ORACLE-L
> > Subject: RE: shared memory processes and oracle
> instances
> >=20
> > Couldn't you do this in Oracle 8 using "oradebug
> ipc"? It should give you
> > the shared memory id associated with the SID...
> >=20
> > --Walt Weaver
> > Bozeman, Montana, USA
> >=20
> > -----Original Message-----
> > Sent: Tuesday, June 06, 2000 8:11 AM
> > To: Multiple recipients of list ORACLE-L
> >=20
> >=20
> > Hi,=20
> > Here is how to do this with 7.3.x databases... =20
> >=20
> > Get the o/p from 'ipcs -m' command as below:=20
> > IPC status from /dev/kmem as of Tue Jun 6
> 07:40:40 2000
> > T ID KEY MODE OWNER =20
> GROUP
> > Shared Memory:
> > m 6309 0x7965c84f --rw-r----- oracle =20
> dba
> > m 6310 0x7965c9a3 --rw-r----- oracle =20
> dba
> > m 7711 0x79775045 --rw-r----- oracle =20
> dba
> > m 13312 0x796b4eb3 --rw-r----- oracle =20
> dba
> > m 14013 0x7968cfb8 --rw-rw---- oracle =20
> dba
> > m 20314 0x790a4eea --rw-r----- oracle =20
> dba
> > m 15 0x79614f93 --rw-r----- oracle =20
> dba
> > m 16 0x79624f8b --rw-r----- oracle =20
> dba
> > m 17 0x7908cf8f --rw-r----- oracle =20
> dba
> > m 8418 0x796ecf27 --rw-rw---- oracle =20
> dba
> > m 19 0x7908cefa --rw-r----- oracle =20
> dba
> > m 20 0x7962cf4b --rw-r----- oracle =20
> dba
> > m 21 0x790a4f37 --rw-r----- oracle =20
> dba
> >=20
> > Then, use 'od -d sgadef<SID>.dbf' command for the
> SID in question to get a
> > display as below.=20
> > My SID is YPPD...
> >=20
> > df2hp019 [YPPD]: od -d sgadefYPPD.dbf
> > 0000000 00000 00001 00000 00432 57287 57344 65535
> 65535
> > 0000020 00312 24576 00000 00000 00000 08418 65535
> 65535
> > 0000040 31086 53031 47470 53031 00000 00001 00000
> 01948
> > 0000060 65535 65535 65535 65535 65535 65535 65535
> 65535
> > *
> > 0000124
> > df2hp019 [YPPD]: =20
> >=20
> > Look across the 2nd line (starting with 0000020)
> and get the value in col
> > #
> > 3 from the far right. In my example, it is 08418.
> It is the Shared Memory
> > ID, my SID (YPPD) is using. Look for it in the
> display from 'ipcs -ma' to
> > get other related information.=20
> >=20
> > However, this process won't work with Oracle 8.x
> datatabases, as file
> > sgadef.dbf became obsolete. I have not found any
> way, yet, to associate
> > shared memory segment id to the sid.=20
> > If anyone else know, please post the answer...=20
> >=20
> > Here is what is in sgadef file for Oracle 8.0.6
> databases when I viewed it
> > with 'cat' command:=20
> >=20
> > df2hp105 [IWHP]: cat sgadefIWHP.dbf
> > This file is now obsolete. It will be removed in
> a future release.
> > To determine whether an instance is up, you should
> check for the
> > existence of the PMON process associated with the
> instance. =20
> >=20
> >=20
> > Hope this is what you were after...
> >=20
> > - Kirti
> > =20
> >=20
> > > -----Original Message-----
> > > From: ALEMU Abiy
> [SMTP:abiy.alemu_at_criltechnology.com]
> > > Sent: Tuesday, June 06, 2000 1:24 AM
> > > To: Multiple recipients of list ORACLE-L
> > > Subject: shared memory processes and oracle
> instances
> > >=20
> > > I have several instances running and I would
> like to know which shared
> > > process correspond to a given instance from
> those that I see with the
> > > command ipcs. Is there any way to associate
> these processes with the
> > > instances (an id number to designate) ?
> > > --=20
> > > Author: ALEMU Abiy
> > > INET: abiy.alemu_at_criltechnology.com
> > >=20
> > >=20
> >=20
> --=20
> Author: Deshpande, Kirti
> INET: Kirti.Deshpande_at_gtedc.gte.com
>=20
> Fat City Network Services -- (858) 538-5051 FAX:
> (858) 538-5051
> San Diego, California -- Public Internet
> access / Mailing Lists
>
> To REMOVE yourself from this mailing list, send an
> E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of
> 'ListGuru') and in
> the message BODY, include a line containing: UNSUB
> ORACLE-L
> (or the name of mailing list you want to be removed
> from). You may
> also send the HELP command for other information
> (like subscribing).
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
--=20
Author: Deepak Sharma
INET: sharmakdeep_at_yahoo.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
Received on Wed Jun 07 2000 - 07:16:48 CDT