ORA-01537。我想搜索包含文件的位置

时间:2014-10-21 05:34:23

标签: oracle

SQL> alter tablespace java add datafile 'd:/programming/java.dbf';
*
ERROR at line 1:
ORA-01537: cannot add file 'd:/programming/java.dbf' - file already part of database


SQL> select TABLESPACE_NAME,FILE_NAME,STATUS from dba_data_files
2  where FILE_NAME='%JAVA.DBF';
no rows selected.

我只想知道搜索文件所在位置的语句。

1 个答案:

答案 0 :(得分:1)

使用like代替=

select TABLESPACE_NAME, FILE_NAME,STATUS 
from dba_data_files
where UPPER(FILE_NAME) like '%JAVA.DBF';