-
I have a datafile called /u09/orac08/devt/db/devlopment_01.dbf. If I want to delete the above mentioned datafile, do I have to delete it from the mount point or just from where the file name starts? I mean should I follow the first example or the second example below
Example 1
-------------
rm /u09/orac08/devt/db/devlopment_01.dbf
Example 2
-----------
rm devt/db/devlopment_01.dbf
NOTE: The mount point /u09/orac08 has many files. The datafile that I want to delete is just one of them
-
-
It depends where you are executing the rm command from.
If you are within the dir that the file exists the you can just do:
/u09/orac08/devt/db> rm devlopment_01.dbf
-OR-
if you are at any mount point then this will always work:
rm /u09/orac08/devt/db/devlopment_01.dbf
The best way is to experiment with junk files - good luck.
-
that's why I said first : that way you don't mind where you are ;)