Oracle Text (MOSC)

MOSC Banner

ORA-900 invalid sql statement error while calling optimize_index procedure from pl/sql

edited Oct 18, 2013 9:52AM in Oracle Text (MOSC) 3 commentsAnswered
Hi Experts,

I am on Oracle 11.2.0.3 on Linux and have Oracle Text installed in my database. I want to set up dbms_job schedule to optimize my oracle text indexes. So first I created a pl/sql procedure to optimize the indexes. (By the way, the CTXAPP role has been granted to the schema in which I created the indexes and running this procedure.) But it is giving me ORA-900 error, but the same sql if I run from sqlplus it works fine! Can you please help me find what the issue is:

Here is the procedure:

CREATE OR REPLACE PROCEDURE optimize_ora_txt_indexes_debug

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center