我有
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF
C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\DATABASE\DONHUVY_TABLESPACE.DAT
和
SQL> select tablespace_name from user_tablespaces;
TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
DONHUVY_TABLESPACE
DONHUVY_TEMPORARY_TABLESPACE
DONHUVY2_TEMPORARY_TABLESPACE
8 rows selected.
我希望删除所有内容donhuvy2
更新
SELECT FILE_NAME, BLOCKS, TABLESPACE_NAME FROM DBA_DATA_FILES UNION ALL SELECT FILE_NAME, BLOCKS, TABLESPACE_NAME FROM DBA_TEMP_FILES
SQL> SELECT FILE_NAME, BLOCKS, TABLESPACE_NAME FROM DBA_DATA_FILES UNION ALL SELECT FILE_NAME, BLOCKS, TABLESPACE_NAME FROM DBA_TEMP_FILES;
FILE_NAME
--------------------------------------------------------------------------------
BLOCKS TABLESPACE_NAME
---------- ------------------------------
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF
12800 USERS
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF
84480 SYSAUX
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF
48640 UNDOTBS1
FILE_NAME
--------------------------------------------------------------------------------
BLOCKS TABLESPACE_NAME
---------- ------------------------------
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF
46080 SYSTEM
C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\DATABASE\DONHUVY_TABLESPACE.DAT
1280 DONHUVY_TABLESPACE
C:\ORACLEXE\APP\ORACLE\ORADATA\XE\TEMP.DBF
2560 TEMP
FILE_NAME
--------------------------------------------------------------------------------
BLOCKS TABLESPACE_NAME
---------- ------------------------------
C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\DATABASE\DONHUVY_TEMPORARY_TABLE_SP
ACE
640 DONHUVY_TEMPORARY_TABLESPACE
7 rows selected.
SQL>
答案 0 :(得分:0)