5 pts.
 ALTER INDEX statement
'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.

Software/Hardware used:
ASKED: December 16, 2008  12:54 PM
UPDATED: December 17, 2008  5:36 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  December 17, 2008  5:36 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _