How to create Oracle database link with sysdba privilege

CamilleHuot picture CamilleHuot · Nov 22, 2011 · Viewed 11.6k times · Source

I want to:

  select * from v$database@standby;

Problem:

  • standby is mounted so only a SYSDBA user can connect to query it
  • I can't find out how to use a database link using SYSDBA privilege

My goal is to display system information/stats from a standby Oracle database on a web page.

I'm using Oracle APEX. Pages are computed from mod_plsql which runs from an Oracle DB so it is easy to display the result of this kind of query.

Alternative:

  • How to select * from "shell script"?

Answer

DCookie picture DCookie · Nov 23, 2011

I don't think you can do this, based on the few things I've seen via Google.

To sum up, connecting remotely as sysdba uses authentication via the password file. Database links do not attempt to authenticate this way, they are authenticated in the remote database and not externally.

Here's a link to a site that briefly touches upon the subject.