Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBMS_STATS error

RE: DBMS_STATS error

From: Regis Biassala <Regis.Biassala_at_datalex.ie>
Date: Thu, 12 Jun 2003 07:39:25 -0700
Message-ID: <F001.005B0131.20030612060952@fatcity.com>


why are you so focused on this view: DBA_TAB_MODIFICATIONS

It contains info on tables *modified* :
columns INSERTS, UPDATES, DELETES give you the number rows inserted or updated or deleted since the ****last**** your tables was analyzed....

Concerning your error, I ran it as SYSTEM and it worked...8.1.7.0 SQL> exec
dbms_stats.gather_schema_stats(ownname=>'REGIS',estimate_percent=>20,degree=
>16,cascade=>true,options=>'GATHER EMPTY'
PL/SQL procedure successfully completed.

which version of Oracle you are running ? Can you do a: desc dbms_stats ?
Regis

-----Original Message-----
Sent: Thursday, June 12, 2003 1:49 PM
To: Multiple recipients of list ORACLE-L

I ran the following and got an error. Any idea? I noticed after I ran it that my DBA_TAB_MODIFICATION view has no records even though I ran gather_schema_stats yesterdays

SQL> exec
dbms_stats.gather_schema_stats(ownname=>'MASTER_TEST2',estimate_percent=>20, degree=>16,cascade=>true,options=>'GATH
ER EMPTY');
BEGIN
dbms_stats.gather_schema_stats(ownname=>'MASTER_TEST2',estimate_percent=>20, degree=>16,cascade=>true,options=>'GATHER E MPTY'); END; *
ERROR at line 1:

ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "SYS.DBMS_STATS", line 4609
ORA-06512: at "SYS.DBMS_STATS", line 4732
ORA-06512: at "SYS.DBMS_STATS", line 4704
ORA-06512: at line 1

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: <[EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
*********************************************************************
This electronic transmission is strictly confidential and intended solely
for the addressee. It may contain information which is covered by legal,
professional or other privilege. If you are not the intended addressee,
you must not disclose, copy or take any action in reliance of this
transmission. If you have received this transmission in error, 
please notify the sender as soon as possible.

This footnote also confirms that this message has been swept
for computer viruses.
**********************************************************************

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Regis Biassala
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Jun 12 2003 - 09:39:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US