Solved

Rename Oracle  Datafile

Posted on 2006-07-12
3
1,317 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
3 Comments
 
LVL 8

Expert Comment

by:gvsbnarayana
Comment Utility
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
Comment Utility
.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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now