QuestionQ141

VerifiedAccessing an Oracle Database with Oracle Supplied Tools

A script named abc.sql must be run to complete a job.

Database user HR, defined in this database, executes the following command:

$ sqlplus hr/hr@orcl @abc.sql  

What happens when it is executed?

Explanation

hr/hr@orcl supplies the SQLPlus logon and Oracle Net connect identifier, so HR connects to the orcl database instance. The separate @abc.sql SQLPlus command runs the named script; a full path is not required when the script can be found in the current directory or SQL*Plus search path.

Learn more

Community Discussion

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