I am new to oracle and I am trying to use IntelliJ IDEA Database browser to see my data and my tables..
I did a basic install of oracle xe on my linux computer and the following java code does a insert and also will return all the data:
try {
//step1 load the driver class
Class.forName("oracle.jdbc.driver.OracleDriver");
//step2 create the connection object
Connection con = DriverManager.getConnection(
"jdbc:oracle:thin:@localhost:1521:xe", "system", "xxx");
//step3 create the statement object
Statement stmt = con.createStatement();
//step4 execute query
Boolean ret = stmt.execute("insert into emp values (1, \'John\', 43)");
ResultSet rs = stmt.executeQuery("select * from emp");
while (rs.next())
System.out.println(rs.getInt(1) + " " + rs.getString(2) + " " + rs.getString(3));
//step5 close the connection object
con.close();
but if I try to use IntelliJ IDEA database browser I dont see any XE dabase or my table.. but I am using the same connect data.
here is what I see on the screen
Can someone please tell me where I should be looking for my table and data.. thanks