SQL Language (MOSC)

MOSC Banner

string function help

edited Sep 23, 2010 7:56AM in SQL Language (MOSC) 6 commentsAnswered ✓
 select file_name from dba_data_files
where tablespace_name like 'ANYNAME';

FILE_NAME
--------------------------------------------------------------------
/ora01/oradata/dbname/mydata_dat/file_name_01.dbf

What string function could I use in the query above to return the full directory path minus the actual file name (everything before the last slash)?  Not using anything assuming fixed positions/length of course.

/ora01/oradata/dbname/mydata_dat

Thank you


Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center