How to connect db2

Hi i am tried so many times to connect to db2 .But the process is going on not showing any error or any issue so please help me out how can i mange to connecting **


Hello, please provide necessary info. Your information is kind of vague.

A post was split to a new topic: Trying to connect to a db2 system in Katalon Studio - Database - Project Setting


Looks like you might have to import the DB2 drivers via Project–>External Libraries. Once on “External Libraries” click on “Add” button to add the drivers.

You can get the DB2 drivers corresponding to the version of DB2 you are using from

Save the driver you get from above link and add it to your Katalon Studio via External Libraries option.

Let us know how that goes

I have placed external library but still its not working

Katalon Team,

Have we got any resolution for the DB2 connection using katalon studion?

I have a working code that creates a successful connection to DB2. I am using AS400.

	public  void getConnection(List<String> column) {

		Connection connection
		PreparedStatement preparedStmt
		ResultSet resultSet
		ResultSetMetaData resultSetMetaData
		List<String> dbData = new ArrayList<>()

		try {
			Class.forName('Your Driver')
		catch (ClassNotFoundException e) {
			System.out.println("Please check the path of DB2 driver")
		System.out.println("DB2 driver is loaded successfully!")

		try {
			connection = DriverManager.getConnection('Host', 'User', 'Password')
			if (connection != null) {
				System.out.println("Connected to the database " + connection.getSchema() + " successfully!")
			else {
				System.out.println("Database connection failed!")
			preparedStmt = connection.prepareStatement('SQL Query Here')
			resultSet =preparedStmt.executeQuery()
			resultSetMetaData = resultSet.getMetaData()

			boolean records = false

			if(resultSet !=null) {

				while( {

					records = true;

					for(int i=0; i<column.size(); i++){

						int k = Integer.parseInt(column.get(i).toString())


						println  resultSetMetaData.getColumnName(k) + " = " + dbData.get(i).toString()
			if (records == false) {
				println "No records found";
		}catch (SQLException e) {
			System.out.println("Database connection failed!");

Call above method in your test case:
It takes list parameters (Provide column numbers that you want to fetch)

Note: This will fetch every column (that you pass in list) that your query returns. Also, please import supporting drivers to external library.

See above, I have a working code that creates successful connection

Connecting to DB2 through methods in keywords is working fine but not through UI in Katalon Studio - Database - Project Setting. It says “Connection failed! No suitable driver found” even after the required drivers are added to the external library. Is there any fix provided for this issue?

I am also facing same problem. Any solution on DB2 connection from Katalon?

Got it worked. here are the steps.

  1. Download both the db2 jars(db2jcc-db2jcc4.jar and db2jcc_license_cu.jar)
  2. Place these jars in external libraries under project–>Settings–>External Libraries–>add

Once you have successfully imported it, try it. Cheers!!!