Drop index in a procedure
Pete88Dec 6 2008 — edited Dec 6 2008Hello
I wish to drop or rebuild a index from a procedure... this procedure will be run nighly in a batch job.
The commands I used from SQLPLUS are
Drop index fred1
or
alter index fred1 rebuild
All is well doing this
If I add them to a procedure
Declase
Begin
Drop index fred1;
fred;
It does not work
Can anyone let know what I am doing wrong?
Thanks
Pete