Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: [Q] how to online drop tempfile???
Mark Bole wrote:
> Howard J. Rogers wrote: >
>>>If I use same command when database open. It will >>>hang in there for ever. >>> >>>Can anyone tell me how to drop tempfile when database >>>open? >>> >>>Thanks.
> > Simpler than that... no need to alter default or drop/recreate tablespace. > > Just add a new tempfile to the existing temp tablespace, then drop the > old tempfile. > > --Mark Bole
You might care to check your newsreader! This was written weeks ago (I think!).
As for "simpler than that", care to share the secret on how you drop a tempfile? Whereas I can knock out the three lines of syntax I mentioned without even thinking about it, I'm stuffed if I can remember the syntax for dropping tempfiles! Getting old, I guess.
I get ORA-02142: missing or invalid ALTER TABLESPACE option if I try an "alter tablespace X drop tempfile '/path/name'" or an ORA-01900: LOGFILE keyword expected if I try an "alter database drop tempfile '/path/name'".
I could of course look it up... but then it stops being 'simple', doesn't it?
Regards
HJR
Received on Sun Sep 12 2004 - 20:51:22 CDT