Query running slow [message #684070] |
Wed, 31 March 2021 18:02 |
JackBauer
Messages: 24 Registered: February 2021
|
Junior Member |
|
|
Hello,
I execute a query on a DB and it runs in under 1 second.
A developer runs the same query from another client and the query takes 45 seconds to give a result.
What could be making such a difference? I suppose this is due to network problems, right?
But how to prove that?
Thanks
|
|
|
|
|
Re: Query running slow [message #684074 is a reply to message #684073] |
Thu, 01 April 2021 09:14 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You are going to have to provide more information. At the very least, in your SQL*Plus session:
set timing on
set autotrace traceonly
run the statement
and post the results here. Results from you running it and your colleague.
|
|
|
|
|
Re: Query running slow [message #684078 is a reply to message #684077] |
Thu, 01 April 2021 16:02 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
JackBauer wrote on Thu, 01 April 2021 21:57I understand all that, but couldn't it be network latency? It could be the phase of the moon. Better do as I suggested if you want to find out the real reason.
|
|
|
Re: Query running slow [message #684079 is a reply to message #684078] |
Thu, 01 April 2021 16:06 |
JackBauer
Messages: 24 Registered: February 2021
|
Junior Member |
|
|
Sure I will, but we are on holidays now.
But this does not give any details about the network...
set timing on
set autotrace traceonly
run the statement
|
|
|
|
Re: Query running slow [message #684081 is a reply to message #684079] |
Fri, 02 April 2021 01:16 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
JackBauer wrote on Thu, 01 April 2021 22:06Sure I will, but we are on holidays now.
But this does not give any details about the network...
set timing on
set autotrace traceonly
run the statement Yes it does.
|
|
|
Re: Query running slow [message #684084 is a reply to message #684080] |
Fri, 02 April 2021 05:09 |
JackBauer
Messages: 24 Registered: February 2021
|
Junior Member |
|
|
BlackSwan wrote on Fri, 02 April 2021 03:06JackBauer wrote on Thu, 01 April 2021 13:57I understand all that, but couldn't it be network latency?
If it is "network latency", then it should exist for any & EVERY network operation that occurs.
Using COPY & PASTE show us other network operation that are also slow from inherent network latency & not just database query.
If I am in Spain and the DB is in the UK and the developer is in India, then we would have the same network latency?
|
|
|
|
|
Re: Query running slow [message #684161 is a reply to message #684070] |
Tue, 13 April 2021 05:17 |
JackBauer
Messages: 24 Registered: February 2021
|
Junior Member |
|
|
So at the end it was a ports problem, the firewall was blocking some of them, then a PGA problem.
We had to increase the PGA because we saw PGA_AGGREGATE_LIMIT Throttling in the AWR reports.
Thanks
|
|
|