Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: DESCRIBE the entire database
Hi !
Here is the script that you are looking for:
REM
REM Author : Oracleguru REM Date : 01/28/94 REM File Name : describe_tables.sql REM Usage : On sqlplus prompt enter: @describe_tables REM Description: Describes Tables and Views in Oracle Database. REM REM To describe objects in a user's Schema REM add the line REM and owner = upper('&1') below REm and on sqlplus prompt enter: REM @describe_tables user_id REM It is assumed that you can access that user's objects.REM
'prompt Owned by '||owner||' ','desc '|| object_name from all_objects
object_type = 'VIEW' )
order by owner, object_type, object_name
/
prompt prompt
prompt prompt
prompt prompt . ********** END OF REPORT **********
sysdev_at_adpsystems.mb.ca wrote in article
<6rs5fu$4ut$1_at_nnrp1.dejanews.com>...
> Hello,
>
> When I studied databases in university,
> we used Sybase. There was a command in Sybase
> that would describe the entire database; show
> all the tables, their field structure, primary
> keys, foreign keys, and so on.
>
> Questions:
>
> What is this command in Sybase?
>
> Is there an equivilent command in Oracle?
> With Oracle's DESCRIBE,
> I can only describe tables and views.
>
> Regards,
>
> Rodger
>
>
> P.S. -
> My ISP is really bad with newsgroups.
> They post late, and delete early. Emails to:
> sysdev_at_adpsystems.mb.ca
> are greatly appreciated.
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
>
Received on Thu Aug 27 1998 - 00:00:00 CDT
![]() |
![]() |