CREATE INDEX doc_index ON DOCUMENTS (document) INDEXTYPE IS ctxsys.CONTEXT
PARAMETERS ('SYNC (ON COMMIT) TRANSACTIONAL')

GRANT EXECUTE ON  SYS.DBMS_RLS TO CURSIST;
GRANT EXECUTE ON  CTXSYS.CTX_DDL TO CURSIST;
GRANT EXECUTE ON  CTXSYS.CTX_DOC TO CURSIST;