Oracle Database 12c: Installation and Administration — Question 106

The HR schema exists in two databases, BOSTON and DENVER, and has the same password, HR.
You have the CREATE DATABASE LINK and CREATE SESSION privileges on both the database.
BOSTON is defined as a service name in the tnsnames.ora of both the databases.
You plan to use the command:
CREATE DATABASE LINK hr_link CONNECT to hr IDENTIFIED BY hr USING 'denver';
What must be done to ensure only the HR user in the BOSTON database can access the HR schema in the DENVER database?

Answer options

Correct answer: D

Explanation

The correct answer is D because executing the command as the HR user in the BOSTON database establishes the database link correctly with the proper privileges. The other options either involve using the SYS user, which is unnecessary for this action, or involve executing the command in the wrong database context.