QuestionQ100

VerifiedPrivileges

The HR schema exists in the BOSTON and DENVER databases and has the same password, HR.

You have the CREATE DATABASE LINK and CREATE SESSION privileges in both databases. DENVER is defined as a service name in the tnsnames.ora file of both databases.

DENVER -

You plan to run this command:

CREATE DATABASE LNK hr_link CONNECT TO hr IDENTIFIED BY hr USING "˜DENVER';  

What must be done to ensure that every user in BOSTON can access the HR schema in DENVER?

Explanation

A public database link is visible to all users, while a database link created without PUBLIC is private to its creator. Because users in BOSTON will use the link to connect to the remote DENVER database, the public link must be created in BOSTON. A fixed-user link using CONNECT TO hr IDENTIFIED BY hr connects to the remote HR schema. Oracle also requires the CREATE PUBLIC DATABASE LINK privilege to create the public link.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!