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

Home -> Community -> Usenet -> c.d.o.misc -> Re: QUestion: how to list all the tablespaces?

Re: QUestion: how to list all the tablespaces?

From: Turkbear <john.g_at_dot.spamfree.com>
Date: Wed, 15 Dec 2004 14:47:02 -0600
Message-ID: <lf81s0tn0s20l43houo9ufqjaqqc214vcl@4ax.com>


Grace Tsai <gtsai_at_bnl.gov> wrote:

>Hi,
>
>This is a really elementary question. What is the command to list all
>the tablespaces in the database? Thanks.
>
>Grace

If DBA you can use

Select distinct tablespace_name from dba_tables order by tablespace_name;

Variants will be
all_tables ( all tables the user logged in has access to) user_table ( tables owned by logged in user) - These will limit the tablespaces you get back to those used by the table in the set.. Received on Wed Dec 15 2004 - 14:47:02 CST

Original text of this message

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