[Oracle] Invalide character
Bonjour à tous,
J'ai un petit souci avec ma base Oracle. Dès que je fais une requete SQL, j'ai une exception qui est affiché :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
java.sql.SQLException: ORA-00911: invalid character
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:111)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:330)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:287)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:744)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:209)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:803)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1048)
at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:844)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1153)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1312)
at com.smartattitudes.test.lauch.Laucher.main(Laucher.java:32) |
Je pense que mon code et ma requete SQL (un simple SELECT) est bon :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
try {
Class.forName("oracle.jdbc.OracleDriver");
Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "wsa", "wsa");
Statement state = connection.createStatement();
ResultSet test = state.executeQuery("SELECT * FROM ETLDOMAIN;");
ResultSetMetaData meta = test.getMetaData();
for (int i = 1; i < meta.getColumnCount(); i++) {
System.out.print("\t * : " + meta.getColumnName(i) + " * ");
}
for (int i = 1; i <= meta.getColumnCount(); i++) {
while (test.next()) {
System.out.print("\t * " + test.getString(i) + " * ");
}
}
connection.close();
} catch (SQLException ex) {
Logger.getLogger(Laucher.class.getName()).log(Level.SEVERE, null, ex);
} catch (ClassNotFoundException ex) {
Logger.getLogger(Laucher.class.getName()).log(Level.SEVERE, null, ex);
} |
Mais je sais pas si ça viens du driver ou non. La version de mon driver est la suivante : Oracle JDBC Driver version - "10.2.0.4.0" et je travail sur une base de donnée Oracle sous : Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product.
Si vous avez besoin de plus d'informations n'hésitez pas à me le demander.
Merci d'avance.