Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: QUestion: how to list all the tablespaces?
On 15 Dec 2004 15:47:38 -0800, joel-garry_at_home.com wrote:
>Wondering why I get an extra blank row when I Select distinct
>tablespace_name from dba_tables order by tablespace_name;
SQL> create table t1 (
2 c number not null, 3 constraint t1_pk 4 primary key (c)
Table created.
SQL> create table t2 (
2 c number not null, 3 constraint t2_pk 4 primary key (c)
Table created.
SQL> create global temporary table t3 (
2 c number not null, 3 constraint t3_pk 4 primary key (c)
Table created.
SQL> select table_name, tablespace_name from user_tables 2 order by table_name;
TABLE_NAME TABLESPACE_NAME ------------------------------ ------------------------------ T1 USERS
SQL> select index_name, tablespace_name from user_indexes 2 order by index_name;
INDEX_NAME TABLESPACE_NAME ------------------------------ ------------------------------ T1_PK USERS T2_PK USERS
-- Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis toolReceived on Sat Dec 18 2004 - 06:58:40 CST