title: Unable to connect to oracle database from groovy
body: <p>Hi i am unable to connect to oracle database in groovy . I have used the following code in groovy console but getting the following compilation  error </p>
  
  <pre><code>unable to resolve class oracle.jdbc.driver.OracleTypes
   at line: 5, column: 1
  </code></pre>
  
  <p>I have used the following code</p>
  
  <pre><code>import java.sql.Connection
  import java.sql.DriverManager
  import javax.sql.DataSource
  import groovy.sql.Sql
  import oracle.jdbc.driver.OracleTypes
  
  sql = Sql.newInstance("jdbc:oracle:thin:@localhost:1521:databasename",
                 "username", "password", "oracle.jdbc.OracleDriver")
  </code></pre>
  
  <p>If i remove <code>import oracle.jdbc.driver.OracleTypes</code> statement i am getting the following  <code>WARNING: Sanitizing stacktrace:</code>.Kindly help me how to resolve this i have place ojdbc14.jar in the lib folder.</p>