I have placed the ojdbc14.jar in the lib folder and am using the code below to connect to oracle:
import java.sql.Connection
import java.sql.DriverManager
import javax.sql.DataSource
import groovy.sql.Sql
import oracle.jdbc.driver.OracleTypes
driver = oracle.jdbc.driver.OracleDriver
Connection conn = DriverManager.getConnection(
'jdbc:oracle:thin:ratan/rabin123@localhost:1522:orcl');
but get the error: unable to resolve class oracle.jdbc.driver.OracleTypes