Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to determine default tablespace and accessible tablespaces

Re: How to determine default tablespace and accessible tablespaces

From: Olivier Guyot <guyot.oliv_at_wanadoo.fr>
Date: 4 Jun 2004 13:39:34 -0700
Message-ID: <67fd8aab.0406041239.7744a7cd@posting.google.com>


Hi André,

It is totally possible for a single user with few rigths to have information on him self.

There are in Oracle 4 kinds of views

=> DBA_XXX
=> ALL_XXX
=> USER_XXX
=> V$

if you make a select on user_users, you will find the answer to question 1.

Same if you make a select on user_tablespaces, it will answer to question 2.

For question 3, I think you will find it and user_XXX view as well but I do not remember which one.

Regs,

Olivier

"André Hartmann" <andrehartmann_at_hotmail.com> wrote in message news:<40c08e0e$1_at_olaf.komtel.net>...
> Hi there,
>
> I have an Oracle user account on a 9i instance which is granted roles
> CONNECT and RESOURCE plus UNLIMITED TABLESPACE system right. Now I wonder if
> that user can determine:
>
> (1) What is his default tablespace and default temporary tablespace (user
> cannot select from sys.dba_users --> ORA-00942) ?
> (2) What is the set of tablespaces that there are in the instance (user
> cannot select from sys.dba_tablespaces --> ORA-00942) ?
> (3) What is the set of tablespaces that the user is allowed to create schema
> objects in ?
>
> Thanks a lot,
>
> André
> :)
Received on Fri Jun 04 2004 - 15:39:34 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US