How To Install libha-jdbc-java on Debian 9
Introduction
In this tutorial we learn how to install libha-jdbc-java
on Debian 9.
What is libha-jdbc-java
libha-jdbc-java is:
HA-JDBC is a JDBC proxy that provides light-weight, transparent, fault tolerant clustering capability to any underlying JDBC driver.
Features include:
- Supports any database accessible via JDBC.
- High-availability/Fault Tolerance - An HA-JDBC database cluster can lose a node without failing/corrupting open transactions.
- Live activation/deactivation allows for maintenance/upgrading of a database node without loss of service.
- Improves performance of concurrent read-access by distributing load across individual nodes.
- Supports full JDBC 3.0 and 4.0 feature set.
- Out-of-the-box database-independent strategies for synchronizing a failed cluster node.
- Exposes JMX management interface to allow administration of databases and clusters.
- Ability to add/subtract database nodes to/from a cluster at runtime.
- Can be configured to auto-activate failed database nodes during scheduled off-peak times.
There are three methods to install libha-jdbc-java
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libha-jdbc-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libha-jdbc-java
using apt-get
by running the following command:
sudo apt-get -y install libha-jdbc-java
Install libha-jdbc-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libha-jdbc-java
using apt
by running the following command:
sudo apt -y install libha-jdbc-java
Install libha-jdbc-java Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libha-jdbc-java
using aptitude
by running the following command:
sudo aptitude -y install libha-jdbc-java
How To Uninstall libha-jdbc-java on Debian 9
To uninstall only the libha-jdbc-java
package we can use the following command:
sudo apt-get remove libha-jdbc-java
Uninstall libha-jdbc-java And Its Dependencies
To uninstall libha-jdbc-java
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libha-jdbc-java
Remove libha-jdbc-java Configurations and Data
To remove libha-jdbc-java
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libha-jdbc-java
Remove libha-jdbc-java configuration, data, and all of its dependencies
We can use the following command to remove libha-jdbc-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libha-jdbc-java
Dependencies
libha-jdbc-java have the following dependencies:
References
Summary
In this tutorial we learn how to install libha-jdbc-java
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.