Home » RDBMS Server » Performance Tuning » SQL performance tunning :- DBMS_STATS procedure errored out (Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production)
|
|
|
|
|
|
|
|
|
|
Re: SQL performance tunning :- DBMS_STATS procedure errored out [message #616194 is a reply to message #616107] |
Fri, 13 June 2014 06:16   |
 |
msinha8
Messages: 43 Registered: March 2014 Location: Hyderbad
|
Member |
|
|
John,
Please see below , i have ran the same query in SQl*Plus :-
SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS ('XXCS', 'XXCS_NORM_ALARM', cascade => TRUE);
BEGIN DBMS_STATS.GATHER_TABLE_STATS ('XXCS', 'XXCS_NORM_ALARM', cascade => TRUE); END;
*
ERROR at line 1:
ORA-00904: : invalid identifier
ORA-06512: at "SYS.DBMS_STATS", line 9375
ORA-06512: at "SYS.DBMS_STATS", line 9389
ORA-06512: at line 1
SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS ('XXCS', 'XXCS_MSS_TRANSACTIONS', cascade => TRUE);
PL/SQL procedure successfully completed.
SQL>
Please help me to trace the issue.
Regards
|
|
|
|
|
|
|
|
|
|
|
|
Re: SQL performance tunning :- DBMS_STATS procedure errored out [message #616453 is a reply to message #616239] |
Tue, 17 June 2014 02:36   |
 |
msinha8
Messages: 43 Registered: March 2014 Location: Hyderbad
|
Member |
|
|
All,
I found on metalink(Doc ID 409109.1),and according to that, it's bug and suggested us to use :-
exec dbms_stats.gather_table_stats(ownname=>'schema_name',tabname=>'table_name_1',method_opt=>'FOR ALL INDEXED COLUMNS size 1',estimate_percent=>20,degree=>1,granularity=>'ALL',cascade=>TRUE);
And above statement executed without any errors and alternatively, below piece of code is also working fine :-
exec dbms_stats.gather_table_stats(ownname=>'schema_name',tabname=>'table_name_1',estimate_percent=>dbms_stats.auto_sample_size,cascade => TRUE)
But i want to know what is the meaning of the paramater value passed for 'method_opt'(in first statement) and 'estimate_percent'(in both statement)
And also when i tried with estimate_percent=> 100, it fails again. Why?
Regards,
|
|
|
|
|
Goto Forum:
Current Time: Fri Jul 11 15:07:20 CDT 2025
|