Oracle Error ORA-25960: join index cannot be based on a temporary table

Oracle Error Message

ORA-25960: join index cannot be based on a temporary table

Reason for the Error

An attempt to create a join index was made, which failed because one of the tables was temporary.

Solution

Ensure no underlying tables are temporary.