Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Moving datafiles
I believe Oracle 7.3.3 does not allow you to move datafiles only 7.3.4
and above do.
However the full command I use is:
log in to oracle as system via server manager
type in
select * from dba_data_files;
to find out what the tablespace is called I think the Oracle default is
user_data
alter tablespace user_data offline;
copy the file to the new location
alter tablespace rename datafile 'a' to 'b';
alter tablespace user_data online;
select * from dba_data_files;
to check to see if it has worked.
This should work, it does work for me.
-----Original Message-----
From: Terry Dykstra [mailto:tdykstra_at_cfol.ab.ca]
Posted At: 17 November 1999 16:11
Posted To: misc
Conversation: How do I move datafiles?
Subject: Re: How do I move datafiles?
After you've copied the file :
Mount the database and then use: alter database rename file 'a' to 'b'
--
Terry Dykstra
Canadian Forest Oil Ltd.
Check out Sybase Developer's Network: http://www.sybase.com/sdn
Terry wrote in message <80ujc7$e8e$1_at_ezekiel.eunet.ie>...
>
>
>Hi all
>
>Sorry, but bit of a newbie question here:
>
>Due to disk space problems it is required to move some of our datafiles
to
>new disks. I tried the following using 'Storage Manager' but failed:
>
>1. Take the tablespace where the datafiles are located offline (Normal
>offline)
>2. Copy the datafiles to the new disk
>3. Try to change the path location of the datafile
>
>All I achieved were Oracle errors telling me that it could not locate
the
>datafile with the new path location. I am presuming there is some
process
in
>place to achieve this but unfortunately I haven't had the chance to go
on a
>Oracle DBA course to learn this info, and won't have the time in the
>foreseeable future.
>
>Any help would be gratefully appreciated.
>
>Terry Maguire
>IIU
>IFSC House
>Custom House Quay
>Dublin 1
>Ireland
>
>
>
>
Received on Tue Nov 23 1999 - 12:37:41 CST
![]() |
![]() |