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 last published in July 2006

Dig Deeper on Oracle database backup and recovery

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close