Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Function-based Index
Hi,
Oracle 8i supports the function-based indexes. I have consulted the SQL Reference, and Tunning manual, and set the "QUERY_REWRITE_ENABLED" parameter to be TRUE.
I tried it using a account with DBA role privilege, it works. But when I tried it using the default "scott" account, I got a error message "ORA-01031: insufficient privileges" (see the following). Does anyone know which privilege is lack for scott account to create a function-based index?
SQL> create table test (
2 a number,
3 b number);
Table created.
SQL> create index ind_test on test (a+b); create index ind_test on test (a+b)
*