Oracle Database Administration I — Question 33
The SCOTT/TIGER user exists in two databases, BOSTON_DB and DALLAS_DB, in two different locations.
Each database has a tnsnames.ora file defining DALLAS_DB as a service name.
Examine this command:
CREATE DATABASE LINK dblink1 CONNECT TO scott IDENTIFIED BY tiger USING 'dallas_db';
How do you execute the command so that only SCOTT in BOSTON_DB can access the SCOTT schema in DALLAS_DB?
Answer options
- A. as SCOTT in DALLAS_DB
- B. as SCOTT in BOSTON_DB
- C. as SCOTT in BOSTON_DB and SYS in DALLAS_DB
- D. as SYS in both the databases
- E. as SCOTT in both the databases
Correct answer: B
Explanation
The correct answer is B because the command must be executed by the SCOTT user in BOSTON_DB to establish the database link to DALLAS_DB. The other options either involve executing the command from the wrong database or using SYS, which is not required for this operation.