rm datafile help
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: rm datafile help

  1. #1
    Join Date
    Mar 2001
    Posts
    78

    Post


    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

  2. #2
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    first one

  3. #3
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316

    Talking

    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.

  4. #4
    Join Date
    Feb 2001
    Location
    Paris, France
    Posts
    809
    that's why I said first : that way you don't mind where you are

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