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?
CREATE DATABASE LINK HQ USING 'HQ';
CREATE DATABASE LINK HQ CONNECT TO CURRENT_USER USING ‘HQ’;
CREATE PUBLIC DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING 'HQ';
CREATE DATABASE LINK HQ CONNECT TO scott IDENTIFIED BY tiger USING 'HQ';
Correct answer: C
Question 2
What happens if a maintenance window closes before a job that collects optimizer statistics completes?
The job is terminated and the gathered statistics are not saved.
The job is terminated but the gathered statistics are not published.
The job continues to run until all statistics are gathered.
The job is terminated and statistics for the remaining objects are collected the next time the maintenance window opens.
Correct answer: D
Explanation:
The stop_on_window_close attribute controls whether the GATHER_STATS_JOB continues when the maintenance window closes. The default setting for the stop_on_window_close attribute is TRUE, causing Scheduler to terminate GATHER_STATS_JOB when the maintenance window closes. The remaining objects are then processed in the next maintenance window. References: https://docs.oracle.com/cd/B19306_01/server.102/b14211/stats.htm#g49431
The stop_on_window_close attribute controls whether the GATHER_STATS_JOB continues when the maintenance window closes. The default setting for the stop_on_window_close attribute is TRUE, causing Scheduler to terminate GATHER_STATS_JOB when the maintenance window closes. The remaining objects are then processed in the next maintenance window.