Fixed #23859 -- Fixed duplicate index error on Oracle

Refers to regression introduced in 7b4a994599b75a07cb07d1e0cc26b3bbf25ab7a6