What is SQL Scripts?
A SQL script is a set of SQL commands saved as a file in SQL Scripts. A SQL script can contain
one or more SQL statements or PL/SQL blocks. You can use SQL Scripts to create, edit, view,
run, and delete script files.
When using SQL Scripts, remember the following:
SQL*Plus commands in a SQL script are ignored at run time.
There is no interaction between SQL Commands and SQL Scripts.
You can cut and paste a SQL command from the SQL Script editor to run it in SQL Commands.
SQL Scripts does not support bind variables.
Creating a SQL Script
You can create a script in the Script Repository by:
Creating a script in the Script Editor
Uploading a script from your local file system
Topics in this section include:
Creating a SQL Script in the Script Editor
Uploading a SQL Script
Creating a SQL Script in the Script Editor
To create an SQL script in the Script Editor:
1. On the Workspace home page, click SQL Workshop and then SQL Scripts.
The SQL Scripts page appears.
2. Click the Create button.
The Script Editor appears.
3. Enter a name for the script in the Script Name field.
Script name extensions are optional.
4. Enter the SQL statements, PL/SQL blocks and SQL*Plus commands you want to include in your
script.
Remember that SQL Command Line commands are ignored at run time.
5. Click Save to save your script to the repository.
The SQL Scripts page appears listing your newly saved script.