I am using Katalon 8.3.0 trial version
Trying to connect to an Oracle db using TCPS protocol. But always getting the error: SQL Exception: IO Error: Connection reset
Using Toad we are connected to the db and able to run all queries on the db tables.
I am using the details as in the tnsname.ora file which is used to connect to db as given below:-
Tried including all details in connection string , but still getting error.
Is it the issue with the Licensing? Or Katalon required any firewall changes to be made to connect to via VPN?
I am able to connect from Katalon to Oracle with below info
First of all, make sure your TNS file has correct info and try to connect with PL SQL. Below is what I have in my TNS file
and I am able to connect with Oracle client with the same. So I use as below in Katalon but your string is longer, so I matched with what I use and I know works for me.
GlobalVariable.sDatabaseName = G4_19C (Your TNS name for the string you want to connect with, Katalon will make reference
to the TNS file and extract the string as declared there.)
Then use as below
String connectionString;
System.setProperty("oracle.net.tns_admin", "PATH TO YOUR TNS FILE");
connectionString = "jdbc:oracle:thin:@" + GlobalVariable.sDatabaseName;
def sql = Sql.newInstance(connectionString, GlobalVariable.sUserId, GlobalVariable.sPassword);
try {
sql.eachRow("select count(*) from TABLE where CONDITION YOU NEED'"){ row ->
println ("THIS IS THE OUTPUT QUERY: " + row);
}
} finally {
sql.close();
}