Scenario :
A procedure 'XYZ' is created with DB account 'SCOTT'. The procedure uses a public DB link to connect to another database.
We have another user 'EVE' who has access to execute procedures owned by 'SCOTT'.
If procedure XYZ is executed by EVE , how does the public DB link inside the procedure work? Does it use the credentials of SCOTT to connect to Target DB ( the owner) or does it use the credentials of EVE ( the executor)?
Question on Oracle Public DB link inside Procedures
oracle
Related Question
- Sql-server – Oracle database link via ODBC to SQL Server does not recover automatically
- Configure Oracle user in Enterprise Manager to CREATE VIEW on any of his tables
- Oracle 11g max login fail attempts workaround
- SSDT – Unresolved Reference to temporary table in linked server
- How to create database/tablespace/schema and users for quickstart developers on Oracle 12
- Alter public database link to private in oracle
- Sql-server – Connect to Oracle from SQL Server
Best Answer
This depends on how the link was set up. A public link means it is accessible to anyone to access the link but the credentials used to access the remote DB can either be those of the current user or a specific user.
Take a look at CREATE DATABASE LINK for the full syntax and explanations.