Mapepire JDBC driver for communicating with Db2 on IBM i.
Warning
Full Documentation: https://mapepire-ibmi.github.io
- Java 8 or later
Warning
In order for applications to use Db2 for i through this JDBC driver, the mapepire-server
daemon must be installed and started-up on each IBM i. Follow the instructions here to learn about the installation and startup process of the server component.
The following is the database connection URL syntax:
jdbc:mapepire://[host][:port][;propertyName1][=propertyValue1][;propertyName2][=propertyValue2]...
host
(required): The hostname or IP address of the IBM i.port
(optional): The port number where themapepire-server
is running. If not specified, the default port is8076
.propertyName=propertyValue
(optional): Represents an ampersand-separated list of properties.
The following connection properties are supported:
USER
(required): The IBM i user ID.PASSWORD
(required): The IBM i user password.- Any JDBC property (optional)
- Using
Properties
object:
Properties p = new Properties();
p.put("USER", "myuser");
p.put("PASSWORD", "mypassword");
p.put("naming", "system");
p.put("errors", "full");
Connection connection = DriverManager.getConnection("jdbc:mapepire://ossbuild.rzke.de:8076", p);
- Using connection string:
Connection connection = DriverManager.getConnection("jdbc:mapepire://ossbuild.rzke.de:8076;USER=myuser;PASSWORD=mypassword;naming=system;errors=full");
Warning