ORACLE11 table space DBF File Migration

Source: Internet
Author: User

When the disk space for Oracle's data files is not sufficient or otherwise requires that the DBF file be migrated to a different location, here are the steps:

1, Sqlplus Sys/sys as Sysdba

2, Shutdown immediate

3. Copy dbf file to a new location

4, startup Mount;

5, ALTER DATABASE rename file ' E:\oracle\oradata\hqbi\EFMWEB03. DBF ' to ' G:\oradata\hqbi\EFMWEB03. DBF ';

The first file is a DBF file for the original tablespace, and the second is the new location

6, ALTER DATABASE open;

7. If the following error is reported:

An error occurred on line 1th:
ORA-01113: File 9 requires media recovery
ORA-01110: Data file 9: ' G:\ORADATA\HQBI\EFMWEB03. DBF '

You need to execute the following statement:

Recover DataFile ' G:\oradata\hqbi\EFMWEB03. DBF ';

Get!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.