Deepak, Try sticking a 'DECLARE' statement before your pl/sql block. Michael -----Original Message----- From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of DBA Deepak Sent: Monday, October 24, 2005 9:41 AM To: oracle-l@xxxxxxxxxxxxx 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: PL/SQL: Error mapping function ORA-06512: at "SYS.DBMS_STATS", line 9643 ORA-06512: at "SYS.DBMS_STATS", line 9657 ORA-06512: at line 2 Any pointers to the problem...? -- Regards, Deepak Oracle DBA
___________________________________________________________________ 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.