SQL> create index EMP_TAB_IDX1 on EMP_TAB ( EMPNAME,LOCATION,DEPT); create index EMP_TAB_IDX1 on EMP_TAB ( EMPNAME,LOCATION,DEPT) * ERROR at line 1: ORA-01450: maximum key length (6398) exceeded
SQL> desc EMP_TAB Name Null? Type ----------------------------------------- -------- ------------------- EMPNO NUMBER EMPNAME VARCHAR2(3000) LOCATION VARCHAR2(3000) DEPT VARCHAR2(2000)
SQL> create index EMP_TAB_IDX1 on EMP_TAB ( EMPNAME,LOCATION); Index created.Above index creation worked, because 3000 + 3000 < 6398 .