![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have by accident added a datafile to the wrong tablespace. Can somebody tip me on how can I delete it again? |
|
(Never - ever start working before 1 cup of coffee :-) |
#2
| |||
| |||
|
|
Hey, at least this problem is better than the junior DBA some years ago who was suppose to add more space for me and forgot to add the M at the back of size.. giving me 2K of a raw device instead of 2GB.. Not that was a horror to fix. |


#3
| |||
| |||
|
|
Hi, I have by accident added a datafile to the wrong tablespace. Can somebody tip me on how can I delete it again? (Never - ever start working before 1 cup of coffee :-) Hanne |
#4
| |||
| |||
|
|
I'm not sure if this will work if the database is in archivelog mode. I tried this (8.1.7 archivelog): |
|
I may be missing something but then again I'M still on my first cup of coffee ![]() |
#5
| |||
| |||
|
|
Hi, I am using Oracle 8.1.4.x and have few records already stored in few tables that share the referential integrity property.... Now there is some major error in the frontend display for which i want to redo the entire display for which i need to first delete those records....But i am unable to delete hem freom either of those tables...I get the error message: - Error at Line 1: ORA 02292: integrity constraint (NSPAPP.sys_C006184)violated - child record found. Pls help me out... If i have emailed at the wrong zone pls guide me to the oracle newbie groups also then.... Thanks in advance, Divya Hi Divya |
#6
| |||
| |||
|
|
Hanne Iren Midttun <hannem (AT) tihlde (DOT) org> wrote Hi, I have by accident added a datafile to the wrong tablespace. Can somebody tip me on how can I delete it again? (Never - ever start working before 1 cup of coffee :-) Hanne An offline drop of the datafile should do it. alter datafile '/u01/oradata/myfile' offline drop It will be nice to take the necessary precautions though. Export all tables in the tablespace,backup, full export .... HTH Michael Tubuo Ngong |
#7
| |||
| |||
|
|
"Billy Verreynne" <vslabs (AT) onwe (DOT) co.za> wrote in message news:bd98dk$edf$1 (AT) ctb-nnrp2 (DOT) saix.net... Hey, at least this problem is better than the junior DBA some years ago who was suppose to add more space for me and forgot to add the M at the back of size.. giving me 2K of a raw device instead of 2GB.. Not that was a horror to fix. ![]() Why was the default ever K instead of M still baffles me.... ![]() -- Cheers Nuno Souto wizofoz2k (AT) yahoo (DOT) com.au.nospam |
#8
| |||
| |||
|
|
You can *never* drop a datafile from a tablespace once it's been added. Ever. And offline drop doesn't do it either. The only options are to shrink the file to a stupidly small size that is of no consequence, or to drop the tablespace and re-create it. ;-( "michael ngong" <mngong (AT) yahoo (DOT) com> wrote in message news:ecf365d5.0306240330.26f7a49a (AT) posting (DOT) google.com... Hanne Iren Midttun <hannem (AT) tihlde (DOT) org> wrote in message news:<Pine.LNX.4.21.0306240857470.31693-100000 (AT) colargol (DOT) tihlde.org>... Hi, I have by accident added a datafile to the wrong tablespace. Can somebody tip me on how can I delete it again? (Never - ever start working before 1 cup of coffee :-) Hanne An offline drop of the datafile should do it. alter datafile '/u01/oradata/myfile' offline drop It will be nice to take the necessary precautions though. Export all tables in the tablespace,backup, full export .... HTH Michael Tubuo Ngong |
![]() |
| Thread Tools | |
| Display Modes | |
| |