Oracle Error ORA-02085: database link string connects to string

Oracle Error Message

ORA-02085: database link string connects to string

Reason for the Error

a database link connected to a database with a different name. The connection is rejected.

Solution

create a database link with the same name as the database it connects to, or set global_names=false.