Table of Contents |
---|
Fixed-Name Directories in the SCM Repository
...
SCM Directory Name | Description | ||
---|---|---|---|
<sql_code_dir> | User-defined directory in SCM to use as the root for SQL scripts. Subdirectories are provided for different types of SQL. Example: | ||
archive | The archive directory is created and managed by the Deployment Packager. Files added in the ddl, sql, sqlplus, sql_direct, and data_dml directories will be copied here after successful Packaging to prevent post Packaging modification. The user does not need to create this directory. | ||
data_dml | Contains scripts that load, manipulate or delete data. | ||
ddl | Contains scripts that make ddl changes such as creating, modifying, and dropping tables, indexes, sequences, and other database objects that are not one of the other types. | ||
ddl_direct | The scripts are run directly using the database's native client. The changesets are database-specific. They cannot be deployed to other database platforms.
The ddl_direct folder is available with 7.15 and higher. | ||
function | Contains scripts that create or replace one function. | ||
package | Contains scripts that create or replace one package definition. | ||
packagebody | Contains scripts that create new or replace existing package bodies. | ||
procedure | Contains scripts that create or replace one procedure. | ||
sql | Limited Use. Creates a It's strongly suggested to use | ||
sqlplus | Deprecated. Use | ||
sql_direct | The scripts are run directly using the database's native client. The changesets are database-specific. They cannot be deployed to other database platforms.
| ||
ssis | Contains .dtsx files (SSIS Package) and other support files used in ETL processes. | ||
ssis_project | Contains .ispac files (SSIS Project) | ||
trigger | Contains SQL scripts that create or replace one trigger. | ||
view | Contains SQL scripts that create or replace one view. |
...
Process Type | Processing | Directories |
---|---|---|
Transient |
| ddl ddl_direct sql_direct data_dml |
Non-transient |
| all other directories |
...
Process Type | Processing | Directories |
---|---|---|
Convert SQL |
| ddl folder (CONVERT packaging method) |
Native SQL |
| ddl_direct, data_dml, and sql_direct folders (DDL_DIRECT, DATA_DML, and DIRECT packaging methods) |
Stored Logic |
| function, package, packagebody, procedure, trigger, and view folders (STOREDLOGIC packaging method) |
SQLFILE |
| sql folder (SQLFILE packaging method) |
...
- Tier 1: Commit Sequence
- The group of files in a single commit is processed as a unit. Within a commit, files are processed within the file type sequence and then within the filename sequence.
- Groups of commits are processed in order of checkin time. The earliest commit is processed first, then the next, and so on.
- If you commit a file as part of a group and then later commit it again with changes (with a group), it is processed with the later initial commit group.
- Tier 2: File Type Sequence
- ddl
- ddl_direct (available in 7.15 and higher)
- view
- ssis/ssis_project
- function
- procedure
- package
- packagebody
- trigger
- sql
- sqlplus (deprecated)
- sql_direct
- data_dml
- Tier 3: Filename Sequence
If multiple files are included in the same commit, and in the same directory, then files will be executed in alphabetical filename order
...