- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ipcs and identifying which oracle dbs responsible
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
Discussions
Discussions
Discussions
Forums
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
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
тАО11-25-2003 08:08 AM
тАО11-25-2003 08:08 AM
(I applied an attachement of the same as below just easier to read). The question is, how can I tell which Oracle database goes with which shared memory segment other than matching up the SGA's for every line?
m 1176585219 0x5a456e8c H--rw-r----- oracle dba186646528 12740 5216
m 304219140 0x52bda504 H--rw-r----- oracle dba146800640 15619 5222
m 2053 0x7e9c7798 H--rw-r----- oracle dba 88080384 15732 5141
m 26174472 0xc475e1d4 H--rw-r----- oracle dba687865856 15770 5224
m 1034 0x00000000 ---rw-r----- oracle dba 29360128 3272 5100
m 11 0x00000000 ---rw-r----- oracle dba 6291456 3272 5100
m 12 0x00000000 ---rw-r----- oracle dba 6291456 3272 5100
m 13 0x00000000 ---rw-r----- oracle dba264241152 3272 5100
m 14 0x00000000 ---rw-r----- oracle dba264241152 3272 5100
m 15 0x4fd07138 ---rw-r----- oracle dba 23068672 3272 5100
m 14522384 0x18740bb0 H--rw-r----- oracle dba570425344 4640 5091
m 1644196885 0x38c91a74 H--rw-r----- oracle dba167772160 23711 5097
m 251903001 0xb3f21168 H--rw-r----- oracle dba117440512 1197 5103
m 94675994 0xae6c87a8 H--rw-r----- oracle dba165675008 27757 5092
Thanks
Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 08:18 AM
тАО11-25-2003 08:18 AM
Re: ipcs and identifying which oracle dbs responsible
Someone else surely has a better way though I'm sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 08:29 AM
тАО11-25-2003 08:29 AM
Re: ipcs and identifying which oracle dbs responsible
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 02:38 PM
тАО11-25-2003 02:38 PM
Re: ipcs and identifying which oracle dbs responsible
www.metalink.com
Note:68281.1
Subject: DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS
This might give you some idea of the source of your mem problem.
Note:153961.1
Subject: Semaphores and Shared Memory - An Overview
Also, seems like you have more memory segments than seem appropriate. Seems like I read about memory problems occuring from fragmented SGA. You might want to verify your kernel parameters for shmmax as outlined in one of the above notes.
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:20 PM
тАО11-25-2003 07:20 PM
Re: ipcs and identifying which oracle dbs responsible
In any case, the crude way I have always done this is to match the ctime of the shared memory segment with the creation time of the LK file.
ipcs -ma|grep oracle gives, in the last col, the creation time of the shared memory.
ls -lrt $ORACLE_HOME/dbs/lk* gives, oldest first, the creation time of each lk file (created at db startup), and where the lk file name also contains the oracle sid.
Match the times. I do this by eye but it could be scripted.
Not scientific but I've never rm'd the wrong one yet.
Of course if > 1 database starts up within the same minute, this is useless.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 10:36 PM
тАО11-25-2003 10:36 PM
Solution# su - oracle
$ echo $ORACLE_HOME
/u01/app/oracle/product/9.2.0
$ echo $SHLIB_PATH
/u01/app/oracle/product/9.2.0/lib
$ ${ORACLE_HOME}/bin/sysresv -?
/u01/app/oracle/product/9.2.0/bin/sysresv: illegal option -- ?
usage : sysresv [-if] [-d
-i : Prompt before removing ipc resources for each sid
-f : Remove ipc resources silently, oevrrides -i option
-d
-l sid1
Default : sysresv -d on -l $ORACLE_SID
Note : ipc resources will be attempted to be deleted for a
sid only if there is no currently running instance
with that sid.
$ ${ORACLE_HOME}/bin/sysresv -l hpdb rcat
IPC Resources for ORACLE_SID "hpdb" :
Shared Memory:
ID KEY
13811 0x0f1c4f54
Semaphores:
ID KEY
327 0x22e38130
Oracle Instance alive for sid "hpdb"
IPC Resources for ORACLE_SID "rcat" :
Shared Memory:
ID KEY
12 0xafb9fc9c
Semaphores:
ID KEY
428 0xc178d65c
Oracle Instance alive for sid "rcat"
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 04:47 AM
тАО11-26-2003 04:47 AM
Re: ipcs and identifying which oracle dbs responsible
Good question.
Bill,
ipcs -CPID will be gone, and LPID may or might not be there. No programming bug needed. The last attacher can simply have left, with others still attached but un-identified. Also, shminfo sounds cool, but did not work directly on my Itanium box.
R.Allan,
Good articles!
One suggested technique did not work directly on 9.2:
SQL> oradebug ipc
ORA-00074: no process has been specified
Minor nit: www.metalink.com leads to some french page with bonus pop-up :-)
This should be: www.metalink.oracle.com
Graham,
Ditto. I use the CTIME lign up.
Duncan,
Thanks to remind us about sysresv. It is also mentioned in the metalink articles. On my Itanium my Oracle instance happend to have 40 segments (yeah I know how to fix that. It was a test). sysresv only listed 4.
Cheers all,
Hein.