Database Administration (MOSC)

MOSC Banner

Query Hanging - dba_free_space

edited Jun 7, 2010 8:00PM in Database Administration (MOSC) 4 commentsAnswered
 Hi Guys,

We got a problem in production environment with one of the query which we run every minutes to check free space through nagios doesn't run any more since last night however previously it has been running successfully without any issue. On average it takes 15 secs to run but now it is hanging. Following is query we run. 

SELECT df.tablespace_name TSNAME, df.file_name DFNAME, e.used_bytes BYTES
    FROM dba_data_files df,
         (  SELECT file_id, SUM (DECODE (bytes, NULL, 0, bytes)) used_bytes
              FROM dba_extents
          GROUP BY file_id) e,
         (  SELECT MAX (bytes) free_bytes, file_id

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