Q

Moving dbf files

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.

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.

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

Dig deeper on Oracle database backup and recovery

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close