|
|
|
|
|
|
|
|
|
|
|
|
|
Re: How to Create Packages and Procedures to automatically drop table indexes [message #604224 is a reply to message #604198] |
Thu, 26 December 2013 07:34 |
Solomon Yakobson
Messages: 3273 Registered: January 2010 Location: Connecticut, USA
|
Senior Member |
|
|
Lalit Kumar B wrote on Thu, 26 December 2013 03:03All you need is a DROP INDEX statement.
You missed word "automatically". But this is not about DROP statement. Sometimes I also ask candidates same question. And many of them shoot right away: procedure will have table name & owner as parameters, will query DBA_INDEXES and drop table indexes using EXECUTE IMMEDIATE. While I am looking candidate to ask me a question what should procedure do if index is PK/UK supporting index? Should we leave it alone of drop constraint and all referencing FK constraints. That tells me candidate's level of understanding indexes: a) how would we distinguish PK/UK supporting indexes? b) will dropping PK/UK also drop the index? And yes, I am also looking for the candidate to question need for such procedure.
SY.
|
|
|