Oracle Solution for Error ora-08116

Solution for Oracle Error ORA-08116

ORA-08116: can not acquire dml enough lock(S mode) for online index build

What triggered the Error:

User attempted to create index online without allowing DML Share lock

What should we do to fix it:

allow DML share lock on the base table