Question about datafiles assigned to tablespace [message #58504] |
Wed, 03 September 2003 13:39 |
Rizwan Qazi
Messages: 135 Registered: August 2002
|
Senior Member |
|
|
I have data files assigned to tablespace. Is it possible for me to drop or reassign or resize these datafiles for this tablspace ? If so how would I able to do it
Here is a query I used to add datafiles
alter tablespace DW add datafile 'E:ORACLEORADATADWTDWTDWAB07.DBF' SIZE 1000M REUSE;
and here is the query I used to find out information about the datafiles for this tablespace
select SUBSTR(file_name,1,50) FILE_NAME, bytes, status, RELATIVE_FNO from dba_data_files where tablespace_name='DW'
FILE_NAME BYTES STATUS RELATIVE_FNO
-------------------------------------------------- ---------- --------- ------------
E:ORACLEORADATADWTDWTDWAB01.DBF 1048576000 AVAILABLE 8
E:ORACLEORADATADWTDWTDWAB02.DBF 1048576000 AVAILABLE 12
E:ORACLEORADATADWTDWTDWAB03.DBF 1048576000 AVAILABLE 14
E:ORACLEORADATADWTDWTDWAB04.DBF 1048576000 AVAILABLE 16
E:ORACLEORADATADWTDWTDWAB05.DBF 1048576000 AVAILABLE 17
E:ORACLEORADATADWTDWTDWAB06.DBF 1048576000 AVAILABLE 18
E:ORACLEORADATADWTDWTDWAB07.DBF 1048576000 AVAILABLE 20
Thanks very much
Riz
|
|
|
|
|