# We are not able to connect to oracle database in katalon studio version 7.6.2

**URL:** <https://forum.katalon.com/t/we-are-not-able-to-connect-to-oracle-database-in-katalon-studio-version-7-6-2/46434>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [August 13, 2020, 4:06pm UTC](https://forum.katalon.com/t/we-are-not-able-to-connect-to-oracle-database-in-katalon-studio-version-7-6-2/46434 "2020-08-13T16:06:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharathibalaji.R](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/bharathibalaji.r/32/16103_2.png) [@Bharathibalaji.R](https://forum.katalon.com/u/Bharathibalaji.R)\
**Post date:** [August 13, 2020, 4:06pm UTC](https://forum.katalon.com/t/we-are-not-able-to-connect-to-oracle-database-in-katalon-studio-version-7-6-2/46434/1 "2020-08-13T16:06:06Z")

</div>

Please provide steps to connect to oracle database using katalon studio version 7.6.2

---

<div class="post-metadata">

**Author:** ![Shruti.Pathane](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Shruti.Pathane](https://forum.katalon.com/u/Shruti.Pathane)\
**Post date:** [October 12, 2020, 8:43am UTC](https://forum.katalon.com/t/we-are-not-able-to-connect-to-oracle-database-in-katalon-studio-version-7-6-2/46434/2 "2020-10-12T08:43:52Z")

</div>

Hey @Bharathibalaji.R

Please follow below steps to connect to Oracle database

package PackageName

import java.sql.Connection  
import java.sql.DriverManager  
import java.sql.ResultSet

import com.kms.katalon.core.annotation.Keyword  
import com.mysql.cj.xdevapi.Statement

import oracle.jdbc.\*

public class ClassName{

```
@Keyword
private static Connection connection = null;

//Establishing a connection to the DataBase

def connectDB(String username, String password){

	String conn = 'jdbc:oracle:thin:@//......'

	if(connection != null && !connection.isClosed()){

		connection.close()

	}

	connection = DriverManager.getConnection(conn,'username','password')

	return connection

}

```

Thanks
