Fixed duplicate index error on Oracle; refs #23859.

Refers to regression introduced in 7b4a994599b75a07cb07d1e0cc26b3bbf25ab7a6