Dropping Tablespaces with missing datafiles
Hi...
Does anyone know how i can drop a tablespace when the actual data file assocaited with that tablespace is no longer there. Somehow the data file has been deleted but the tablespace still exists. When i use the normal drop command says it can't access the data file.
I have seen this being done before when someone used SVRMGRL command and dropped the tablespace through there but can't wuite remeber how they did it any clues anyone?
Thanks
Re: Dropping Tablespaces with missing datafiles
Quote:
Originally posted by hummy
Hi...
Somehow the data file has been deleted but the tablespace still exists. When i use the normal drop command says it can't access the data file.
Thanks
This sounds almost impossible.....
When the tablespace is online it would have obiviously locked all its datafiles....& when file is locked at OS level you just cant delete/rename/move the file.
I wonder how on earth ( may it be any OS ) lets you delete file when locked?
Can any one tell how this can be done...Tried to simulate the problem but it seems almost impossible.
Abhay.
Re: Re: Dropping Tablespaces with missing datafiles
Quote:
Originally posted by abhaysk
This sounds almost impossible.....
When the tablespace is online it would have obiviously locked all its datafiles....& when file is locked at OS level you just cant delete/rename/move the file.
I wonder how on earth ( may it be any OS ) lets you delete file when locked?
Can any one tell how this can be done...Tried to simulate the problem but it seems almost impossible.
Abhay.
U R on windows OS I guess :p :p :p :D :D :D
Re: Re: Re: Dropping Tablespaces with missing datafiles
Quote:
Originally posted by nagarjuna
U R on windows OS I guess :p :p :p :D :D :D
wass big deal...and y r u so amused?
making all such faces?????
i dont see any point....
Abhay.
Re: Re: Re: Re: Dropping Tablespaces with missing datafiles
Quote:
Originally posted by abhaysk
wass big deal...and y r u so amused?
making all such faces?????
i dont see any point....
Abhay.
:p :p :p :D :D :D
Quote:
Originally posted by abhaysk
This sounds almost impossible.....
When the tablespace is online it would have obiviously locked all its datafiles....& when file is locked at OS level you just cant delete/rename/move the file.
I wonder how on earth ( may it be any OS ) lets you delete file when locked
:p :p :p :D :D :D
If you dont know, learn it.. Dont make sentences. Good DBAs should have patience. You dont have a bit of it. In UNIX, Oracle does not lock the files at OS level.
Re: Re: Re: Re: Re: Dropping Tablespaces with missing datafiles
Quote:
Originally posted by nagarjuna
:p :p :p :D :D :D
:p :p :p :D :D :D
If you dont know, learn it.. Dont make sentences. Good DBAs should have patience. You dont have a bit of it. In UNIX, Oracle does not lock the files at OS level.
i do have patientence.....
now unix dosent lock the file even though its in use??
thats rediculous....i dont have knowledge in unix but wass the point in not locking a file even if it is in use....
If this is the case then I would better reley on Windows...
Abhay.
Re: Re: Re: Re: Re: Dropping Tablespaces with missing datafiles
Quote:
Originally posted by nagarjuna
:p :p :p :D :D :D
:p :p :p :D :D :D
If you dont know, learn it.. Dont make sentences. Good DBAs should have patience. You dont have a bit of it. In UNIX, Oracle does not lock the files at OS level.
Dear Nagarjuna
Sorry to comment on this but this forum is for people to find answers they do not know. And Abhay has been very helpful in this forum for many . And also you can see in many threads how he uses his language and has many times told many gurus not to use terms like 'RTFM' and acknowldges tehm to use 'RTM'. Maybe your a great DBA but see Abhay has posted twice asmuch as you have. Pls dont feel hurt. I am sorry if i have hurt you. Staying in madras(Merina pola sugam kedaikuma) has to be cool man. We are all trying to survive in deserts. All the best for your great career.God bless you
Dear Abhay
my heartiest applauses your simply great.