Simple Stored Procedure help... [message #613276] |
Fri, 02 May 2014 08:10 |
rappaj
Messages: 147 Registered: June 2010 Location: NYC
|
Senior Member |
|
|
Hi,
I am attempting to create a procedure which will drop indexes, run some SQL, and then rebuild indexes. However, I am keeping it simple and short with this example.
Can someone please tell me what I am doing wrong here? When I compile it, I get an error starting from the DROP.
Thank you,
Joe
create or replace PROCEDURE JOES_SAMPLE iS
BEGIN
DROP INDEX I_LH_INTRANET_PAYMENTS_BA ;
DROP INDEX I_LH_INTRANET_PAYMENTS_PD ;
DROP INDEX I_LH_INTRANET_PAYMENTS_PN ;
DROP INDEX I_LH_INTRANET_PAYMENTS_LVN ;
DROP INDEX I_LH_INTRANET_PAYMENTS_REM ;
END JOES_SAMPLE;
|
|
|
|
|
|
|
|
Re: Simple Stored Procedure help... [message #613282 is a reply to message #613280] |
Fri, 02 May 2014 08:28 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
BlackSwan wrote on Fri, 02 May 2014 18:47I suggest rather than DROP you merely DISABLE the index.
Disable a regular index, are you sure? We don't know whether those indexes are function-based or not.
Or perhaps you meant DISABLE/UNUSABLE depending on the type of index
[Updated on: Fri, 02 May 2014 08:32] Report message to a moderator
|
|
|