Вы находитесь на странице: 1из 1

Q1->HOW TO KNOW WHICH TABLE IS IN WHICH TABLESPACE?

select d.table_name,t.tablespace_name from dba_tab_partitions d,dba_tablespaces


t where t.tablespace_name=d.tablespace_name;
Q2->HOW TO KNOW WHICH TABLE IS IN WHICH SEGMENT?
select d.table_name,t.tablespace_name,db.segment_name from dba_tab_partitions d,
dba_tablespaces t ,dba_segments db where t.tablespace_name=d.tablespace_name and
d.tablespace_name=db.tablespace_name;

Q-3>HOW TO KNOW WHICH TABLE IS IN WHICH DATAFILE?


select d.table_name,t.tablespace_name,db.segment_name,df.file_name from dba_tab_
partitions d,dba_tablespaces t ,dba_segments db,dba_data_files df where t.tables
pace_name=d.tablespace_name and d.tablespace_name=db.tablespace_name and df.tabl
espace_name=d.tablespace_name;

Оценить