About Running Oracle SQL Scripts

Oracle Developer Tools for Visual Studio includes a built-in, SQL*Plus compliant execution engine which runs SQL*Plus scripts. SQL*Plus scripts can include SQL and PL/SQL, as well as SQL*Plus specific commands.

To run script files, use one of the following methods:

When you run a script, the results appear in the Output Pane.

You can cancel running scripts. To cancel long-running queries, in the script project items of the Solution Explorer, select Cancel from the SQL editor menu, or from the Run SQL Script Dialog Box, select Cancel.

See Oracle SQL Script Compatibility Requirements for details on compatibility.

This section covers the following topics:

How SQL*Plus Script Execution Works

The following apply to Run SQL*Plus Script:

Running a Script from Oracle Database Project

If you right-click on a script in the Oracle Database Project, and select Run On, then the Run On dialog box launches.

You can choose which connection to use in the dialog box.

You can also drag and drop a script file to a database reference. This is supported within a single project, but not between projects.

See Also Oracle Database Project Run On Dialog

Running a Script from Oracle SQL Script Editor

You can right-click on a script in the Oracle SQL Script Editor and select Run. The Run On dialog box launches. To cancel long-running queries select Cancel from the SQL editor menu.

Running a SQL Script Outside of the Oracle Database Project

To run a SQL script outside of the Oracle Database Project, you can use the Run SQLPlus Script Dialog as follows:Select Run SQL*Plus Script from the Visual Studio Tools menu.This launches the Run SQLPlus Script Dialog box.

See Also Run SQL*Plus Script Dialog