Versions Compared

Key

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

...

Note that using CREATE OR REPLACE rather than CREATE alone (see Notes) allows stored-logic SQL scripts to be modified and repackaged. 

Object TypePackaging
Folder
Folders (fixed folders)Package Methods (flexible folders)Archived?Notes
CREATE/ALTER/DROP DATABASE LINKsql_directdirectYes
CREATE/ALTER/DROP FUNCTIONfunctionstoredlogicNo

Use CREATE OR REPLACE rather than CREATE alone. 

Each function must be in its own file and end with a '/'.

CREATE/ALTER/DROP INDEXddl, ddl_direct, sql_directconvert, ddl_direct, directYes
CREATE/ALTER/DROP QUEUEsql_directdirectYes
CREATE/ALTER/DROP SEQUENCEddl, ddl_direct, sql_directconvert, ddl_direct, directYes
CREATE/ALTER/DROP PUBLIC SYNONYMsql_directdirectYesAlternatively, use Datical Auto-Synonyms.
CREATE/ALTER/DROP PRIVATE SYNONYMddl, ddl_direct, sql_directconvert, ddl_direct, directYes

For ALTER and CREATE OR REPLACE synonym use ddl_direct or sql_direct/direct. (Do not use ddl/convert with ALTER and CREATE OR REPLACE synonym.)

Alternatively, use Datical Auto-Synonyms.

CREATE/ALTER/DROP TABLE

ddl, ddl_direct, sql_directconvert, ddl_direct, directYes
CREATE/ALTER/DROP GLOBAL TEMPORARY TABLEddl, ddl_direct, sql_directconvert, ddl_direct, directYes
CREATE/ALTER/DROP MATERIALIZED VIEWsql_directdirectYes
CREATE/ALTER/DROP PACKAGEpackagestoredlogicNo

Use CREATE OR REPLACE rather than CREATE alone. 

Each package must be in its own file and end with a '/'.

CREATE/ALTER/DROP PACKAGE BODYpackagebodystoredlogicNo

Use CREATE OR REPLACE rather than CREATE alone. 

Each package body must be in its own file and end with a '/'.

CREATE/ALTER/DROP PROCEDUREprocedurestoredlogicNo

Use CREATE OR REPLACE rather than CREATE alone. 

Each procedure must be in its own file and end with a '/'.

CREATE/ALTER/DROP TRIGGER

trigger

storedlogicNo

Use CREATE OR REPLACE rather than CREATE alone. 

Each trigger must be in its own file and end with a '/'.

CREATE/ALTER/DROP TYPEsql_directdirectYesEach type must be in its own file and end with a '/'.
CREATE/ALTER/DROP VIEW

view

storedlogicNo

Use CREATE OR REPLACE rather than CREATE alone. 

Each view must be in its own file and end with a '/'.

CREATE/ALTER/DROP VIEW INDEXddl, ddl_direct, sql_directconvert, ddl_direct, directYes
CREATE/ALTER/DROP CURSORsql_directdirectYes
CREATE/ALTER/DROP DIRECTORYsql_directdirectYes
RENAME <DB_OBJECT>sql_directdirectYes


OperationPackaging Folder (fixed folders)Package Methods (flexible folders)Archived?Notes
INSERT, UPDATE, DELETE, SELECTdata_dmldata_dmlYes
GRANT, REVOKEsql_directdirectYesAlternatively, use Datical Auto-Permissions.

Error Handling

Do not put error-handling statements in the SQL scripts. 

...

Datical DB has its own error-handling that wraps SQL scripts. Specifying error-handling within the statements is not necessary and can prevent the script from being simulated in Forecast. 

Deployment Packager fails with an error if it encounters statements before an object definition for scripts in a stored logic folders or where packageMethod is defined as packageMethod=STOREDLOGIC.

...

See also these pages for overview of packaging workflows, which packaging methods or folders to use for which types of changes, and SQL Parser for Oracle:

Overview of Packaging

Writing SQL Scripts for Datical DBLiquibase Enterprise

Fixed Folder Names

Flexible Folder Names

...