Database Tuning (MOSC)

MOSC Banner

Sql Query is taking long time to execute.

edited Dec 23, 2009 12:50AM in Database Tuning (MOSC) 4 commentsAnswered
  Hi All,

 

I am running below query on my database and this will take more than 2 minute to show it’s result.

 

Query

 

SELECT  '    '||ROWNUM||'. '||Value

  FROM (SELECT TableSpace_Name||' used '||COUNT(*)||' times' AS Value

           FROM All_Tables

          WHERE TableSpace_Name IS NOT NULL

            AND TableSpace_Name NOT IN ('SYSAUX','SYSTEM','USERS')

          GROUP BY TableSpace_Name

          ORDER BY TableSpace_Name);

 

I want to improve response time of above query. Any clue much appreciated.

 

Thanks in advance.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center