Search notes:

ORA-02158: invalid CREATE INDEX option

create table tq84_02158 (id integer, txt varchar2(100));

alter table tq84_02158 add constraint tq84_02158_pk primary key (id) compress for oltp;
-- Table TQ84_02158 altered.

create index tq84_02158_ix on tq84_02158(txt) compress for oltp;
-- ORA-02158: invalid CREATE INDEX option
-- An option other than
--    COMPRESS, NOCOMPRESS, PCTFREE, INITRANS, MAXTRANS, STORAGE,
--    TABLESPACE, PARALLEL, NOPARALLEL, RECOVERABLE,                 
--    UNRECOVERABLE, LOGGING, NOLOGGING, LOCAL, or GLOBAL
-- was specified.

drop table tq84_02158;

See also

Indexes
Other Oracle error messages

Index