Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Blog Post

How to Find Database Object and it’s Corresponding Datafiles

October 11, 2017 Database Scripts, Scripts
How to Find Database Object and it’s Corresponding Datafiles

How to Find Database Object and it’s Corresponding Datafiles

SELECT DISTINCT t.ts#,
t.name                AS Tablespace_name,
d.name                AS DATAFILE,
s.owner,
s.segment_name,
s.segment_type,
s.bytes / 1024 / 1024 AS “MB”
FROM   v$tablespace t,
v$datafile d,
dba_segments s
WHERE  t.ts# = d.ts#
AND t.name = s.tablespace_name
AND s.owner = ‘APPS’;

 

Related Posts
Write a comment