DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: i need the name of datafiles

  1. #1
    Join Date
    Nov 2000
    Posts
    440
    Is there a table or view that contain only the name of the datafile(without the path)?

    select file_name from dba_data_files;
    D:\ORA8I\ORANT\ORADATA\ORCL\SYSTEM01.DBF



    I now that i could play with character function to get the name, but i prefer a nice select if there's a column that contains only the name.


  2. #2
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    nope, it is unuseful for Oracle ...
    find the complete path in v$datafile, and you'll have to use instr & substr

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width