Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Moving tables between tablespaces?
Imprecise wrote:
> In article <aff1pk$dod3k$1_at_ID-84852.news.dfncis.de>,
> "[ste parker]" <imaginey_at_hotmail.com> wrote:
>
>
>>Hi, >> I'm having a problem at the moment for which the solution is 1. >>Recompile a program, or 2. Change the tablespace that two tables reside in, >>so the program works as intended. >> >>1. Is difficult, as I don't have the source code, and if I did I'd have to >>set up a build environment, and unfortunately there's no time for that. >> >>2. Seems reasonable enough to me, but the DBA who would have to carry this >>out says he'd have to "restructure the whole database", which I thought odd. >>It might be a language thing, but I would have thought that it would be >>simple enough to create another tablespace with the same extents etc, just >>not called "AS" this time, then move the two tables into the new tablespace. >>If this is a bad/wrong/difficult thing to do, could someone please explain >>why to me? Also, if it isn't an unreasonable thing to do, can someone tell >>me exactly what needs to be done to do this (under Oracle 8.1.6), so I can >>put a proper proposal forward?
or you could just try
alter table <table_name> move tablespace <tablespace_name>;
you'll need to rebuild any indexes as they'll marked as unusable, and it won't work if there are any columns of type LONG in the tables being moved... Received on Thu Jun 27 2002 - 09:12:39 CDT