Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Executes an Oracle PL/SQL script. This operation takes the SQL script as an input and processes each statement in the database using JDBC.

Warning

This operation was deprecated in release 4.0.3.10, and will be removed in a future release. All functionality is merged into the runScript operation. Please use that operation instead in your workflows. Run Destructive is new property and it defaults to false, so if you are running delete, truncate, drop statements then make sure to check this input on plugin operation on your workflow.

Please note that each statement in the SQL files must be delimited by a forward slash (/) on its own line. Also this operation supports intermixed regular SQL statements (non PL/SQL statements), however, these statements must not end with a semi-colon. See the Appendix for sample PL/SQL script file:

  

Environment/Instance Properties

...

Property Code

...

Required

...

Description

...

FDJDBC_URL

...

Yes

...

The JDBC URL of the database.

...

FDJDBC_USER

...

No

...

The username that will be used to connect with.

...

FDJDBC_PASSWORD

...

No

...

The password of the username.

...

FDJDBC_DRIVER_PATH

...

Yes

...

Classpath for locating the JDBC Driver (e.g. for Weblogic - {ORACLE_HOME}/oracle_common/modules/oracle.jdbc_11.2.0/ojdbc6.jar).

  

Project Properties

...

Property Name

...

Required

...

Description

  

Inputs

...

Input Code

...

Required

...

Description

...

FDJDBC_INP_USER

...

No

...

The username that will be used to connect with. This input takes precedence over the environment instance scoped FDJDBC_USER property. This input is required if the FDJDBC_USER property is not specified.

...

FDJDBC_INP_PASSWORD

...

No

...

The password for FDJDBC_INP_USER. This input takes precedence over the environment instance scoped FDJDBC_PASSWORD property. This input is required if the FDJDBC_PASSWORD property is not specified.

...

FDJDBC_INP_FILE_NAME

...

Yes

...

The path to the script to execute. If a relative path is given, the path will be assumed to be in the FD_ARTIFACTS_DIR.

...

FDJDBC_INP_RUN_DESTRUCTIVE

...

This option allows destructive statements to be run. See Special Considerations below.

...

  

Outputs

...

Output Name

...

Required

...

Description

  

Artifacts

This operation consumes one or more SQL files, and an optional sequence file, from the artifacts repository.

  

Endpoint Selection

...

workflow

...

  

Endpoint Execution

...

.

   

Special Considerations

Include Page
Appendix-JDBCAppendix-JDBCrunScript
runScript