This does not return the correct result set. See http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getSchemas() for the required columns.