Customer Portal

DDL for CloverETL server database setup

Comments 5

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    The following are the steps your DB administrator will take to setup the CloverETL Server:


    • Collect all the scripts, most of them are in the <WAR-ARCHIVE>/WEB-INF/dbpatches/Oracle9Dialect, the scripts that are not oracle SQL dialect specific are in <WAR-ARCHIVE>/WEB-INF/dbpatches

    • Determine, which scripts have not run yet, table "sys_schema_patches" contains list of run scripts, if the DB schema does not exist yet, the table has to be created - the table has two columns: "path" of type varchar2(255) and "applied" of type varchar2(64), the first column contains filename of the script and the second time of the script execution in the format "YYYY-MM-DD hh:mm:ss:nnn"

    • Execute the scripts one-by-one according to their number (first two digits of the filename)

    • Fill table "sys_schema_patches" with information about executed scripts - othwerwise the Clover server will attempt to execute scripts not present in the table upon server start
  • Avatar
    jzhu
    0
    Comment actions Permalink
    Thanks, Pedro.

    The folder name is Oracle9Dialect. I assume it should work on Oracle database version 11, right?

    Do we need to run all 76 sql scripts to set up the database for CloverETL server initially?
    They include 62 in dbpatches/Oracle9Dialect, and 14 in dbpatches which do not exist in dbpatches/Oracle9Dialect.
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    Yes, all the scripts in the Oracle9Dialect will work on Oracle database version 11. To answer your second question you will need to run all the scripts in the Oracle9Dialect as well as in the dbpatches.
  • Avatar
    jzhu
    0
    Comment actions Permalink
    Most scripts in dbpatches are of the same name as those in dbpatches\Oracle9Dialect.

    For the same name script, shall I run both? In which order?

    I was thinking to copy scripts in dbpatches\Oracle9Dialect on top of dbpatches, overwriting same name scripts, and run all non-empty scripts (9 of them are empty).
  • Avatar
    dpavlis
    0
    Comment actions Permalink
    Hi,

    One creative idea. Why don't you let CloverETL Server create all the necessary Oracle DB objects on some test instance of DB (or just schema). Then your DB admin can a) analyze that it does not contain anything dangerous b) just clone/copy all the tables and DB objects into the production DB. Then just re-connect the server (change the properties).
    This way you don't need to worry about the sequence of scripts and patches. BTW: the reason it is rather complex is that Clover uses Hybernate as an ORM manager.

Please sign in to leave a comment.