If i have just a oracle schema name then how can i retrieve all the properties/attributes of that schema in respect to the DB name, Datafile name and tablespace name. Along with the space allocated to them.
Asked
Active
Viewed 1,241 times
1 Answers
0
The dba_users view gives you schema name and default tablespace for that schema.
select * from dba_users
Subsequently you can query dba_data_files. But not all data for a schema might be in the default tablespace. Better check dba_segments for that schema.
select segment_name,tablespace_name from dba_segments
where owner='YOUR_SCHEMA'