Home
All Oracle Error Codes
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

Re: error gathering statistics on less than 100 %

Chris Marquez

2005-12-22

Replies:
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@gmail.com> 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: : identificador no vßlido
ORA-06512: en "SYS.DBMS_STATS", lÝnea 9136
ORA-06512: en "SYS.DBMS_STATS", lÝnea 9150
ORA-06512: 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: : identificador no vßlido
ORA-06512: en "SYS.DBMS_STATS", lÝnea 9136
ORA-06512: en "SYS.DBMS_STATS", lÝnea 9150
ORA-06512: 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