QuestionQ116

VerifiedOracle提供のデータベース・ツール

The script abc.sql must be run to carry out a particular task.

The HR user with password HR exists in the target database, and the account is unlocked. The TNSNAMES.ORA file is current.

Examine the command the user attempted:

$ sqlplus hr/hr@orcl @abc  

What occurs, and why?

Explanation

SQL*Plus uses hr/hr@orcl to connect user HR through the Oracle Net connect identifier orcl. Its subsequent @abc start argument runs the local script named abc with the default .sql suffix, so it executes abc.sql. The two @ symbols are valid because one introduces the connect identifier and the other introduces the script to start.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!