Database Tuning (MOSC)

MOSC Banner

Estimate required temporary space

Dear community,

I would like to open a new discussion to know if you can help me, I really appreciate your time.

I am trying to estimate the required temporary space to running gather_table_stats for a long table ( 311MM rows, 300GB ) but it runs out of temporary space:

exec dbms_stats.gather_table_stats(ownname => 'OWNER', tabname=> 'TNAME', cascade=>true, estimate_percent=>50, method_opt=>'for all columns size repeat',degree=>DBMS_STATS.AUTO_DEGREE);

I've followed the following steps:

  • Enable trace level: exec dbms_stats.set_param('trace','3294');
  • Identify sql wich runs out of temporary space:

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