Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Executes a group of SQL files and copies "Other" files to specified destinations from a package created by the packageBuild (SqlPlus) operation. See the appendix for information about the project file attributes.

Please note that the statements in the SQL files must be delimited properly.

Target Properties

Property Name

Property Code

Required

Description

Oracle Database User

FDORA_USER

Yes

The username that will be used to connect to the target Oracle Database.

Oracle Database Password

FDORA_PASSWORD

Yes

The password for Oracle Database User.

SQLPlus Path

FDSQLPLUS_PATH

No

Provide the sqlplus path (Required if sqlplus is not on PATH environment).

( Ex: /u01/install/APPS/apps/tech_st/10.1.2/bin/sqlplus)

SQLPlus Source Script

FDSQLPLUS_ENVIRONMENT_SCRIPT

No

Source Script with full path.

(Ex: /u01/install/APPS/apps/apps_st/appl/oracle_config.env)

Oracle SID

FDSQLPLUS_ORACLE_SID

No

Provide the Oracle SID (optional if it is already set in the source script).

Project Properties

Property Name

Property Code

Required

Description

SQL Extension Order

FDSQLPLUS_SQL_EXTENSIONS

No

List SQL file extensions in desired order. Will be used for discover and sort. Files with these extensions will discover as type DB Object.

SQL Retry Count Default

FDSQLPLUS_RETRY_COUNT_DEFAULT

No

When discovering or evaluating files, default the Retry Count to this.

Stop On Deployment Error

FDSQLPLUS_STOP_ON_DEPLOYMENT_ERROR

No

Stop deploying package files if any error occurs. If unchecked all files will be deployed even if one or more files fails. This is for package operations only.

SQL Ignore Compile Warning Extensions

FDSQLPLUS_IGNORE_COM_ERR_EXT_DEF

No

When discovering or evaluating files, set the Ignore SQL Compilation Warning attribute to true for files with these extensions.

SQL Property Replacement Default

FDSQLPLUS_PROPERTY_REPLACEMENT_DEFAULT

No

When discovering or evaluating files, default Property Replacement to this.

SQL Root Target Folder

FDSQLPLUS_SQL_ROOT_TARGET_FOLDER

No

The path to store the delivered Sql files. Sql files will be run from here. Leave blank to run them from the FD_TEMP_DIR.

Other Root Target Folder

FDSQLPLUS_OTHER_ROOT_TARGET_FOLDER

No

The path to store the delivered Other files. Leave blank to store them in the FD_TEMP_DIR.

Inputs

Input Name

Input Code

Required

Description

User Profile (login.sql)

FDSQLPLUS_INP_LOGIN_SQL_FILE

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

FDSQLPLUS_INP_GENERATE_SPOOL_FILE

No

Check to generate report (Spool file) of SQL statement executions.

Show DBMS Output

FDSQLPLUS_INP_SHOW_DBMS_OUT

No

Check to print DBMS output in the log.

Artifacts

This operation consumes packages of files created by the packageBuild(SqlPlus) operation.

Endpoint Selection

This operation delegates the selection to the workflow developer to determine.

Endpoint Execution

This operation will randomly execute on one of the endpoints identified during selection.

Special Considerations

login.sql
The script that you provided in the input FDSQLPLUS_INP_LOGIN_SQL_FILE will be created as the login.sql file in the current working directory. The login.sql script file in SQLPlus is executed automatically whenever you start SQLPlus. It can be used to set up your SQL*Plus environment, including setting formatting options, environment variables, and other session settings.

below the is the example script . we can customize based on requirement

-- 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

See below for information about the project file attributes.

Supported Object Types

The SQL*Plus plugin partial deploy support allows for deploying File and Folder type objects. These links explain the three types and their attributes.

Object Types

  1. DB Objects

  2. Other Objects

  • No labels