.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
error gathering statistics on less than 100 %

error gathering statistics on less than 100 %

2005-12-22       - By Chris Marquez
Reply:     1     2     3  

Juan,

Just a guess here, but I bet it has more to do with "FOR ALL COLUMNS SIZE
SKEWONLY"
than the percentage change from 1%, to 50%, 100%.

Try with "FOR ALL COLUMNS SIZE 1" or "FOR ALL COLUMNS SIZE AUTO".

If you need the HISTOGRAMS then your out of luck...but personally I have had
nothing but trouble with STATS and HISTOGRAMS...I use "FOR ALL COLUMNS SIZE
1" unless the developer can make a case for something else.

hth

Chris Marquez
Oracle DBA


On 12/22/05, Juan Carlos Reyes Pacheco <juancarlosreyesp@(protected)> wrote:
>
> Hi,
> I found a curious problem on 9.2 when trying to get less than 100% on a
> table
>
> SQL> EXEC  DBMS_STATS.GATHER_TABLE_STATS( ownname=>'ADM',
> TABNAME=>'DEFTRANSAC_M
> E', ESTIMATE_PERCENT=>50, CASCADE=>TRUE,METHOD_OPT=>'FOR ALL COLUMNS SIZE
> SKEWON
> LY');
> BEGIN DBMS_STATS.GATHER_TABLE_STATS( ownname=>'ADM',
> TABNAME=>'DEFTRANSAC_ME', E
> STIMATE_PERCENT=>50, CASCADE=>TRUE,METHOD_OPT=>'FOR ALL COLUMNS SIZE
> SKEWONLY');
> END;
>
> *
> ERROR en lƯnea 1:
> ORA-00904 (See ORA-00904.ora-code.com): : identificador no vßlido
> ORA-06512 (See ORA-06512.ora-code.com): en "SYS.DBMS_STATS", lƯnea 9136
> ORA-06512 (See ORA-06512.ora-code.com): en "SYS.DBMS_STATS", lƯnea 9150
> ORA-06512 (See ORA-06512.ora-code.com): en lƯnea 1
>
>
> SQL> EXEC  DBMS_STATS.GATHER_TABLE_STATS( ownname=>'ADM',
> TABNAME=>'DEFTRANSAC_M
> E', ESTIMATE_PERCENT=>1, CASCADE=>TRUE,METHOD_OPT=>'FOR ALL COLUMNS SIZE
> SKEWONL
> Y');
> BEGIN DBMS_STATS.GATHER_TABLE_STATS( ownname=>'ADM',
> TABNAME=>'DEFTRANSAC_ME', E
> STIMATE_PERCENT=>1, CASCADE=>TRUE,METHOD_OPT=>'FOR ALL COLUMNS SIZE
> SKEWONLY');
> END;
>
> *
> ERROR en lƯnea 1:
> ORA-00904 (See ORA-00904.ora-code.com): : identificador no vßlido
> ORA-06512 (See ORA-06512.ora-code.com): en "SYS.DBMS_STATS", lƯnea 9136
> ORA-06512 (See ORA-06512.ora-code.com): en "SYS.DBMS_STATS", lƯnea 9150
> ORA-06512 (See ORA-06512.ora-code.com): en lƯnea 1
>
> But when I get 100% I don't get that problem.
>
> SQL> EXEC  DBMS_STATS.GATHER_TABLE_STATS( ownname=>'ADM',
> TABNAME=>'DEFTRANSAC_M
> E', ESTIMATE_PERCENT=>100, CASCADE=>TRUE,METHOD_OPT=>'FOR ALL COLUMNS SIZE
> SKEWO
> NLY');
>
> Procedimiento PL/SQL terminado correctamente.
>
>
> Trying with other tables I don't get that problem.
>
> SQL> EXEC  DBMS_STATS.GATHER_TABLE_STATS( ownname=>'ADM',
> TABNAME=>'CUENTAS_ME',
> ESTIMATE_PERCENT=>50, CASCADE=>TRUE,METHOD_OPT=>'FOR ALL COLUMNS SIZE
> SKEWONLY'
> );
>
> Procedimiento PL/SQL terminado correctamente.
>
> SQL>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>


--
Chris Marquez
Oracle DBA

Juan,<br>
<br>
Just a guess here, but I bet it has more to do with &quot;FOR ALL COLUMNS SIZE
SKEWONLY&quot;<br>
than the percentage change from 1%, to 50%, 100%.<br>
<br>
Try with &quot;FOR ALL COLUMNS SIZE 1&quot; or &quot;FOR ALL COLUMNS SIZE AUTO
&quot;.<br>
<br>
If you need the HISTOGRAMS then your out of luck...but personally I
have had nothing but trouble with STATS and HISTOGRAMS...I use &quot;FOR ALL
COLUMNS SIZE 1&quot; unless the developer can make a case for something else.
<br>
<br>
hth<br>
<br>
Chris Marquez<br>
Oracle DBA<br>
<br><br><div><span class="gmail_quote">On 12/22/05, <b class="gmail_sendername"
>Juan Carlos Reyes Pacheco</b> &lt;<a href="mailto:juancarlosreyesp@(protected)"
>juancarlosreyesp@(protected)</a>&gt; wrote:</span><blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;
padding-left: 1ex;">
Hi,<br>I found a curious problem on 9.2 when trying to get less than 100% on a
table<br><br>SQL&gt; EXEC&nbsp;&nbsp;DBMS_STATS.GATHER_TABLE_STATS( ownname=&gt
;'ADM', TABNAME=&gt;'DEFTRANSAC_M<br>E', ESTIMATE_PERCENT=&gt;50, CASCADE=&gt
;TRUE,METHOD_OPT=&gt;'FOR ALL COLUMNS SIZE SKEWON
<br>LY');<br>BEGIN DBMS_STATS.GATHER_TABLE_STATS( ownname=&gt;'ADM', TABNAME=
&gt;'DEFTRANSAC_ME', E<br>STIMATE_PERCENT=&gt;50, CASCADE=&gt;TRUE,METHOD_OPT=
&gt;'FOR ALL COLUMNS SIZE SKEWONLY');<br> END;<br><br>*<br>ERROR en lƯnea 1:
<br>ORA-00904 (See ORA-00904.ora-code.com): : identificador no vßlido<br>ORA-06512 (See ORA-06512.ora-code.com): en &quot;SYS.DBMS_STATS
&quot;, lƯnea 9136<br>ORA-06512 (See ORA-06512.ora-code.com): en &quot;SYS.DBMS_STATS&quot;, lƯnea 9150<br
>ORA-06512 (See ORA-06512.ora-code.com): en lƯnea 1<br><br><br>SQL&gt; EXEC&nbsp;&nbsp;DBMS_STATS.GATHER
_TABLE_STATS( ownname=&gt;'ADM', TABNAME=&gt;'DEFTRANSAC_M
<br>E', ESTIMATE_PERCENT=&gt;1, CASCADE=&gt;TRUE,METHOD_OPT=&gt;'FOR ALL
COLUMNS SIZE SKEWONL<br>Y');<br>BEGIN DBMS_STATS.GATHER_TABLE_STATS( ownname=
&gt;'ADM', TABNAME=&gt;'DEFTRANSAC_ME', E<br>STIMATE_PERCENT=&gt;1, CASCADE=&gt
;TRUE,METHOD_OPT=&gt;'FOR ALL COLUMNS SIZE SKEWONLY');
<br>END;<br><br>*<br>ERROR en lƯnea 1:<br>ORA-00904 (See ORA-00904.ora-code.com): : identificador no vßlido
<br>ORA-06512 (See ORA-06512.ora-code.com): en &quot;SYS.DBMS_STATS&quot;, lƯnea 9136<br>ORA-06512 (See ORA-06512.ora-code.com): en &quot
;SYS.DBMS_STATS&quot;, lƯnea 9150<br>ORA-06512 (See ORA-06512.ora-code.com): en lƯnea 1<br><br>
But when I get 100% I don't get that problem.<br><br>SQL&gt; EXEC&nbsp;&nbsp
;DBMS_STATS.GATHER_TABLE_STATS( ownname=&gt;'ADM', TABNAME=&gt;'DEFTRANSAC_M<br
>E', ESTIMATE_PERCENT=&gt;100, CASCADE=&gt;TRUE,METHOD_OPT=&gt;'FOR ALL COLUMNS
SIZE SKEWO
<br>NLY');<br><br>Procedimiento PL/SQL terminado correctamente.<br><br><br
>Trying with other tables I don't get that problem.<br><br>SQL&gt; EXEC&nbsp;
&nbsp;DBMS_STATS.GATHER_TABLE_STATS( ownname=&gt;'ADM', TABNAME=&gt;'CUENTAS_ME'
,
<br> ESTIMATE_PERCENT=&gt;50, CASCADE=&gt;TRUE,METHOD_OPT=&gt;'FOR ALL COLUMNS
SIZE SKEWONLY'<br>);<br><br>Procedimiento PL/SQL terminado correctamente.<br>
<br>SQL&gt;<br>--<br><a href="http://www.freelists.org/webpage/oracle-l">
http://www.freelists.org/webpage/oracle-l</a><br><br><br></blockquote></div><br
><br clear="all"><br>-- <br>Chris Marquez<br>Oracle DBA