title: oracle.jdbc.driver.T4CConnection.getSchema() exception
body: <p>I am trying get the default database name from the connection for oracle</p>
  <p>The following code gives me this abstract method error. Can anyone suggest me how I can get default database name using jdbc?</p>
  <p>environmental information
  version</p>
  <pre><code>oracle:Oracle 11g
  java:1.8
  </code></pre>
  <p>pom.xml</p>
  <pre><code>  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
    &lt;/properties&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.oracle&lt;/groupId&gt;
        &lt;artifactId&gt;ojdbc6&lt;/artifactId&gt;
        &lt;version&gt;11.2.0.3&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  </code></pre>
  <p>code</p>
  <pre><code>package snippet;
  
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.SQLException;
  
  public class ConnectiongetSchemaErrorTest {
    public static void main(String[] args) {
      String driver = &quot;oracle.jdbc.driver.OracleDriver&quot;;
      String url = &quot;jdbc:oracle:thin:@xx:8095/orcl&quot;;
      String user = &quot;xx&quot;;
      String pswd = &quot;xx&quot;;
  
      try {
        Class.forName(driver);
      } catch (ClassNotFoundException e) {
        e.printStackTrace();
      }
  
      Connection connection = null;
      try {
        connection = DriverManager.getConnection(url, user, pswd);
        System.out.println(connection.getClass().getName());
        String schema = connection.getSchema();
        System.out.println(schema);
      } catch (Exception e) {
        e.printStackTrace();
      } finally {
        try {
          connection.close();
        } catch (SQLException e) {
          e.printStackTrace();
        }
      }
    }
  }
  
  </code></pre>
  <p>error</p>
  <pre><code>oracle.jdbc.driver.T4CConnection
  Exception in thread &quot;main&quot; java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.getSchema()Ljava/lang/String;
      at snippet.ConnectiongetSchemaErrorTest.main(ConnectiongetSchemaErrorTest.java:24)
  </code></pre>