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
DBMS_STATS Error

DBMS_STATS Error

2005-10-24       - By Ignizio, Richard

Reply:     1     2     3     4     5     6     7     8     9  

There is no need for a declare or an Execute:

 1  begin
 2  dbms_stats.gather_table_stats(ownname=>'XXX',tabname=>'XXX',partname=>NULL
);
 3* end;

PL/SQL procedure successfully completed.

What version of Oracel are you running?



-- --Original Message-- --
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]On
Behalf Of Michael.Coll-Barth@(protected)
Sent: Monday, October 24, 2005 9:55 AM
To: oracle-l@(protected)
Subject: RE: DBMS_STATS Error


Deepak,

Try sticking a 'DECLARE' statement before your pl/sql block.

Michael

-- --Original Message-- --
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]On
Behalf Of DBA Deepak
Sent: Monday, October 24, 2005 9:41 AM
To: oracle-l@(protected)
Subject: DBMS_STATS Error


Hi All,

Getting error while executing the following...

SQL>       begin
 2  dbms_stats.gather_table_stats(ownname=> 'USER01', tabname=> 'MY_TBL',
partname=> NULL);
 3  end;
 4  /
begin
*
ERROR at line 1:
ORA-06521 (See ORA-06521.ora-code.com): PL/SQL: Error mapping function
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 9643
ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 9657
ORA-06512 (See ORA-06512.ora-code.com): at line 2

Any pointers to the problem...?

--
Regards,

Deepak
Oracle DBA


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff size=2>There
is no need for a declare or an Execute:</FONT></SPAN></DIV>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff size=2>&nbsp
;
1&nbsp; begin<BR>&nbsp; 2&nbsp;
dbms_stats.gather_table_stats(ownname=&gt;'XXX',tabname=&gt;'XXX',partname=&gt
;NULL);<BR>&nbsp;
3* end;<BR></FONT></SPAN><SPAN class=755271114-24102005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN></DIV>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff size=2>PL
/SQL
procedure successfully completed.</FONT></SPAN></DIV>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff size=2>What
version of Oracel are you running?</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=755271114-24102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
 size=2>-- --Original Message-- --<BR><B>From:</B>
 oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]<B>On
 Behalf Of </B>Michael.Coll-Barth@(protected)<BR><B>Sent:</B> Monday,
 October 24, 2005 9:55 AM<BR><B>To:</B>
 oracle-l@(protected)<BR><B>Subject:</B> RE: DBMS_STATS
 Error<BR><BR></FONT></DIV>
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN
 class=239015213-24102005>Deepak,</SPAN></FONT></DIV>
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN
 class=239015213-24102005></SPAN></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=239015213-24102005>Try
 sticking a 'DECLARE' statement before your pl/sql block.</SPAN></FONT></DIV>
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN
 class=239015213-24102005></SPAN></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN
 class=239015213-24102005>Michael</SPAN></FONT></DIV>
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN
 class=239015213-24102005></SPAN></FONT>&nbsp;</DIV>
 <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
 size=2>-- --Original Message-- --<BR><B>From:</B>
 oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)]<B>On
 Behalf Of </B>DBA Deepak<BR><B>Sent:</B> Monday, October 24, 2005 9:41
 AM<BR><B>To:</B> oracle-l@(protected)<BR><B>Subject:</B> DBMS_STATS
 Error<BR><BR></FONT></DIV>
 <DIV>Hi All,</DIV>
 <DIV>&nbsp;</DIV>
 <DIV>Getting error while executing the&nbsp;following...</DIV>
 <DIV>&nbsp;</DIV>
 <DIV>SQL&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<BR>&nbsp; 2&nbsp;
 dbms_stats.gather_table_stats(ownname=&gt; 'USER01', tabname=&gt; 'MY_TBL',
 partname=&gt; NULL);<BR>&nbsp; 3&nbsp; end;<BR>&nbsp; 4&nbsp;
 /<BR>&nbsp;begin<BR>*<BR>ERROR at line 1:<BR>ORA-06521 (See ORA-06521.ora-code.com): PL/SQL: Error mapping
 function <BR>ORA-06512 (See ORA-06512.ora-code.com): at "SYS.DBMS_STATS", line 9643 <BR>ORA-06512 (See ORA-06512.ora-code.com): at
 "SYS.DBMS_STATS", line 9657 <BR>ORA-06512 (See ORA-06512.ora-code.com): at line 2 </DIV>
 <DIV>&nbsp;</DIV>
 <DIV>Any pointers to the problem...?<BR clear=all><BR>--
 <BR>Regards,<BR><BR>Deepak<BR>Oracle DBA </DIV></BLOCKQUOTE></BODY></HTML>