Solved

Rename Oracle  Datafile

Posted on 2006-07-12
3
1,347 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

734 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