Versions Compared

Key

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

collection of reusable code, programs, and database objects that provides common functionality across all E-Business products.

Object Type Identification

...

NameDescriptionDefault ValueSupported Values
SourceObject Source Location Type

SCM

SCM
Target LocationPath to where the file should be deployed to.$<PROD_TOP>/patch/115/sql/
TypeDB Object TypeGeneric SQL
DB User PropertyFlexDeploy property to use as the user to connect to the database with.FDEBS_DB_USER
DB Password PropertyFlexDeploy property to use as the password for the DB User Property.FDEBS_DB_PASSWORD
Ignore Failure

Check if failure in file should be ignored.

@Since 4.6.0.3

If file contains WHENEVER SQLERROR CONTINUE, this property will default to true.
Fix SQL Syntax

If there is need to add / at the end of file, FlexDeploy will add it at deploy time. For example, if there is program block as last statement, we need / and new line after it.

@Since 4.6.0.3

True

Related Project Properties

...

Code Block
languagebash
themeRDark
cp "$SOURCE_FILE" "$XXHR_TOP/patch/115/sql/";
cd "$XXHR_TOP/patch/115/sql/"
sqlplus $FDEBS_DB_USER/$FDEBS_DB_PASSWORD <<EOF
set define off
  @$XXHR_TOP/patch/115/sql/XXHR@XXHR_BIPUB_REP_PKG.seq
.
SHOW ERRORS
exit sql.sqlcode
EOF

...

Tip
  • Make sure to end file with forward slash /, if last statement is FUNCTION, JAVA SOURCE, PACKAGE, PACKAGE BODY, PROCEDURE, TRIGGER, TYPE, TYPE BODY.
    • Since 4.6.0.4, FlexDeploy will automatically add / at the end of file if last statement is a program block.
  • Simple statements can be delimited by ; at end of statement but FUNCTION, JAVA SOURCE, PACKAGE, PACKAGE BODY, PROCEDURE, TRIGGER, TYPE, TYPE BODY needs / after it no matter where it is added in SQL file.
    • Since 4.6.0.5, FlexDeploy will automatically add / at the end of file if last statement is View, Insert, Update, Delete and does not end with ;.
  • Single or multiple line comments are also supported in input files.
  • See SQL File Considerations for more details.

...