Versions Compared
Version | Old Version 12 | New Version Current |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
...
...
...
...
...
...
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
This page is for administrators who need to connect PhixFlow to external databases
...
.
Overview
The PhixFlow application
...
can communicate with an external database from which it needs to load data.
...
This is configured using a Datasource in an analysis model.
To communicate with
...
an external database, PhixFlow needs:
- The
...
- jar files
...
- for connecting to a database, stored in PhixFlow's Database Driver File Directory. This location is set
...
- directly in System Configuration → System Directories → Database Driver File Directory.
- A
...
- database driver configured in the repository. One database driver
...
- item can
...
- refer to multiple jar files.
Preinstalled Databases
There are three databases on which
...
PhixFlow can be installed:
...
- MySQL
...
- MS
...
- SQL Server
- Oracle.
...
For each of these, PhixFlow is preconfigured with:
- jar files stored in in
tomcat/webapps/phixflow/WEB-INF/lib
- a database driver in the repository, which uses jar files.
You can use these pre-configured database drivers in a datasource. However, you cannot update their properties or see their
...
jar files.
...
Additional Databases
You may need to configure additional database drivers to support:
- other types of database
- different versions a database.
How to Configure a Database Driver
...
- Find out which
...
- JDBC
...
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. |
...
- 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 to a database may require multiple JDBC driver files.
- Download the required JDBC driver files from:
- either the database supplier (recommended)
- or an open source repository, such as https://mvnrepository.com/
.
...
- Ensure you have a Database Driver File Directory setup. If it has been setup it can be seen in System Configuration → System Directories → Database Driver File Directory.
- If it has not been setup, create the directory in a location available to Tomcat.
- Open Administration → System Configuration → System Directories, and update the Database Driver File Directory with the path of the directory.
- In PhixFlow, for each type of database, create one database driver;
- In the full repository scroll down to the
Insert excerpt _driver
- In the full repository scroll down to the
...
_repo _driver
...
section._repo nopanel true - To add a new driver,
...
- click
...
Insert excerpt _
...
addIcon _
...
. PhixFlow opens a property tab where you can enter the details for the new driver.addIcon nopanel true - To open an existing database driver
...
- , in the repository double-click on its name.
- In the database driver properties → Database Driver File section, add all the JDBC driver files that the database requires; see Properties Tab → Settings, below.
- For each jar file, specify the path to the file stored in the Database Driver File Directory.
Tip |
---|
You cannot change the pre-configured |
...
database drivers supplied with your PhixFlow installation. These have the System Defined property ticked. |
...
PhixFlow also includes a number of unconfigured drivers, such as Google Big Query, which are included for backwards compactivity. See Deprecated Database Drivers below for full details. |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
The
...
database drivers configured in the repository populate the drop-down list in
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
→ Database Driver
Insert excerpt | ||
---|---|---|
|
...
|
Tip |
---|
If you intend to use an analysis model in multiple PhixFlow instances, and the model contains a datasource that uses a custom database drivers, remember to add the database driver to the same application or package as the analysis model; see Using Drivers Across Multiple Instances below. |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
Settings
Basic
Field | Description |
---|---|
Name | Enter a unique name for the database driver, which will appear in the PhixFlow repository. |
Database Driver |
...
Name | Enter |
...
the database driver |
...
name, which you will find in the driver documentation. For example, for MySQL, the driver name is: | |||||||||
System Defined | Read-only.
|
...
this database drivers is custom defined for your PhixFlow instance. You can change it's configuration.
|
...
|
...
| ||||
Description | Optionally enter a description for the driver. |
Advanced
Field | Description |
---|
...
Datasource Profile | Use this option to specify the datasource properties to use. Enter:
|
Database Driver File
This section has a toolbar with standard buttons.
The grid lists the jar files for this database driver
...
. Each database usually requires multiple jar files. To add a jar file to the list:
- Click
Insert excerpt _
...
new _
...
to open a the properties for a new Database Drivernew nopanel true
...
- File Location.
(Database Driver
...
- File Location properties are only available from this grid. They are not listed in the repository.)
In the Basic Settings section, set:
Field Description Name
Enter a unique name for the driver. Connector Jar File Location
...
The root Database Driver File Directory,
...
must be specified in System Configuration.
...
Specify a path, relative to the root Database Driver File Directory:
- either to a specific driver jar file
- or to a sub-directory that contains multiple driver jar files.
For example:
- if the file is
/opt/phixflow-drivers/BigQueryJDBC/driverfile.jar
- and the Database Driver File Directory is set to
/opt/phixflow-drivers/
then enter:
- for Linux: BigQueryJDBC/driverfile.jar
- Windows: BigQueryJDBC\driverfile.jar
If you specify a sub-directory, all jar files will be loaded but further sub-directories will be ignored.
Click
to save and close the properties and return to the database driverInsert excerpt _finish _finish nopanel true
...
properties.
To remove a jar file from the grid, use the toolbar button
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Using Drivers Across Multiple Instances
If you run multiple instances of PhixFlow, you must ensure that
...
:
- a custom
...
- database driver used by a datasource, is moved with the datasource to another PhixFlow instance
- AND the database driver has access to the database driver jar file from the other
...
- instance.
This
...
means all datasource objects
...
continue to work in other instances.
Excerpt | ||
---|---|---|
| ||
|
...
|
For adding database drivers to the same application or package as the model; see Package.
Note |
---|
The following system database drivers cannot be moved into a package because they are installed on all PhixFlow instances:
|
How PhixFlow Decides Which Driver to Use
PhixFlow is configured with a class path for finding drivers. This will use the first appropriate driver it finds in:
- The Connector Jar File Location configured for the
...
- database drivers file.
tomcat/webapps/phixflow/WEB-INF/lib
tomcat/lib
.
Note |
---|
...
We do not recommend using the |
Deprecated Database Drivers
For PhixFlow pre-version 10.1, the repository includes the following deprecated database drivers, 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 database driver in which you can configure all the database drives needed. If you want to connect a preconfigured database driver to the appropriate JDBC database driver files, download and save them to |
Live Search | ||||||||
---|---|---|---|---|---|---|---|---|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
Learn More