Question 141 · 167 in bank
A script abc.sql must be executed to perform a job. A database user HR, who is defined in this database, executes this command: $ sqlplus hr/hr@orcl @abc.sql What will happen upon execution?
Show answer
Answer: B
Explanation
The correct answer is B. The command succeeds and HR will be connected to the orcl database instance, and the abc.sql script will be executed. The sqlplus command is used to connect to an Oracle database and execute SQL statements. The @ symbol is used to specify a script file to be executed. In the command $ sqlplus hr/hr@orcl @abc.sql, the user HR is connecting to the orcl database instance and specifying the abc.sql script to be executed. The command will succeed and HR will be connected to the orcl database instance and the abc.sql script will be executed.
Source: Adapted from community discussion — Lalala8
