cancel
Showing results for 
Search instead for 
Did you mean: 

Datafile rename?

Former Member
0 Kudos

Hi,

While adding a new datafile to a tablespace using brtools, I mistakenly added <tspname>.data instead of <tspname>.data2 while copy/paste. I want to change it to the right naming convention.

How can I do it?

Thanks in advance.

Cyrus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Cyrus,

1:Connect to the database as SYSTEM.

2:Bring the tablespace offline:

sql>alter tablespace TOOLS offline;

3:Copy the datafile to the new location at the OS file system level:

!cp /ora006/oradata/FTWT29OR/tools.dbf \

/ora007/oradata/FTWT29OR/tools.dbf

4:Rename the datafile on Oracle:

sql>alter database

rename file '/ora006/oradata/FTWT29OR/tools.dbf'

to '/ora007/oradata/FTWT29OR/tools.dbf';

5:Bring the tablespace online:

sql>alter tablespace TOOLS online;

Note :Here I took example as tools tablespace.

Let me know the result.

Regards

Vinod

Former Member
0 Kudos

Hi friendz,

what i will do when the swaps occured in the database.

regards

Raju

Former Member
0 Kudos

Dear Raj,

Hopw its regarding memory ...

If ur issue is with swap you can add temporary swap space by creating a temporary swap file.

Let me know is this was ur concern.

Vinod