Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Oracle database link with sysdba privilege

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"?
like image 566
CamilleHuot Avatar asked Oct 10 '22 10:10

CamilleHuot


1 Answers

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.

like image 68
DCookie Avatar answered Oct 16 '22 23:10

DCookie