As a user of the ORCL database, you establish a database link to the remote HQ database such that all
users in the ORCL database may access tables only from the SCOTT schema in the HQ database.
SCOTT’s password is TIGER. The service mane “HQ” is used to connect to the remote HQ database.
Which command would you execute to create the database link?
A.
CREATE DATABASE LINK HQ USING ‘HQ’;
B.
CREATE DATABASE LINK HQ CONNECT TO CXJRRENT_USER USING HQ’ S
C.
CREATE PUBLIC DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING ‘HQ’;
D.
CREATE DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING ‘HQ’;
D
Sorry typo, C is correct.
C
ALL users supposed to access HQ==> Public link ==> C
I guess B .. printing mistake. It is current_user .