Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: USER_TABLESPACES has more rows than DBA_TABLESPACES
Another good one is DBA_TAB_COLUMNS. Check the tables listed in it with the
tables listed in DBA_TABLES.
When faced with a similar situation, do a little detective work. Since these are views, you can examine the query that generates the view. This information is in DBA_VIEWS. Compare the queries, perhaps even examine the underlying tables (be careful) and learn something about the Oracle data dictionary and how the kernel functions.
Dan Fink
-----Original Message-----
Sent: Tuesday, January 14, 2003 2:14 PM
To: Multiple recipients of list ORACLE-L
Some of the system views have a lot going on under the covers, and sometimes don't act the way you would expect.
Compare ALL_TABLES and DBA_TABLES sometime.
They work pretty much the same from the command line for a user that has DBA privs.
In a stored procedure however, ALL_TABLES suddenly becomes very restrictive due to this bit of code in the view:
or /* user has system privileges */ exists (select null from v$enabledprivs where priv_number in (-45 /* LOCK ANY TABLE */, -47 /* SELECT ANY TABLE */, -48 /* INSERT ANY TABLE */, -49 /* UPDATE ANY TABLE */, -50 /* DELETE ANY TABLE */) ) )
Jared
"Hately, Mike (NESL-IT)" <Mike.Hately_at_npowernorthern.com>
Sent by: root_at_fatcity.com
01/14/2003 08:44 AM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: Subject: RE: USER_TABLESPACES has more rows thanDBA_TABLESPACES Keith,
yes, it's regular behaviour that the TS$ entry remains but the discrepancy between those 2 views is a bug which is fixed in 8.0.6. Basically, DBA_TABLESPACES excludes 'INVALID' tablespaces but USER_TABLESPACES doesn't.
There are duplicates for the bug. The numbers are 284887, 553723 and 546913.
regards,
Mike Hately
-----Original Message-----
Sent: 14 January 2003 15:34
To: Multiple recipients of list ORACLE-L
I'm still confused. They are not in DBA_TABLESPACES, only
USER_TABLESPACES.
Keith
> > Keith Moore wrote:
> >
> > Has anyone else seen this or can you explain it?
> >
> > I have 7 tablespaces in USER_TABLESPACES that don't exist in
> > DBA_TABLESPACES. These have been dropped, but somehow did not
> > disappear from USER_TABLESPACES. They have a status of INVALID.
> >
> > The database is version 8.0.5 (Yeah, I know, we'll be going to 9i real
> > soon now)
> >
> > Keith
> >
>
> Regular behaviour. Rows are never deleted from sys.ts$ (on which
> DBA_TABLESPACES is based).
>
> --
> Regards,
>
> Stephane Faroult
> Oriole Software
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
<http://www.orafaq.net>
> --
> Author: Stephane Faroult
> INET: sfaroult_at_oriole.com <mailto:sfaroult_at_oriole.com>
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
<http://www.fatcity.com>
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com <mailto:ListGuru_at_fatcity.com> (note EXACT
spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Hately, Mike (NESL-IT) INET: Mike.Hately_at_npowernorthern.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: Jared.Still_at_radisys.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Fink, Dan INET: Dan.Fink_at_mdx.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jan 15 2003 - 09:18:56 CST
![]() |
![]() |