RE: USER_TABLESPACES has more rows than DBA_TABLESPACES

2003-01-15 Thread Fink, Dan
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) [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
 01/14/2003 08:44 AM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc: 
Subject:RE: USER_TABLESPACES has more rows than
DBA_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

- Original Message - 

To: Multiple recipients of list ORACLE-L  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Sent: Monday, January 13, 2003 1:34 PM


  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: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 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: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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

Re: USER_TABLESPACES has more rows than DBA_TABLESPACES

2003-01-14 Thread Keith Moore



I'm still confused. They are not in DBA_TABLESPACES, only 
USER_TABLESPACES.Keith- Original Message - From: 
"Stephane Faroult" [EMAIL PROTECTED]To: "Multiple 
recipients of list ORACLE-L" [EMAIL PROTECTED]Sent: Monday, 
January 13, 2003 1:34 PMSubject: Re: USER_TABLESPACES has more rows than 
DBA_TABLESPACES  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 --  
Author: Stephane Faroult INET: [EMAIL PROTECTED]  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: [EMAIL PROTECTED] (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).  
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited.   If you are not the intended
recipient, please contact the sender and delete the material from any
computer.



RE: USER_TABLESPACES has more rows than DBA_TABLESPACES

2003-01-14 Thread Hately, Mike (NESL-IT)
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

- Original Message - 

To: Multiple recipients of list ORACLE-L  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Sent: Monday, January 13, 2003 1:34 PM


  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: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 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: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).




Re: USER_TABLESPACES has more rows than DBA_TABLESPACES

2003-01-14 Thread Stephane Faroult
 Keith Moore wrote:
 
 I'm still confused. They are not in DBA_TABLESPACES, only
 USER_TABLESPACES.
 Keith

Because DBA_TABLESPACES filters them out. Try 

select name, online$ from sys.ts$

and you'll see them with online$ = 3 (out of memory).
 
 - Original Message -
 From: Stephane Faroult [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Sent: Monday, January 13, 2003 1:34 PM
 Subject: Re: USER_TABLESPACES has more rows than DBA_TABLESPACES
 
   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
-- 
Author: Stephane Faroult
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).




RE: USER_TABLESPACES has more rows than DBA_TABLESPACES

2003-01-14 Thread Jared . Still
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) [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
 01/14/2003 08:44 AM
 Please respond to ORACLE-L

 
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc: 
Subject:RE: USER_TABLESPACES has more rows than DBA_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

- Original Message - 

To: Multiple recipients of list ORACLE-L  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Sent: Monday, January 13, 2003 1:34 PM


  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: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 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: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).




Re: USER_TABLESPACES has more rows than DBA_TABLESPACES

2003-01-13 Thread Stephane Faroult
 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
-- 
Author: Stephane Faroult
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).