Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Performance problem with use of count(*) on dba_segments

Status
Not open for further replies.

attick111

Programmer
Nov 28, 2001
21
US
I have a monitoring application that is executing select count(*) from sys.dba_extents for an Oracle database with over 15 TB of data and this is taking 20 minutes and as a result is affecting the overall monitoring application's performance.

The goal is to get the total number of extents. Does anyone have a more efficient way of getting this value?

Thanks
 
Hi, attick

You could try COUNT(1) instead. This is supposed to be faster.

Regards,



William Chadbourne
Oracle DBA
 

You could try COUNT(1) instead. This is supposed to be faster.


Not true, check this. [sadeyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
I had this problem once, as far as I remember it was related to the size of extents in the temp tablespace, so you may want to review your settings for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top