Executes a SQL script file. Property replacement is performed on the files before they are executed.
Info |
---|
Delimiting SQL filesPlease note that the statements in the SQL files must be delimited properly.
|
Target Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
Oracle Database User |
| Yes | The username that will be used to connect to the target Oracle Database. |
Oracle Database Password |
| Yes | The password for Oracle Database User. |
SQLPlus Path |
| No | Provide the SQLPlus sqlplus path (required Required if SQLPlus sqlplus is not set under the system's PATH).on PATH environment). ( Ex: |
SQLPlus Source Script |
| No | Source Script with full path. (Ex: |
Oracle SID |
| No | Provide the Oracle SID (optional if it is already set in the source script). |
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
User |
| No | The username that will be used |
to connect with. This input takes precedence over |
the target scoped | ||
Password |
| No |
The password for |
target scoped | |||
Script File |
| Yes | Fully qualified or relative path to script file. If relative path is given, it will be assumed to be in the |
User Profile (login.sql) |
| No | User Profile (login.sql) is intended to allow users to specifically customize their session. (see the Special Considerations section for examples) |
Generate SQL Spool File |
| No | Check to generate report (Spool file) of SQL statement executions. |
Show DBMS Output |
| No | Print DBMS output in the log. |
Fix SQL Syntax |
| No | Check to fix common SQL syntax issues. |
Ignore Compilation Warnings |
| No | If checked, sql compilation warnings will be ignored. Otherwise, they will cause the execution to be marked as fail. |
Artifacts
This operation consumes one SQL Sql file from the artifacts repository.
Endpoint Selection
This operation delegates the selection to the workflow developer to determine.
Endpoint Execution
This operation will randomly execute on one of the endpoint identified during selection.
Special Considerations
login.sql
The script provided in the input FDSQLPLUS_INP_LOGIN_SQL_FILE
will be created as the login.sql file in the current working directory and will be deleted after execution. The login.sql script in SqlPlus is automatically executed whenever you start SqlPlus. It can be used to set up your SQL*Plus environment, including formatting options, environment variables, and other session settings.
Below is an example script that can be customized based on requirements.
Code Block |
---|
-- Set the SQL*Plus environment settings
SET ECHO OFF
SET FEEDBACK ON
SET HEADING ON
SET LINESIZE 200
SET PAGESIZE 9999
SET SERVEROUTPUT ON
SET TERMOUT ON
SET TIMING ON
SET VERIFY OFF
-- Set default schema
ALTER SESSION SET CURRENT_SCHEMA=YOUR_SCHEMA_NAME;
-- Define common substitution variables
DEFINE my_variable = 'default_value'
-- Custom SQL*Plus prompt
SET SQLPROMPT "SQL> "
-- Display a welcome message
PROMPT Welcome to SQL*Plus |