ORA-01537. i want to search where the file is included

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

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.

i just want to know the statement searching where the file is included.

回答1:

Use like instead of =:

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


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!