SQL Performance (MOSC)

MOSC Banner

11gR2 : Query to check all objects statistics of a given SQL_ID

edited May 19, 2017 11:29AM in SQL Performance (MOSC) 4 commentsAnswered

Hi ,

I look for a query to get CBO statistics of all query objects ( Tables , Index , partition ...)  from a given  SQL_ID.

Example :

SQL> @check_stats  <SQL_ID>

OUTPUT something  like :

Table 1 STALE

Table 2 STALE

Table 2 Partition 1 STALE

INDEX1 STALE

NB : oracle diagnostic and tuning pack license ares OK

Best regards.

GD.

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