List only Oracle Temp Table Space
12,247
Solution 1
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
.
Solution 2
You can the dba_temp_files, that has tablespace_name column
select distinct (TABLESPACE_NAME) from dba_temp_files;
Author by
Malatesh
I am enthusiastic programmer, having 11+ experience in software industry. Product development expertise with technologies. Core Java, J2EE, Spring, Spring Boot, JavaScript, Elasticsearch, Kibana, Microservices, Docker containers, Data Structures, Algorithms. Oracle Database Linux Domains: Storage Backup Management, Finance, E-Commerce, CRM Vmware virtulization etc.
Updated on June 09, 2022Comments
-
Malatesh almost 2 years
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