I am experiencing some difficulty getting to the Oracle 11g Express Workspace in which resides my database.
I am able to register my JDBC Driver via Class.forName("jdbc.oracle.driver.OracleDriver") and to connect successfully via Connection con = DriverManager.getConnection("jdbc:oracle:thin:" + username + "/" + password + "@localhost:1521:xe") but not able to get into the workspace containing the database I created.
Any attempt to create a database via Statement smt = Connection.createStatement() yields a java.lang.UnsupportedOperationException.
I am not even sure if I am connected to the right place. I know when I look into the Oracle Database 11.2 XE parameters it lists the db_name as xe and I can connect to it via the sys as sysdba and using the password I established for the Oracle 11g Express database but I can't get into the workspace when I had created a database and utilized ddl and dml statements to populate it.
Perhaps I simply don't know what to do at this point because I am new to JDBC. I checked my TNSNAMES.ORA file and indeed there is an XE entry representing my Oracle 11g Express as well as other entries representing databases in Oracle. I think I am there I just don't know what to do to get to my XE database I created.
The code I am using to execute a SQL statement is as follows:
Statement smt = null;
try {
smt = connection.createStatement();
String command = "CREATE table x(y varchar(2))";
smt.executeLargeUpdate(command);
} catch (SQLException e) {
// TODO Auto-generated catch block
System.out.println(e.getMessage() + e.getCause());
}



oracle.jdbc.OracleDriverand was able to successfully register the database driver. I still need to understand why I am connected to my database but unable to execute SQL. - MushyexecuteUpdatenotexecuteLargeUpdate. I was intending to use the correct behavior but was sloppy with the autocomplete from Eclipse. However, I still don't know how to get into a database I created through Oracle 11g Express. Right now I am just connected toxeand can run SQL commands. - Mushy