Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't see my tables from a JDBC program

843854Apr 19 2004 — edited Apr 20 2004
Hi there,

I have a JDBC program to connect to an Oracle 9i database. The problem is that I can't see the tables I create if I do something like "SELECT * FROM TAB" from a JDBC program and hence can't use them.

If I do the same statement from SQL * PLUS, I get the the full list of my tables including the ones I created. If i do that from JDBCTest.java, I don't get to see them. I do commit my statments and have tried committing from the Java program and from the SQL Plus after creating the tables....

Just to make sure I have checked myself, I am pretty sure that I am connecting with the same ID/Password in which I created my tables. I have also used schema.table to no avail... I have used scott/tiger and system/manager

If i try st.executeUpdate() for example, I get the error : java.sql.sqlException: ORA-00942: table or view does not exist...

Any help would be greatly appreciated

Thanx :)
Nav
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2004
Added on Apr 19 2004
3 comments
556 views