Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Error when running DBMS_DDL.ANALYZE_OBJECT in PL/SQL package
Probably you're missing ANALYZE ANY. The other one you need is CREATE ANY
PROCEDURE if you don't own the object.
I'm not sure about your reference to tablespace. That should be the schema name. Otherwise it looks ok.
fdp
P.S. if you're running it with dbms_job you also have to set job_queue_processes greater than 0.
fdp
"Gunawan, Raymond Suryodiono" wrote:
> I am trying to do an 'analyze tabe <table_name> compute statistics'
> through a PL/SQL package.
> I use:
>
>
>
![]() |
![]() |