Oracle Error ORA-16276: specified database link does not correspond to primary database

Oracle Error Message

ORA-16276: specified database link does not correspond to primary database

Reason for the Error

The database link specified to DBMS_LOGSTDBY.INSTANTIATE_TABLE did not link to the primary database for this logical standby database.

Solution

Specify a database link that corresponds to the primary database for this logical standby database. The link should have privileges to read and lock the table being instantiated, as well as the SELECT_CATALOG_ROLE.