Versions Compared

Key

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

This page is for administrators who need to connect PhixFlow to external databases using Driver Classes.

Overview

The PhixFlow application uses database driver jar files to communicate communicates with:

  • the database on which it is installed.
  • an external database from which it needs to load data.
    This is configured using a Datasource in an analysis model.

To configure PhixFlow to communicate with a database, you mustPhixFlow needs:

...

  • The appropriate database driver jar files

...

...

  • A Driver Class

...

  •  for the

...

  • database. One driver class can have multiple Driver Class Files.

PhixFlow is installed with the database driver jar files (stored where) and preconfigured driver classes for the three databases on which it can be installed:

  • MariaDB
  • Microsoft (MS) SQL Server
  • Oracle.

PhixFlow automatically uses the appropriate driver class to communicate with its own database. You can use these driver classes in a datasource. However, you cannot update their properties or see their driver class files.

Tip

You can use the MariaDB driver class to connect to a MySQL database.

You may need to configure additional database drivers to support:

  • other types of database
  • different versions a database.

How to Configure a Driver

...

Class

  1. Find out which (usually JDBC)  database drivers you require. This information is available in the documentation for your database. Also check the System Requirements and Compatibility page for supported versions.  Communication Communication to a database may require multiple JDBC driver files. 
  2. Download the required JDBC driver files from:
  3. Save them to the directory that is set as the System Configuration → Driver Class File Directory specified in System Configuration. You need permission to add system files to do this. 
  4. For each database, create one Driver Class, see Adding or Changing a Driver Class, below.
  5. In the driver class properties , Driver Class File section, add all the JDBC driver files that the database requires; see Driver Classes and Driver Class File Properties, below.
  6. For each JDBC driver file specify its name. If it class file that is saved to a sub-directory of the Driver Class File Directory, specify it's relative path.

If you want to connect to any other database,

go get the database drivers  

save them into the PhixFlow directory System Configuration / Driver Class File Directory

set up your own driver class/ driver class file(s) to point to the driver classes

There are a set of driver classes in the repository.

They are deprecated. Don’t use them.

They are not linked to any database driver jar files.

To configure communication with a database, you need:

  1. the appropriate database driver jar files saved to a location outside the tomcat directory.
  2. A Driver Class and Driver Class File set up in PhixFlow. Together these specify the location of the driver jar files
  3. we recommend that they stop using these driver entries and instead that they set up user-defined drivers
  4. in the short term they may install the driver files into $tomcat/lib, but they should be aware that we will remove the ability to do this in a future release

PhixFlow requires access to the database driver jar files in order to communicate with a database. Use the driver class properties to configure with the details of the database, its driver and the location of the jar files.

...

  • MariaDB
  • Microsoft (MS) SQL Server
  • Oracle

PhixFlow uses the appropriate driver class to communicate with its own database.

. You can use these driver classes in a datasource. However, you cannot update or change the pre-configured driver classes, which are:

mariadb is functionally equivalent to mysql, and that in general you can use the  mariadb driver to connect to a mysql database.

Deprecated Driver Classes

...

Deprecated Driver Classes

The repository includes the following, deprecated driver classes, for backwards compatibility. 

  • DB2
  • Debug JDBC
  • Google Big Query
  • Hadoop Hive
  • MySQL
  • Netezza
  • Sun ODBC Bridge
  • Teradata


Note

These are drivers are read-only and do not connect to any database drivers. If you want to connect to one of these databases, we recommend you create a new driver class in which you can configure all the database drives needed.

Adding or Changing a Driver Class 
Anchor
_add
_add

...

To add a new driver, right-click Driver Classes and select 

Insert excerpt
_add
_add
nopaneltrue
. PhixFlow opens a property tab where you can enter the details for the new driver.

...

Tip

You cannot change the pre-configured driver classes supplied with your PhixFlow installation. These have the System Defined property ticked.

Driver Classes and Driver Class File

...

Properties 
Anchor
properties
properties

The driver classes configured in the repository populate the drop-down list in

Insert excerpt
_datasource
_datasource
nopaneltrue
 properties Basic Settings → Driver Class

...

FieldDescription

Name

Enter a unique name for the database driver, which will appear in the PhixFlow repository.
Driver Class Name

Enter the driver class name, which you will find in the driver documentation. For example, for MySQL, the driver name is: com.mysql.jdbc.Driver

System Defined

Read-only.

Insert excerpt
_check_box_untick
_check_box_untick
nopaneltrue
 indicates this driver class is custom defined for your PhixFlow instance. You can change it's configuration.

Insert excerpt
_check_box_ticked
_check_box_ticked
nopaneltrue
 indicates this driver is preconfigured when PhixFlow is installed. It is required for the system and cannot be updated.

DescriptionOptionally enter a description for the driver.

Driver Class File

This section has a toolbar with standard buttons. 

The grid contains a list of jar files and their file path.  To lists the jar files for this driver class. Each database usually requires multiple jar files. To add a jar file to the list:

  1. Click
    Insert excerpt
    _add
    _add
    nopaneltrue
     to open a the properties for a new Driver Class File Location.
    (Driver Class File Location properties are only available from this grid. They are not listed in the repository.)
  2. In the Basic Settings section, set:

    FieldDescription

    Name

    Enter a unique name for the driver.  
    Connector Jar File Location

    PhixFlow looks for jar files in the root Driver Class File Directory, that is specified in System Configuration. If this jar file is in the root directory, leave this field empty. If the jar file is in a subdirectory, specify the relative path.


  3. Click 

    Insert excerpt
    _finish
    _finish
    nopaneltrue
     to save and close the properties for and return to the driver class file.

...

  1. properies.

To remove a jar file from the grid, use the toolbar button 

Insert excerpt
_delete
_delete
nopaneltrue
.

...

  1. The Connector Jar File Location configured in for the driver classes file. 
  2. tomcat/webapps/phixflow/WEB-INF/lib
  3. tomcat/lib.

...