how to construct a sql to grab datafile
Hi,
I have few datafiles appears to as below:
/u01/datafiles/m1/RFGbook2.dbf
/u01/data/df04/GTbook.dbf
/u01/mount1/gtr01/Bsbook01.dbf
I want to select just the datafile not the folder, for example in this case i want to show only below:
RFGbook2.dbf
GTbook.dbf
Bsbook01.dbf
I don't want all the folders.
I tried selecting from dba_data_files using substring but seems like substring required the number of character in front of the datafile to be same no. of character.
Is there a way for me select anything after the forth forward slash '/' which will derived the datafile?
0