oracle equivalent to sp_help? [message #9730] |
Tue, 02 December 2003 09:59  |
nimmi smith
Messages: 1 Registered: December 2003
|
Junior Member |
|
|
I am an SQL DBA, newbie to Oracle. Does Oracle have an equivalent to SQL server's stored proc sp_help? In SQL server, sp_help reports information about a database object (any object listed in the sysobjects table), a user-defined data type, or a data type supplied by Microsoft® SQL Server™.
|
|
|
|
Re: oracle equivalent to sp_help? [message #9759 is a reply to message #9730] |
Wed, 03 December 2003 10:30  |
Todd Barry
Messages: 4819 Registered: August 2001
|
Senior Member |
|
|
Full-featured development tools like TOAD provide this information easily, but even in SQL*Plus you can use the DESC command to get some basic information about most objects:
-- What is the structure of this table/view?
sql>desc user_sequences
Name Null? Type
---------------------------------------- -------- ---------------------------
SEQUENCE_NAME NOT NULL VARCHAR2(30)
MIN_VALUE NUMBER
MAX_VALUE NUMBER
INCREMENT_BY NOT NULL NUMBER
CYCLE_FLAG VARCHAR2(1)
ORDER_FLAG VARCHAR2(1)
CACHE_SIZE NOT NULL NUMBER
LAST_NUMBER NOT NULL NUMBER
-- What is this user-defined datatype?
sql>desc numbertable
NUMBERTABLE TABLE OF NUMBER
|
|
|