exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 76 discussion

Actual exam question from Oracle's 1z0-082
Question #: 76
Topic #: 1
[All 1z0-082 Questions]

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?

  • A. The command succeeds and HR will be connected to the orcl and abc.sql databases
  • B. The command succeeds and HR will be connected to the orcl database instance, and the abc.sql script will be executed
  • C. The command fails because the script must refer to the full path name
  • D. The command fails and reports an error because @ is used twice
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
you1234
Highly Voted 4 years ago
B looks OK the answer?
upvoted 18 times
Yifan_
6 months, 2 weeks ago
B is correct
upvoted 1 times
...
ama
4 years ago
yes B is correct
upvoted 7 times
...
Ekos
3 years, 7 months ago
yes, i agree
upvoted 2 times
...
...
Lalala8
Most Recent 10 months, 1 week ago
Selected Answer: 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.
upvoted 3 times
...
doyinbare
11 months ago
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.
upvoted 1 times
...
Oracle2020
11 months, 2 weeks ago
The correct answer is B, this time I agree with the one indicated.
upvoted 1 times
...
Oracle2020
11 months, 2 weeks ago
la respuesta correcta es la B, esta vez coincido con la indicada.
upvoted 1 times
...
auwia
1 year, 1 month ago
Selected Answer: B
Provided answer is correct.
upvoted 1 times
...
RaNik69
1 year, 2 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
LeandroHPN
2 years ago
Selected Answer: B
B is correct
upvoted 1 times
...
ryuah
2 years, 1 month ago
Selected Answer: C
hey C is correct because orcl is alias not database instance. and full path need.
upvoted 1 times
Guhborges
1 year, 4 months ago
Sorry but you're wrong. if you're in linux path that have the script, full path not needed.
upvoted 2 times
...
auwia
1 year, 1 month ago
It's false, as the example is exposed you can also omit the extension of the file (.sql)
upvoted 1 times
...
...
danito
4 years, 1 month ago
C is correct. orcl is a host not database instance
upvoted 1 times
Guhborges
2 years, 8 months ago
Yeah, on this case you're wrong
upvoted 1 times
...
ama
4 years ago
You are wrong!!!!
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago