Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get user creatd tables only from databasemetadata in oracle

 
mihir maniar
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to get user creatd tables only from databasemetadata in oracle.Please guide me on the same.i use the following syntax for getting the databasemetadata.
String[] names={"TABLE"};
ResultSet rscsv=dbmtdt.getTables(null,"%", "%",names);
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mihir,
You can search by the schema pattern (which is usually the user.) Schema pattern is the second argument.
 
mihir maniar
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the different values that i can to put in the schema pattern to get the user tables because i get the user tables from db2 by using the code written in the previous message but not in oracle.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic