Exam 1z0-082 All QuestionsBrowse all questions from this exam
Question 76

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?

    Correct Answer: B

    When the command $ sqlplus hr/hr@orcl @abc.sql is executed, the following happens: sqlplus is the Oracle command-line utility to connect to an Oracle database. The command hr/hr@orcl specifies the username (hr) and password (hr) to connect to the database instance identified by the alias orcl. The @abc.sql part of the command specifies a SQL script file (abc.sql) to be executed after connecting to the database. Therefore, upon execution, HR will be connected to the orcl database instance, and the abc.sql script will be executed.

Discussion
you1234Option: B

B looks OK the answer?

ama

yes B is correct

Ekos

yes, i agree

Yifan_

B is correct

Lalala8Option: B

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.

doyinbareOption: B

B is correct. I tried it in my personal environment and it worked. What happens is that the hr user connects to the orcl instance and then executes the sql script successfully.

Oracle2020Option: B

The correct answer is B, this time I agree with the one indicated.

Oracle2020Option: B

la respuesta correcta es la B, esta vez coincido con la indicada.

auwiaOption: B

Provided answer is correct.

RaNik69Option: B

B is correct

LeandroHPNOption: B

B is correct

ryuahOption: C

hey C is correct because orcl is alias not database instance. and full path need.

Guhborges

Sorry but you're wrong. if you're in linux path that have the script, full path not needed.

auwia

It's false, as the example is exposed you can also omit the extension of the file (.sql)

danitoOption: C

C is correct. orcl is a host not database instance

ama

You are wrong!!!!

Guhborges

Yeah, on this case you're wrong