Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List only Oracle Temp Table Space

Is there way to list only temp tablespaces in Oracle? I found following query which is listing all the tablespaces, I just need only temp tablespaces.

SQL> select tablespace_name from dba_tablespaces;

TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
like image 585
Malatesh Avatar asked Aug 03 '15 05:08

Malatesh


1 Answers

You can filter the list by the contents column:

SELECT tablespace_name FROM dba_tablespaces WHERE contents = 'TEMPORARY'

As described in the Oracle Database Online Documentation for dba_tablespaces.

like image 85
Mureinik Avatar answered Sep 21 '22 18:09

Mureinik