This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Oracle-jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle-jdbc " Watch "Oracle-jdbc " New topic


Neha Yadav

Joined: Aug 26, 2004
Posts: 5
Hi All

I have a problem with accessing the meta-data of the table created by me as 'scott' user.
when i do a 'getColumns' for the Database meta-data, giving table name as the one i created , i get a null ResultSet.

But i can all the System/Oracle-specific cols listed through getColumns, excluding those of the tables created by me.

It is possible that 'Database.getMetaData' doesnot recognise the tables created by me from SQLPlus.(I have done a commit)

Please help, im stuck

Thank you
Barbara Norway
Ranch Hand

Joined: Sep 30, 2003
Posts: 150
Just a wild guess here but is there a chance you need to append scott. (schema name) to the name of the table(s)? This ould apply if you're using another userid that does not have privileges in the scott. schema.

For example scott.mytable instead of just mytable

Consider Paul's rocket mass heater.
subject: Oracle-jdbc
Similar Threads
Problem with table name in mysql
OracleDatabaseMetaData.getColumns() returns an empty result set
An Oracle DBA question
DatabaseMetaData API
Oracle describe table from jdbc