How do you grant a user the Oracle privilege to select against a certain database link?
- User
How do you grant a user the Oracle privilege to select against a certain database link?
Assistant
To grant a user the privilege to select through a specific database link in Oracle, you use the
GRANTstatement with this syntax:sqlGRANT SELECT ON schema.table@database_link_name TO username;For example:
sqlGRANT SELECT ON hr.employees@remote_db TO john_doe;A few important points:
The user granting the privilege must either own the database link or have been granted privileges on it with the .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.