Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1532
  • Last Modified:

Retrieving Table Names and Column data from Oracle database

Hi all,
I am wanting to find a way to programtically retrieve the table names, column names, column specifications (length, type etc.) from an Oracle database. So maybe using an OracelDataReader or something like that. Or maybe there is some SQL that will help me achieve this.

I would like the solution in Vb.Net or C#.
0
M3mph15
Asked:
M3mph15
  • 2
2 Solutions
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you can query the view DBA_TAB_COLUMNS
www.ss64.com/orad/DBA_TAB_COLUMNS.html
0
 
M3mph15Author Commented:
hi, tried to retireve data in SQL Plus. SQL statement:
select column_name,data_type, nullable from dba_tab_columns where rownum < 50;
it says: table or view does not exist
0
 
sujith80Commented:
Probably you dont have privileges to access dba_tab_columns.

You may try to use ALL_TAB_COLUMNS instead.
0
 
M3mph15Author Commented:
Hi,
Yes it was that i didn't have the right privileges. Thanks to the both of you
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now