ALTER INDEX statement

5 pts.
Tags:
ALTER INDEX statement
EXECUTE IMMEDIATE statement
Oracle development
Oracle SQL
Oracle stored procedures
SQL statements
Stored Procedures
'ALTER INDEX ' || C_Indices.INDEX_NAME ||' REBUILD '; 'ALTER INDEX ' || C_Indices.INDEX_NAME || ' REBUILD ONLINE COMPUTE STATISTICS'; In my stored procedure , i am reconstructing or you can say re-building the tables and table name is the input parameter to the procedure. In middle of the code , i am using execute immediate while running the second alter index (as shown above)..., Its not working and going into exception block, But when i am running the first one , code is moving smoothly. What can be the possible reasons , Please suggest.

Answer Wiki

Thanks. We'll let you know when a new response is added.

What Oracle error are you getting (ORA-XXXX) ?

I guess it could be ORA-ORA-00439, which is “Feature not enabled”. If that is the case, your procedure won’t work unless you remove the “ONLINE” keyword. That feature might not be available in your database version.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following