Sunteți pe pagina 1din 11

User Name Password

Remember Me?
Log in

Tags

Register

FAQ

Calendar

Today's Posts

Search

diffrence between Select * from tab and Cat - Oracle Server


This is a discussion on diffrence between Select * from tab and Cat - Oracle Server ; On Thu, 19 May 2005 05:12:24 -0700, Surendra Panwar interested us by writing: It is possible you are looking at obsolete dictionary descriptors - tab was short for TABLES and cat was short for CATALOG. IIRC, the main difference was ... Home > Database Forum > Oracle Database > Oracle Server > diffrence between Select * from tab and Cat Search Forums

Go

Show Threads Tag Search Advanced Search Google Search

Show Posts

Search

Go to Page...

Page 2 of 3 < 1 2 3 > LinkBack #11 05-19-2005, 08:43 AM Thread Tools Display Modes

usenet Database Bot

Join Date: Sep 2009 Posts: 1,236,254

Re: diffrence between Select * from tab and Cat On Thu, 19 May 2005 05:12:24 -0700, Surendra Panwar interested us by writing: It is possible you are looking at obsolete dictionary descriptors - tab was short for TABLES and cat was short for CATALOG. IIRC, the main difference was that cat included views. If so, be aware that neither of these is in common use today as they both have serious limitations in the information they present. If that is the case, and tab shows a list of tables, you are encouraged to learn Oracle's current methods by looking at the Oracle 'Database Reference' document found in http://docs.oracle.com -Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries *** #12 05-19-2005, 08:43 AM usenet Database Bot Join Date: Sep 2009 Posts: 1,236,254

Re: diffrence between Select * from tab and Cat On Thu, 19 May 2005 05:12:24 -0700, Surendra Panwar interested us by writing: It is possible you are looking at obsolete dictionary descriptors - tab was short for TABLES and cat was short for CATALOG. IIRC, the main difference was that cat included views. If so, be aware that neither of these is in common use today as they both have serious limitations in the information they present. If that is the case, and tab shows a list of tables, you are encouraged to learn Oracle's current methods by looking at the Oracle 'Database Reference' document found in http://docs.oracle.com -Hans Forbrich Canada-wide Oracle training and consulting

mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries *** #13 05-19-2005, 08:43 AM usenet Database Bot Join Date: Sep 2009 Posts: 1,236,254

Re: diffrence between Select * from tab and Cat On Thu, 19 May 2005 05:12:24 -0700, Surendra Panwar interested us by writing: It is possible you are looking at obsolete dictionary descriptors - tab was short for TABLES and cat was short for CATALOG. IIRC, the main difference was that cat included views. If so, be aware that neither of these is in common use today as they both have serious limitations in the information they present. If that is the case, and tab shows a list of tables, you are encouraged to learn Oracle's current methods by looking at the Oracle 'Database Reference' document found in http://docs.oracle.com -Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries *** #14 05-19-2005, 08:43 AM usenet Database Bot Join Date: Sep 2009 Posts: 1,236,254

Re: diffrence between Select * from tab and Cat On Thu, 19 May 2005 05:12:24 -0700, Surendra Panwar interested us by writing: It is possible you are looking at obsolete dictionary descriptors - tab was short for TABLES and cat was short for CATALOG. IIRC, the main difference was that cat included views. If so, be aware that neither of these is in common use today as they both have serious limitations in the information they present.

If that is the case, and tab shows a list of tables, you are encouraged to learn Oracle's current methods by looking at the Oracle 'Database Reference' document found in http://docs.oracle.com -Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries *** #15 05-19-2005, 08:43 AM usenet Database Bot Join Date: Sep 2009 Posts: 1,236,254

Re: diffrence between Select * from tab and Cat On Thu, 19 May 2005 05:12:24 -0700, Surendra Panwar interested us by writing: It is possible you are looking at obsolete dictionary descriptors - tab was short for TABLES and cat was short for CATALOG. IIRC, the main difference was that cat included views. If so, be aware that neither of these is in common use today as they both have serious limitations in the information they present. If that is the case, and tab shows a list of tables, you are encouraged to learn Oracle's current methods by looking at the Oracle 'Database Reference' document found in http://docs.oracle.com -Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries *** #16 05-27-2005, 09:34 AM usenet Database Bot Re: diffrence between Select * from tab and Cat Some old application will use cat to get the object list, and still have the following difference in definition. Join Date: Sep 2009 Posts: 1,236,254

SQL> desc tab NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TNAME NOT NULL VARCHAR2(30) 2 TABTYPE VARCHAR2(7) 3 CLUSTERID NUMBER SQL> desc CAT NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TABLE_NAME NOT NULL VARCHAR2(30) 2 TABLE_TYPE VARCHAR2(11) SQL> SOURCE TAB select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM'), t.tab# from sys.tab$ t, sys.obj$ o where o.owner# = userenv('SCHEMAID') and o.type# >=2 and o.type# <=5 and o.linkname is null and o.obj# = t.obj# (+) SQL> SOURCE CAT select o.name, decode(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 'UNDEFINED') from sys.obj$ o where o.owner# = userenv('SCHEMAID') and ((o.type# in (4, 5, 6)) or (o.type# = 2 /* tables, excluding iot - overflow and nested tables */ and not exists (select null from sys.tab$ t where t.obj# = o.obj# and (bitand(t.property, 512) = 512 or

bitand(t.property, 8192) = 8192)))) and o.linkname is null

