Implementation Guide: Installing Liquibase Enterprise
Using Installer Wizard
All Platforms
- Download the installer from the Datical software download portal (https://software.datical.com)
- Installers are located in FOLDERS > COMMON > Datical_DB_Software > Datical_DB_$version
- Choose the correct installer for your platform.
- Double-click on the installer
- Verify the JRE Version on the Installation Host is 1.8
- Run the following "java -version" command in a command prompt or terminal window to check that you are running a supported version of the JRE (version 1.8.x)
# java –version java version "1.8.0_xx" Java(TM) SE Runtime Environment (build 1.8.0_xxx) Java HotSpot(TM) Client VM (build 24.75-b04, mixed mode, sharing)
- Install the product, taking all defaults as shown below
- Click Next
- Accept the terms of the license and click Next
- Click Next
- If you’re installing in a new directory, then you’ll see this dialog. Click OK
- Click Next
- If you have your license file, you can Browse to it here (if not, you can install it later). Click Next.
- Click Next
- Select Create additional shortcuts on the desktop, if desired. Click Next.
- The installation is finished. Click Done.
- Click Next
Default Installation Directories
Windows | Linux | Mac OS X | |
---|---|---|---|
Install Directory | C:\Users\<Username>\DaticalDB | <HomeDirectory>/DaticalDB | /Applications/DaticalDB |
Datical Workspace | C:\Users\<Username>\datical | <HomeDirectory>/datical | <HomeDirectory>/datical |
Installing JDBC Drivers in Datical DB (via GUI)
Datical DB needs to have installed the JDBC database driver of the specific database you are planning to manage with Datical DB.
- Start Datical DB from the Windows Start Menu
- Click the Cancel button in the New Deployment Plan dialog
- From the menu, select Help > Install New Software…
- In the Work with: section, select Add... button and provide the following information:
- Name: Composite Repo
- Click on the Archive... button and point to you composite repo zip file
- Click OK
- Select Datical DB Drivers checkbox as well as any source code control provide you are using (e.g., Git, TFS, or Subversion). Click Next. [It is recommended that you do NOT enable the Datical DB GUI and Datical DB REPL checkboxes.]
- Click Next
- Click the toggle button next to "I accept the terms of the license agreements". Then, Click Finish
- If you get a Security Warning, check the Details, then click OK.
- Once the drivers have been installed, you will be prompted to restart Datical DB. Click Restart Now
- In the Work with: section, select Add... button and provide the following information:
Installing JDBC Drivers in Datical DB (via Command Line)
For command line operations, typically for automation tools, Datical DB needs to have JDBC database drivers installed in "REPL" directory.
Ensure that "hammer" is in your PATH environment variable. Hammer is installed in <Datical_Install_Directory>\repl
. For example, C:\Apps\DaticalDB\repl
To add this to your PATH environment variable, from command line, you would use: SET PATH=%PATH%;C:\Apps\DaticalDB\repl
Make sure you have your Datical DB Composite Repo downloaded on the machine where you are installing your drivers. Assume that your composite repo filename is "DaticalDBCompositeRepo-4.24.90421.zip".
Use this command to install drivers:
hammer installDrivers jar:file:/C:/Users/Administrator/Downloads/DaticalDBCompositeRepo-4.24.90421.zip!/
Here is what the sample output (stdout) looks like:
Check installed drivers as:
hammer checkdrivers
Installing Additional Plugins on Datical DB
Datical DB is built on the Eclipse Indigo framework. Many 3rd party plugins are available and may be used with Datical. Generally, plugins are used to check the Datical project in and out of a source control management system.
To install a plugin that is distributed by Datical:
- From the menu, select Help > Install New Software…
- In the Work with: dropdown, select "Composite Repo"
- Select the plugins you wish to install & Click Next
- For Git, it depends on the version you are installing:
- For Datical versions 5.12 and lower, select "Eclipse Git Team Provider"
- For Datical versions 6.7 and higher, you do not need to select any plugins because the git plugin is included by default in the installation
- For Subversion, select "Subclipse"
- For TFS, select "Team Explorer Everywhere"
- For Git, it depends on the version you are installing:
- Click Next on the subsequent step
- On the final step, click the toggle button next to "I accept the terms of the license agreements". Then, Click Finish
Command Line Installation (Linux)
Datical DB (CLI only) can also be installed from the command line. You will need to select the correct 32-bit or 64-bit Linux installer for your system.
Setup Directory Structure
The following directory structure is recommended for Datical DB:
datical/ :: Top-Level Datical Directory datical/DaticalDB_X.YY.ZZZZ :: Installed Datical DB Product (where X.YY.ZZZZ is the version number) datical/jdbc_drivers :: JDBC Drivers used by Datical DB datical/workspace :: Datical DB Workspace (where all of the Datical Projects reside) datical/installers :: Directory containing the Datical DB installers you’ve downloaded and want to install on this system (.jar files) datical/license :: Directory containing the Datical DB license file
Verify JDK Version
Run the following command in a terminal window to ensure you’re running JDK version 1.7.x
# java –version java version "1.7.0_75" Java(TM) SE Runtime Environment (build 1.7.0_75-b13) Java HotSpot(TM) Client VM (build 24.75-b04, mixed mode, sharing)
Install Datical DB
If needed, create the following directories (as shown above)
cd ~ mkdir datical mkdir datical/jdbc_drivers mkdir datical/workspace mkdir datical/installers mkdir datical/license
- Copy the Linux installer to the datical/installers directory
- Make sure you have a 1.7.x Java JDK installed on this machine
Create the install directory and change to the DaticalDB directory
mkdir datical/DaticalDB_x.y.z cd datical/DaticalDB_x.y.z
Run the installer
java -jar ../installers/<Datical Installer>.jar -console
- Follow the instructions to complete the installation
Post Install
Create a sym link to the installed path and change ownership of the symlink to the user that runs datical commands
ln -s datical/DaticalDB_x.y.z DaticalDB sudo chown -h <daticaluser>:<daticalgroup> DaticalDB
where <daticaluser> is the user you will be using to run datical commands
where <daticalgroup> is the group that is allowed to run datical commandsAdd Datical DB CLI to the path
vi ~/.bash_profile export DATICAL_DB_HOME=<datical_db_symlink_path_to_dir> export PATH=${PATH}:${ DATICAL_DB_HOME }/repl
Source the updated .bash_profile
. ~/.bash_profile
- Copy license file to ~/datical/license
Install Datical license
cd ~/datical/license hammer installLicense <license_filename>
- Install JDBC Drivers
- Download the JDBC drivers from the Thru site (or from your local download site)
- Unzip and copy them to the datical/jdbc_drivers directory
- Run
- hammer installDrivers jar:file:<path_to_datical/jdbc_drivers>
Upgrading Datical DB command line
- Follow the instructions for Install Datical DB Command line above starting with step 2 Copy the Linux installer to the datical/installers directory
- Install the drivers into the new directory
For instance if the new version is 5.9 and the files have been installed into /opt/datical/DaticalDB_5.9.5799
cd datical/DaticalDB_5.9.5799/repl ./hammer installDrivers jar:file:/opt/datical/jdbc_drivers/DaticalDBCompositeRepo_5.9.5799.zip\!/
- Make sure there are no job running using the old repl directory.
Move the sym link to the new location
For instance, if the old version is at /opt/datical/DaticalDB_5.6.5600 (***and you used a sym link previously to /opt/datical/DaticalDB)
rm /opt/datical/DaticalDB ln -s /opt/datical/DaticalDB_5.9.5799 /opt/datical/DaticalDB sudo chown -h <daticaluser>:<daticalgroup> /opt/datical/DaticalDB
Handling TLS 1.1, 1.2 or 2.0 (SQL Server only)
SQL Server users may be using TLS 1.0, 1.1, 1.2 or 2.0 for securing their databases.
Out of the box, Datical supports TLS 1.0.
When using TLS 1.1, 1.2 or 2.0, follow these post-install steps. Without these steps, Datical will not be able to establish connection to SQL Server databases. Here is what the error message would look like:
Prerequisites
Make sure database drivers are installed along with Datical DB:
- Complete drivers installation from Datical DB GUI: Help → Install New Software → then point to your composite repo.
- Separately, complete drivers installation from command line (or from an automation tool):
- Windows (notice forward slashes in Windows path):
hammer installDrivers jar:file:/E:/Datical/installer/DaticalDBCompositeRepo-4.24.90421.zip!/
- Linux (notice the extra backslash before exclamation mark):
hammer installDrivers jar:file:/opt/Datical/installer/DaticalDBCompositeRepo-4.24.90421.zip\!/
- Windows (notice forward slashes in Windows path):
Step-by-step
- Download the newer SQL Server driver file here → com.datical.db.drivers.mssql_1.0.7.jar
- Replace the file of the same in your Datical DB install directory. There are two instances that need to be replaced:
- Replace in <DaticalDB_install_dir>\plugins
- Replace in <DaticalDB_install_dir>\repl\plugins
This should allow a connection to the MSSQL Server using TLS1.2 encryption for the handshake. Perform a test connection or status on the GUI.
Headless / Automated Installation
Headless installation is different from console mode by the fact it does not require any input from the user so it can be done by soe automation agent like Jenkins or ElectricFlow. However it requires an XML file passed as a parameter to the installer instead of the "-console" option) .
The autoInstall-Linux.xml file used for the Ubuntu example and a version tailored for Windows are attached.
Overview: 1. Verify / Install prerequisites > Java Runtime 8.x (only required for initial installation) > Oracle Client - Database Utilities (impdp & expdp) (required to run deploymentPackager unless you are using DATAPUMP API, not required for installation) > zip, unzip 2. Create datical group & datical user (optional) > Alternatively, install software using existing jenkins user 3. Download Datical Files (into tmp directory) & Setup Directories > Installer: DaticalDB-linux.gtk.x86_64-x.y.z.jar > Composite Repo: DaticalDBCompositeRepo-x.y.z.zip > License File: filename-admin.lic > Directory Structure: datical_install_files.zip 4. Install Datical > Run installer > Create symbolic link to versioned install directory (optional) > Copy license to install directory & repl directory (optional) > Modify logging-config.ini (optional) > Modify repl/logging-config.ini (optional) > Modify datical.ini (optional) > Modify hammer-bin.ini (optional) > Unzip reporttemplates.zip to $workspace/.reporttemplates > Install Drivers 5. Verify install 6. Zip datical for distribution 7. Unzip /opt on other servers for replication. 8. Install DaticalDB Jenkins plugin (see Datical DB - Integrating Other Tools Systems.pdf, pg 11-13) Create datical user & group? Create sym link? export $PATH (optional) in .bash_profile? export DATICAL_DB_HOME in .bash_profile? run ./~.bash_profile Questions: * How does the datical/jdbc_drivers directory get recognized? (See Full Access doc pg. 15) * Which user / group on linux should install DaticalDB?
RedHat / CentOS
CENTOS 7, Minimum Install: Commands (RedHat Enterprise / CentOS7): 1. [root@localhost ~]# yum install zip unzip [root@localhost ~]# yum install java-1.8.0-openjdk.x86_64 2. Create datical group & datical user [root@localhost ~]# groupadd datical [root@localhost ~]# useradd -d /opt/datical -g datical datical [root@localhost ~]# passwd datical 3. Download Datical Files [root@localhost ~]# su datical [datical@localhost root]$ cd ~ [datical@localhost ~]$ mkdir tmp [datical@localhost ~]$ cd tmp [datical@localhost tmp]$ ftp SJC-FTP.thruinc.net Name: software.datical.com\user@email.com Password: password ftp> cd COMMON/Datical_DB_Software/Datical_DB_4.18.3999 ftp> binary ftp> get DaticalDB-linux.gtk.x86_64-4.18.3999.jar ftp> get DaticalDBCompositeRepo-4.18.3999.zip ftp> quit [datical@localhost tmp]$ unzip datical_install_files.zip -d ~/ [datical@localhost tmp]$ mv DaticalDB-linux.gtk.x86_64-4.18.3999.jar ~/installers/daticaldb_4.18.3999/ [datical@localhost tmp]$ mv filename-admin.lic ~/license/ [datical@localhost tmp]$ mv DaticalDBCompositeRepo-4.18.3999.zip ~/installers/daticaldb_4.18.3999/ 4. Install Datical [datical@localhost tmp]$ cd ~/app/daticaldb_4.18.3999/ [datical@localhost daticaldb_4.18.3999]$ java -jar ~/installers/daticaldb_4.18.3999/DaticalDB-linux.gtk.x86_64-4.18.3999.jar -console > Select target path [/opt/datical/app/daticaldb_4.18.3999] > Do not install license in this step [datical@localhost daticaldb_4.18.3999]$ cp ~/license/filename-admin.lic . [datical@localhost daticaldb_4.18.3999]$ cp ~/license/filename-admin.lic repl/ [datical@localhost daticaldb_4.18.3999]$ sed -i -- 's/@user.home\/datical/\/opt\/datical\/workspace/g' datical.ini [datical@localhost daticaldb_4.18.3999]$ sed -i -- 's/@user.home\/datical/\/opt\/datical\/workspace/g' repl/hammer-bin.ini [datical@localhost daticaldb_4.18.3999]$ cd ~/app [datical@localhost app]$ ln -s daticaldb_4.18.3999/ daticaldb [datical@localhost app]$ cd ~/workspace [datical@localhost workspace]$ unzip ~/tmp/.reporttemplates.zip -d . [datical@localhost workspace]$ cd ~/app/daticaldb_4.18.3999/repl [datical@localhost repl]$ ./hammer installDrivers jar:file:/opt/datical/installers/daticaldb_4.18.3999/DaticalDBCompositeRepo-4.18.3999.zip\!/ 5. Verify Install [datical@localhost daticaldb]$ cd ~/app/daticaldb/repl [datical@localhost repl]$ ./hammer checkdrivers [datical@localhost repl]$ ./hammer show version [datical@localhost repl]$ ./hammer show license 6. Zip for Distribution [datical@localhost datical]$ rm -rf installers [datical@localhost datical]$ rm -rf tmp [datical@localhost datical]$ rm -rf license [datical@localhost datical]$ mkdir /tmp/datical [datical@localhost datical]$ cd /opt [datical@localhost opt]$ zip -r /tmp/datical/datical.zip datical
Ubuntu
Tested on Ubuntu 17.04 with attached autoInstall.xml (Ubuntu was supported with 4.x and 5.x versions of Datical, but not with 6.x or 7.x versions of Datical.)
sudo apt-get install -y default-jre sudo apt install -y unzip sudo apt install -y xterm sudo apt-get install build-essential 4. Install Datical sudo mkdir /opt/DaticalDB_4.18.3999 sudo chmod 777 /opt/DaticalDB_4.18.3999 sudo ln -sf /opt/DaticalDB_4.18.3999/ /opt/DaticalDB java -jar DaticalDB-linux.gtk.x86_64-4.18.3999.jar autoInstall.xml cp *-admin.lic /opt/DaticalDB cp *-admin.lic /opt/DaticalDB/repl export PATH=$PATH:/opt/DaticalDB/repl hammer installDrivers http://update.datical.com/latest/thirdparty 5. Verify Install hammer checkdrivers hammer show version hammer show license
See Also
There are additional pages in this documentation section:
Copyright © Datical 2012-2020 - Proprietary and Confidential