Possibly, one of the most commonly used group of SQL*Plus commands are those that run scripts: @
, @@
, and start. The script runner emulates a limited set of SQL*Plus features. You can often enter SQL and SQL*Plus statements and execute them by clicking the Run Script icon, which is shown in the next screenshot. The Script Output pane displays the output.
You need to use @@
when running one script that calls a second or third script. In this case, it is necessary to set the path for the top-level file.
For either, set the path navigating to Database | Worksheet. Press F5 to run the script.
Tip
Set the default path for executing SQL scripts
To set the default path for scripts, invoke the Preferences dialog and set the path by navigating to Database | Worksheet. Click on Browse to locate or enter the path.
As with SQL*Plus, if you use @
or start to run a single SQL script file, you can either enter the full path (for example @C:\Performance_Issues\MyScript.sql
) or...