#17 05-27-2005, 09:34 AM usenet Database Bot Re: diffrence between Select * from tab and Cat Some old application will use cat to get the object list, and still have the following difference in definition. SQL> desc tab NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TNAME NOT NULL VARCHAR2(30) 2 TABTYPE VARCHAR2(7) 3 CLUSTERID NUMBER SQL> desc CAT NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TABLE_NAME NOT NULL VARCHAR2(30) 2 TABLE_TYPE VARCHAR2(11) SQL> SOURCE TAB select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM'), t.tab# from sys.tab$ t, sys.obj$ o where o.owner# = userenv('SCHEMAID') and o.type# >=2 and o.type# <=5 and o.linkname is null and o.obj# = t.obj# (+) SQL> SOURCE CAT select o.name, decode(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', Join Date: Sep 2009 Posts: 1,236,254

4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 'UNDEFINED') from sys.obj$ o where o.owner# = userenv('SCHEMAID') and ((o.type# in (4, 5, 6)) or (o.type# = 2 /* tables, excluding iot - overflow and nested tables */ and not exists (select null from sys.tab$ t where t.obj# = o.obj# and (bitand(t.property, 512) = 512 or bitand(t.property, 8192) = 8192)))) and o.linkname is null

#18 05-27-2005, 09:34 AM usenet Database Bot Re: diffrence between Select * from tab and Cat Some old application will use cat to get the object list, and still have the following difference in definition. SQL> desc tab NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TNAME NOT NULL VARCHAR2(30) 2 TABTYPE VARCHAR2(7) 3 CLUSTERID NUMBER SQL> desc CAT NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TABLE_NAME NOT NULL VARCHAR2(30) 2 TABLE_TYPE VARCHAR2(11) SQL> SOURCE TAB select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', Join Date: Sep 2009 Posts: 1,236,254

4, 'VIEW', 5, 'SYNONYM'), t.tab# from sys.tab$ t, sys.obj$ o where o.owner# = userenv('SCHEMAID') and o.type# >=2 and o.type# <=5 and o.linkname is null and o.obj# = t.obj# (+) SQL> SOURCE CAT select o.name, decode(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 'UNDEFINED') from sys.obj$ o where o.owner# = userenv('SCHEMAID') and ((o.type# in (4, 5, 6)) or (o.type# = 2 /* tables, excluding iot - overflow and nested tables */ and not exists (select null from sys.tab$ t where t.obj# = o.obj# and (bitand(t.property, 512) = 512 or bitand(t.property, 8192) = 8192)))) and o.linkname is null

#19 05-27-2005, 09:34 AM usenet Database Bot Re: diffrence between Select * from tab and Cat Some old application will use cat to get the object list, and still have the following difference in definition. SQL> desc tab NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TNAME NOT NULL VARCHAR2(30) 2 TABTYPE VARCHAR2(7) Join Date: Sep 2009 Posts: 1,236,254

3 CLUSTERID NUMBER SQL> desc CAT NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TABLE_NAME NOT NULL VARCHAR2(30) 2 TABLE_TYPE VARCHAR2(11) SQL> SOURCE TAB select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM'), t.tab# from sys.tab$ t, sys.obj$ o where o.owner# = userenv('SCHEMAID') and o.type# >=2 and o.type# <=5 and o.linkname is null and o.obj# = t.obj# (+) SQL> SOURCE CAT select o.name, decode(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 'UNDEFINED') from sys.obj$ o where o.owner# = userenv('SCHEMAID') and ((o.type# in (4, 5, 6)) or (o.type# = 2 /* tables, excluding iot - overflow and nested tables */ and not exists (select null from sys.tab$ t where t.obj# = o.obj# and (bitand(t.property, 512) = 512 or bitand(t.property, 8192) = 8192)))) and o.linkname is null

#20 05-27-2005, 09:34 AM

usenet Database Bot Re: diffrence between Select * from tab and Cat Some old application will use cat to get the object list, and still have the following difference in definition. SQL> desc tab NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TNAME NOT NULL VARCHAR2(30) 2 TABTYPE VARCHAR2(7) 3 CLUSTERID NUMBER SQL> desc CAT NO# NAME NULLABLE TYPE --- ------------------------------ -------- -----------1 TABLE_NAME NOT NULL VARCHAR2(30) 2 TABLE_TYPE VARCHAR2(11) SQL> SOURCE TAB select o.name, decode(o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM'), t.tab# from sys.tab$ t, sys.obj$ o where o.owner# = userenv('SCHEMAID') and o.type# >=2 and o.type# <=5 and o.linkname is null and o.obj# = t.obj# (+) SQL> SOURCE CAT select o.name, decode(o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 'UNDEFINED') from sys.obj$ o where o.owner# = userenv('SCHEMAID') and ((o.type# in (4, 5, 6)) or (o.type# = 2 /* tables, excluding iot - overflow and nested

Join Date: Sep 2009 Posts: 1,236,254

tables */ and not exists (select null from sys.tab$ t where t.obj# = o.obj# and (bitand(t.property, 512) = 512 or bitand(t.property, 8192) = 8192)))) and o.linkname is null

Page 2 of 3 < 1 2 3 > Previous Thread | Next Thread Thread Tools Show Printable Version Display Modes Linear Mode Switch to Hybrid Mode Switch to Threaded Mode

All times are GMT -4. The time now is 01:10 AM.

Contact Us - DBA Spot - Privacy Statement Powered by vBulletin Version 3.8.3 Copyright 2000 - 2009, Jelsoft Enterprises Ltd. Search Engine Optimization by vBSEO 3.3.0 LinkBack LinkBack URL About LinkBacks

S-ar putea să vă placă și