Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to relate ipcs id or cpid to process? Post 302900935 by baladelaware73 on Friday 9th of May 2014 01:46:54 PM
Old 05-09-2014
Lightbulb How to relate ipcs id or cpid to process?

Hi,
we have multiple database instances running on solaris server like db1, db2 and db3. Below shown ipcs -pmb shared memory segment output. Using cpid value I want to relate to the database instances db1, db2 and db3. Please let me know how to do this?

Code:
$ ipcs -pmb
IPC status from <running system> as of Fri May  9 13:41:43 EDT 2014
T         ID      KEY        MODE        OWNER    GROUP      SEGSZ   CPID  LPID
Shared Memory:
m         59   0x2f00415f --rw-rw-rw- svcccdba      dba       1024 15594 27760
m         58   0x3ff06874 --rw-rw----   oracle      dba       8192 13405 28001
m         57   0          --rw-rw----   oracle      dba  570425344 13405 28001
m         56   0          --rw-rw----   oracle      dba  587202560 13405 28001
m         55   0          --rw-rw----   oracle      dba  805306368 13405 28001
m         52   0x85bd5684 --rw-rw----   oracle      dba      16384 11641 28319
m         51   0          --rw-rw----   oracle      dba  327155712 11641 28319
m         50   0          --rw-rw----   oracle      dba  335544320 11641 28319
m         49   0          --rw-rw----   oracle      dba  457179136 11641 28319
m          5   0x5643     --rw-rw-rw-     root     root       1024  1239 20497
m          4   0x53494152 --rw-r--r--     root     root       1024  1231  9385
m          3   0x44525354 --rw-r--r--     root     root     632832  1231 20497
m          2   0x55315352 --rw-rw-rw-     root     root       4096  1231 13294
m          1   0x4d4e5251 --rw-r--r--     root     root     330752  1231 20497
m          0   0xcace     --rw-rw-rw-     root     root          2   282   282


Last edited by Don Cragun; 05-09-2014 at 03:34 PM.. Reason: Add missing CODE tags again.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ipcs command

Does anyone know how to set the variables with the ipcs command? I need to set the following variables: Shared memory segments message queues semaphore arrays all of these (1 Reply)
Discussion started by: Deuce
1 Replies

2. Programming

System V and POSIX IPCs

I am using SUN 0S 5.7. My application has a dozen programs running in this machine, each instance of a program having 2 POSIX message queues for itself. Totally around 90 POSIX message queues. Another small application uses a SYSTEM V shared memory and a message queue. We face a problem... (1 Reply)
Discussion started by: Deepa
1 Replies

3. UNIX for Advanced & Expert Users

Question relate to AWK

Hi, I would like to setup a FOR loop script to find out all the existing linux workstation in the network w/ ip address, hostname and linux version. I created a basic FOR loop script: for i in $(seq 1 254) do echo 10.72.169.$i >> result ssh -o ConnectTimeout=3 root@10.72.169.$i... (14 Replies)
Discussion started by: beeloo
14 Replies

4. AIX

ipcs command with out output

hello i'm running on aix 5300-08-02-0822 hacmp 4 when i run ipcs command there is nio output. some one got this problem? best regards ariec (1 Reply)
Discussion started by: ariec
1 Replies

5. Solaris

ipcs Help

hi, I need help with ipcs command on Solaris. What does it do and what are options b,m,o,q does. Here is the sample output of ipcs -oq and ipcs -bm IPC status from <running system> as of Sun Sep 7 23:07:59 GMT 2008 T ID KEY MODE OWNER GROUP CBYTES QNUM... (4 Replies)
Discussion started by: krabu
4 Replies

6. Shell Programming and Scripting

Need to relate Radius log entries to DHCP ones

Hi, let say i have 2 log files(they are below) dhcp and radius. What i need is to put the information to a file just from good connections ( Auth: Login OK ) others just ignore. And the information should look like: time, login name, mac, ip, server. But the trouble is that from radius log i get... (10 Replies)
Discussion started by: wrwe
10 Replies

7. Programming

help with C++ code that relate the object with physical address

I need some help to write a C++ code that read and write the register of a sequencer. I have to make a code that relate the objects with the physical address but I am a bit confuse. Could someone suggest me how to proceed? in which parts do I split the code? thanks (1 Reply)
Discussion started by: silviafisica
1 Replies

8. AIX

ipcs -m displaying empty

I am trying to run myApplication which allocates Some amount of shared memory at startup. It failed because not available shared memory are available. But when i ran, ipcs -m it is displaying empty(i.e no shared memory allocated in system.) Why "ipcs -m" is displaying empty ? ... (5 Replies)
Discussion started by: ashokd001
5 Replies

9. Solaris

IPCS COUNT clear

How to clear IPCS queue count in server? (2 Replies)
Discussion started by: Arasu123
2 Replies

10. UNIX for Advanced & Expert Users

Ipcs do not show MODE

The ipcs -q command output includes a MODE column which tells user if the process is waiting on read or write on the queue. I used this in scripts on many systems (Solaris, AIX, SCO) a snippet from man MODE (all) The facility access modes and flags: The mode consists of 11... (2 Replies)
Discussion started by: migurus
2 Replies
CHING(6)							 BSD Games Manual							  CHING(6)

NAME
ching -- the book of changes and other cookies SYNOPSIS
ching [hexagram] DESCRIPTION
The I Ching or Book of Changes is an ancient Chinese oracle that has been in use for centuries as a source of wisdom and advice. The text of the oracle (as it is sometimes known) consists of sixty-four hexagrams, each symbolized by a particular arrangement of six straight (---) and broken (- -) lines. These lines have values ranging from six through nine, with the even values indicating the broken lines. Each hexagram consists of two major sections. The Judgement relates specifically to the matter at hand (e.g., ``It furthers one to have somewhere to go.'') while the Image describes the general attributes of the hexagram and how they apply to one's own life (``Thus the superior man makes himself strong and untiring.'') When any of the lines have the values six or nine, they are moving lines; for each there is an appended judgement which becomes significant. Furthermore, the moving lines are inherently unstable and change into their opposites; a second hexagram (and thus an additional judgement) is formed. Normally, one consults the oracle by fixing the desired question firmly in mind and then casting a set of changes (lines) using yarrow-stalks or tossed coins. The resulting hexagram will be the answer to the question. Using an algorithm suggested by S. C. Johnson, the UNIX oracle simply reads a question from the standard input (up to an EOF) and hashes the individual characters in combination with the time of day, process id and any other magic numbers which happen to be lying around the system. The resulting value is used as the seed of a random number generator which drives a simulated coin-toss divination. The answer is then piped through nroff(1) for formatting and will appear on the standard output. For those who wish to remain steadfast in the old traditions, the oracle will also accept the results of a personal divination using, for example, coins. To do this, cast the change and then type the resulting line values as an argument. The impatient modern may prefer to settle for Chinese cookies; try fortune(6). DIAGNOSTICS
The great prince issues commands, Founds states, vests families with fiefs. Inferior people should not be employed. SEE ALSO
It furthers one to see the great man. BUGS
Waiting in the mud Brings about the arrival of the enemy. If one is not extremely careful, Somebody may come up from behind and strike him. Misfortune. BSD
May 31, 1993 BSD
All times are GMT -4. The time now is 08:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy