dbTalk Databases Forums  

differentiating between tables and views

comp.database.oracle comp.database.oracle


Discuss differentiating between tables and views in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
UNIXNewBie
 
Posts: n/a

Default differentiating between tables and views - 02-29-2004 , 06:49 PM






Using Oracle release 902000100.

Assuming I don't have a tool like TOAD how could I tell if what I am using
is a view or table?

Is there a way to get at the view definition?

I have access to sys user id

Thanks

J.



Reply With Quote
  #2  
Old   
Chris Leonard
 
Posts: n/a

Default Re: differentiating between tables and views - 03-01-2004 , 01:38 PM






In the query below, replace <owner> with the name of the object's owner, and
replace <object> with the name of the object:

select object_type
from all_objects
where owner = '<owner>'
and object = '<object>'

--
Cheers,
Chris

___________________________________

Chris Leonard, The Database Guy
http://www.databaseguy.com

Brainbench MVP for Oracle Admin
http://www.brainbench.com

MCSE, MCDBA, OCP, CIW
___________________________________

"UNIXNewBie" <nospan (AT) nospam (DOT) com> wrote

Quote:
Using Oracle release 902000100.

Assuming I don't have a tool like TOAD how could I tell if what I am using
is a view or table?

Is there a way to get at the view definition?

I have access to sys user id

Thanks

J.





Reply With Quote
  #3  
Old   
UNIXNewBie
 
Posts: n/a

Default Re: differentiating between tables and views - 03-01-2004 , 03:50 PM



Thanks



"Chris Leonard" <s_p_a_m_chris (AT) hotmail (DOT) com> wrote

Quote:
In the query below, replace <owner> with the name of the object's owner,
and
replace <object> with the name of the object:

select object_type
from all_objects
where owner = '<owner>'
and object = '<object>'

--
Cheers,
Chris

___________________________________

Chris Leonard, The Database Guy
http://www.databaseguy.com

Brainbench MVP for Oracle Admin
http://www.brainbench.com

MCSE, MCDBA, OCP, CIW
___________________________________

"UNIXNewBie" <nospan (AT) nospam (DOT) com> wrote in message
news:FPmdnQGkLcAXFd_d4p2dnA (AT) magma (DOT) ca...
Using Oracle release 902000100.

Assuming I don't have a tool like TOAD how could I tell if what I am
using
is a view or table?

Is there a way to get at the view definition?

I have access to sys user id

Thanks

J.







Reply With Quote
  #4  
Old   
kstahl
 
Posts: n/a

Default Re: differentiating between tables and views - 03-02-2004 , 05:02 AM



UNIXNewBie wrote:

Quote:
Thanks



"Chris Leonard" <s_p_a_m_chris (AT) hotmail (DOT) com> wrote in message
news:cjM0c.37$Oz6.64608 (AT) news (DOT) uswest.net...

In the query below, replace <owner> with the name of the object's owner,

and

replace <object> with the name of the object:

select object_type
from all_objects
where owner = '<owner>'
and object = '<object>'

ALL_CATALOG works just as well.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.