Solved

Rename Oracle  Datafile

Posted on 2006-07-12
3
1,352 Views
Last Modified: 2013-12-11
I accidently named a datafile NEWIMAGE_IMAGE05.URA instead of NEWIMAGE_IMAGE05.ORA

First  question is, how can I rename this datafile without taking the tablespace off line.

The Second Question is, what negative impact will it have on the tablespace, data retrival and data input in this wrongly named datafile.

Please send me e-mail notification at Kamal.Agnihotri@StanleyAssociates.com

Thanks


Kamal Agnihotri

0
Comment
Question by:KamalAgnihotri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Expert Comment

by:gvsbnarayana
ID: 17092568
Hi,
  I don't think that you will be able to rename a datafile without taking a tablespace offline. You should take the tablespace offline to do this.
There will not be any negative impact with renaming a datafile but you may need to take a full database backup after renaming a datafile.
HTH
Regards,
Badri.
0
 
LVL 14

Accepted Solution

by:
sathyagiri earned 50 total points
ID: 17094329
.ORA is just the OFA architecure compliant naming convention. It will not have any impact on your data retrival or anything.
Steps to rename data file
SVRMGR> alter tablespace app_data offline;
SVRMGR> alter tablespace app_date rename datafile '/u01/oracle/U1/data01.dbf ' TO '/u02/oracle/U1/data04.dbf ' ;
SVRMGR> alter tablespace app_data online;
0
 
LVL 16

Expert Comment

by:MohanKNair
ID: 17145242
It is possible to rename datafile if the database is in archivelog mode

Take the datafile offline, rename datafile, synchronize SCN of  the datafile and make datafile online

SQL> alter database datafile '<file name>' OFFLINE;
SQL> alter database RENAME FILE '<old file name>'   TO '<new file name>' ;
SQL> recover database;
SQL>alter database datafile '<new file name>' ONLINE;
SQL>
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question