Home » RDBMS Server » Server Administration » application hangs..!!!
application hangs..!!! [message #138353] Wed, 21 September 2005 09:00 Go to next message
balavignesh
Messages: 180
Registered: March 2005
Senior Member
hai ,

see our application is hanging which is retrieving records from around 35 tables each table having lacs of record.what might be the overhead..???plz help out.

db -->oracle 8i
os-->linux

we have also added considerable amount of datafiles to DATA/LOB/TEMP.

regards
bala
Re: application hangs..!!! [message #138360 is a reply to message #138353] Wed, 21 September 2005 09:29 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>lacs of record.
1 lac=100,000.
what is your top waits in your statspack / trace?
Re: application hangs..!!! [message #138362 is a reply to message #138353] Wed, 21 September 2005 09:38 Go to previous messageGo to next message
alliejane
Messages: 59
Registered: July 2005
Location: Glasgow
Member
I think we may need a bit more information from you before we can get to the bottom of this..

Like coding, table sizes etc..
Re: application hangs..!!! [message #138367 is a reply to message #138362] Wed, 21 September 2005 09:58 Go to previous messageGo to next message
balavignesh
Messages: 180
Registered: March 2005
Senior Member
the waits are

Event Waits Wait Time (cs) % Total Wt Time
-----------------------------------------------------------------------------------------
db file sequential read 26,385 0 .00
db file scattered read 12,547 0 .00
direct path write 3,010 0 .00
SQL*Net more data to client 2,409 0 .00
direct path read 2,047 0 .00

the application was fine till last week but now hangs..!!

[Updated on: Wed, 21 September 2005 09:59]

Report message to a moderator

Re: application hangs..!!! [message #138368 is a reply to message #138367] Wed, 21 September 2005 10:01 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Did you update the stats?
was there some changes?
Re: application hangs..!!! [message #138373 is a reply to message #138368] Wed, 21 September 2005 10:05 Go to previous messageGo to next message
balavignesh
Messages: 180
Registered: March 2005
Senior Member
yes ..the wait events above said was so reduced which was previously very large as below

Top 5 Wait Events
~~~~~~~~~~~~~~~~~ Wait % Total
Event Waits Time (cs) Wt Time
-------------------------------------------- ------------ ------------ -------
db file sequential read 356,923 0 .00
db file scattered read 152,014 0 .00
direct path read 59,100 0 .00
SQL*Net more data to client 56,168 0 .00
direct path write 45,048 0 .00
-------------------------------------------------------------

i have gathered stats for the tables involved in the application and also increase buffer_cache size.

anything else to do...now the application is not hanging , it is running slowly...

what to do further..?

Re: application hangs..!!! [message #138376 is a reply to message #138373] Wed, 21 September 2005 10:27 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Increasing buffer cache may not have anyeffect at all.
How did you gather the stats?
ALways delete the old stats and gather new one ( as mentioned in the sticky).
And look into the application.
Identify the offending sql/ process.
and look into it.
Re: application hangs..!!! [message #138377 is a reply to message #138376] Wed, 21 September 2005 10:30 Go to previous messageGo to next message
alliejane
Messages: 59
Registered: July 2005
Location: Glasgow
Member
Quote:

ALways delete the old stats and gather new one ( as mentioned in the sticky)


May I ask - why delete first, it's not something I've ever recommended - gather new YES but remove first seems redundant since they are overwritten anyway.

Cheers

Allie
Re: application hangs..!!! [message #138378 is a reply to message #138377] Wed, 21 September 2005 10:35 Go to previous messageGo to next message
balavignesh
Messages: 180
Registered: March 2005
Senior Member
i have gathered stats for the tables involved in the app using

dbms_stats.gather_table_stats() to trigger the CBO in the server.

am i right..?now it seems quite good but slow...

Re: application hangs..!!! [message #138379 is a reply to message #138377] Wed, 21 September 2005 10:37 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
My mistake.
>>ALways delete the old stats

You are right.
It is NOT ALWAYS.
It was just my paranoia.
With certain bugs in 8i/9i i faced, overwriting the object level statistics had issues.
To fix, i always save the stats ( for reference), delte the old , collect new stats.
Thanks For pointing out.
Re: application hangs..!!! [message #138871 is a reply to message #138368] Sat, 24 September 2005 15:13 Go to previous message
vjeedigunta
Messages: 201
Registered: March 2005
Location: Hyderabad
Senior Member

Considering the below statement of yours ..

retrieving records from around 35 tables each table having lacs of record

I would recommend create a materialized view with the query and have it refresh (depending upon the frequncy at which u want to view the updated data ) and have your app. select from this mat view ...that way it will decrease the overhead of processsing this monster query every time the app wants to display this page ..

HTH
-Sai Sreenivas Jeedigunta
Previous Topic: drop a table
Next Topic: ORA-04031
Goto Forum:
  


Current Time: Sat Jan 25 08:24:14 CST 2025