Set up a DBMS_JOB or DBMS_SCHEDULER task to query across the link regularly.

Depending on the nature of the problem that takes down the link, you might also have luck with using tnsping to see if the local server can reach the remote listener -- this may be all you need.