Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Blog Post

How to rename a Datafile with Extension .dbf?

How to rename a Datafile with Extension .dbf?

How to rename a Datafile with Extension .dbf?

For example we have  added a datafile but we forgot to give the extension .dbf

Step 1. Shut down the Database

SQL> shutdown immediate;

 

Step 2. Startup the Database in Mount State

SQL> startup mount

Step 3. Now copy the datafile by renaming it with .dbf extension

$cp /u01/app/oracle/user2  /u01/app/oracle/user2.dbf

 

Step 4. Now rename database file at Database Level

SQL> alter database rename file ‘/u01/app/oracle/user2’ to ‘/u01/app/oracle/user2.dbf’;

 

Step 5. Now Open the Database

SQL> alter database open;

 

 

Related Posts
Write a comment