Home > database > Help: oracle particularly slow to a specific field queries
Help: oracle particularly slow to a specific field queries
Time:09-24
Help: have a warrior encountered this kind of situation? In the face of the other fields or all of the fields in Oracle queries are soon, but particularly slow to a field queries, two field type is the same, no such things as index
Two fields are NUMBER type, the length of the precision of 0 There is no index
In code query also is such,
CodePudding user response:
Is quite strange, what wait for event monitoring look down then analysis,
CodePudding user response:
CodePudding user response:
CodePudding user response:
Can be monitored, Select the sid from v $mystat where rownum<2; The session id such as a 6399
And then execute the slow SQL,
To open a session monitoring, The select s.E VENT, s.S QL_ID, a.s ql_text from v $session s, v $sqlarea where sid=6399 and s.S QL_ID=a.s QL_ID; Look at what is waiting for the event
CodePudding user response:
Event is the SQL * Net message to the client, is not very good, is baidu
CodePudding user response:
Not ah, you monitor the wrong session, to monitor the session more than four seconds, not himself, that sql_text to show that more than 4 seconds of SQL