Oracle Error ORA-25951: join index where clause cannot contain OR condition

Oracle Error Message

ORA-25951: join index where clause cannot contain OR condition

Reason for the Error

An attempt to create a join index was made, which failed because there was an OR branch in the where clause.

Solution

Reformulate the where clause without using ORs.