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.
我只想知道搜索文件所在位置的语句。
答案 0 :(得分:1)
使用like
代替=
:
select TABLESPACE_NAME, FILE_NAME,STATUS
from dba_data_files
where UPPER(FILE_NAME) like '%JAVA.DBF';