Cleanup of IPC segments under Sun Solaris and Oracle 9iR2 |
![]() |
Using the following steps you can identify and cleanup the appropriate IPC segments on a machine running multiple databases. |
|
|
|
|
dbbox bash-2.03$ ps -ef|grep _TESTDB
oracle 718 707 0 16:25:52 pts/1 0:00 grep _TESTDB
oracle 326 1 0 Jan 10 ? 0:00 ora_pmon_TESTDB
oracle 328 1 0 Jan 10 ? 0:00 ora_dbw0_TESTDB
oracle 330 1 0 Jan 10 ? 0:00 ora_dbw1_TESTDB
oracle 332 1 0 Jan 10 ? 0:01 ora_lgwr_TESTDB
oracle 334 1 0 Jan 10 ? 0:33 ora_ckpt_TESTDB
oracle 336 1 0 Jan 10 ? 0:36 ora_smon_TESTDB
oracle 338 1 0 Jan 10 ? 0:00 ora_reco_TESTDB
oracle 340 1 0 Jan 10 ? 0:00 ora_cjq0_TESTDB
| |
|
|
|
dbbox bash-2.03$ export ORACLE_SID=TESTDB
dbbox bash-2.03$ sqlplus "/ as sysdba"
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> oradebug ipc
ORA-00074: no process has been specified
SQL> oradebug setospid 326
Oracle pid: 2, Unix process pid: 326, image: oracle@dbbox (PMON)
SQL> oradebug ipc
Information written to trace file.
SQL>
SQL> quit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
dbbox bash-2.03$ cd $ORACLE_HOME/admin/TESTDB/bdump/
| |
|
|
|
dbbox bash-2.03$ ls -alrt /u01/oracle/OraHome3/admin/TESTDB/bdump
total 174
drwxr-xr-x 5 oracle dba 512 Oct 3 16:38 ..
-rw-r----- 1 oracle dba 539 Jan 10 17:06 testdb_lgwr_522.trc
-rw-r--r-- 1 oracle dba 65403 Jan 10 17:10 alert_TESTDB.log
-rw-r----- 1 oracle dba 5889 Jan 13 17:14 testdb_pmon_326.trc
drwxr-xr-x 2 oracle dba 512 Jan 14 08:52 .
| |
|
|
|
#
# First the shared memory segment id is found
# Note the Shmid parameter value (101) this is the Shared Memory segment id
#
32 Dump of unix-generic realm handle `/u01/oracle/OraHome3TESTING', flags = 00000000
33 Area #0 `Fixed Size' containing Subareas 0-0
34 Total size 000000000006f1b8 Minimum Subarea size 00000000
35 Area Subarea Shmid Stable Addr Actual Addr
36 0 0 101 0000000020000000 0000000020000000
37 Subarea size Segment size
38 0000000000070000 000000001e400000
#
# Now, the semaphore id is obtained
# The line following line 124 "Semaphore List=" shows the actual semaphore ID for this database
# The listing shows the Semaphores for more than one database running, the key line is 125
# which shows the ID for the current database.
#
# In this example the Semaphore ID is 196608
#
124 Semaphore List=
125 196608
126 -------------- system semaphore information -------------
127 IPC status from | |
|
|
|
dbbox bash-2.03$ ipcs IPC status from |