I would like to move the dbf files (user01.dbf, tools01.dbf, indx01.dbf, etc.) from one directory to another, as I want to make space in that directory. These files were created at the beginning. I want to know whether I can move these files. I am using SCO UnixWare 7.0.1 and Oracle 8.

    Requires Free Membership to View

You can move the files, but not while the database is using them. You can perform the moves by taking the tablespace offline, moving the file and then instructing Oracle of the new location. Use the following steps:

  1. ALTER TABLESPACE tools OFFLINE;
  2. Use OS commands to move tools01.dbf to its new location.
  3. ALTER DATABASE RENAME FILE '/old_directory/tools01.dbf' TO '/new_directory/tools01.dbf';
  4. ALTER TABLESPACE tools ONLINE;

Repeat for the other tablespaces.

This was first published in July 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: