Pid= oracle [message #264022] |
Fri, 31 August 2007 09:28 |
thorin666
Messages: 144 Registered: March 2007
|
Senior Member |
|
|
I have a problem
my database is too slow and when i type TOP (under linux) i see a PID
after that i run a ps -ef|grep pid
oracle 24504 1 43 Jul 14 ? 58115:27 oracleEDUPROD (DESCRIPTION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))
ok
now my problem is how to see what is doing that session and after that
how to close that session?
i am trying to look into v$session view but i dont find anything
i was searching and i find
ALTER SESSION CLOSE DATABASE LINK linkname;
where i can find that linkname?
thnx in advance
|
|
|
|
|
Re: Pid= oracle [message #264030 is a reply to message #264022] |
Fri, 31 August 2007 09:41 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
>my idea is close that session using oracle not kill that operation.
Good luck. IIRC, joining V$SESSION with V$TRANSACTION will provide the SID of this rogue process.
I'm about 2,000 kilometers from my office & bandwidth limited now; so I can not assist in more detail.
[Updated on: Fri, 31 August 2007 09:42] by Moderator Report message to a moderator
|
|
|
|
Re: Pid= oracle [message #264040 is a reply to message #264022] |
Fri, 31 August 2007 09:52 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
GOOGLE is your friend but only when you actually USE it.
Results 1 - 10 of about 70,300 for unix pid oracle sid. (0.13 seconds)
Please show SOME initiative & stop depending upon being spoonfed.
[Updated on: Fri, 31 August 2007 09:52] by Moderator Report message to a moderator
|
|
|
Re: Pid= oracle [message #264059 is a reply to message #264036] |
Fri, 31 August 2007 10:30 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
SQL> desc v$session
Name Null? Type
-------------------------------- -------- ----------------------
SADDR RAW(4)
SID NUMBER
SERIAL# NUMBER
AUDSID NUMBER
PADDR RAW(4)
USER# NUMBER
USERNAME VARCHAR2(30)
COMMAND NUMBER
OWNERID NUMBER
TADDR VARCHAR2(8 CHAR)
LOCKWAIT VARCHAR2(8 CHAR)
STATUS VARCHAR2(8 CHAR)
SERVER VARCHAR2(9 CHAR)
SCHEMA# NUMBER
SCHEMANAME VARCHAR2(30)
OSUSER VARCHAR2(30)
PROCESS VARCHAR2(12)
...
SQL> desc v$process
Name Null? Type
-------------------------------- -------- ----------------------
ADDR RAW(4)
PID NUMBER
SPID VARCHAR2(12)
USERNAME VARCHAR2(15)
SERIAL# NUMBER
TERMINAL VARCHAR2(16)
PROGRAM VARCHAR2(64)
...
v$session.process client process
v$process.spid server process (the one in your post)
v$process.addr = v$session.paddr
Regards
Michel
|
|
|