<!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><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> </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> </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> </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> </DIV> <DIV>Getting error while executing the following...</DIV> <DIV> </DIV> <DIV>SQL> begin<BR> 2 dbms_stats.gather_table_stats(ownname=> 'USER01', tabname=> 'MY_TBL', partname=> NULL);<BR> 3 end;<BR> 4 /<BR> 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> </DIV> <DIV>Any pointers to the problem...?<BR clear=all><BR>-- <BR>Regards,<BR><BR>Deepak<BR>Oracle DBA </DIV></BODY></HTML>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you.