How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kaip upuść Tablespace ir Atkurti duomenų bazę Oracle Kai atsitiktinai Ištrinti Datafile
Accident may happens, even though it's costly one. Nelaimingų atsitikimų gegužė atsitinka, nors tai brangu viena. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Tai ypač jei į Oracle duomenų bazės, kurioje saugomi duomenų bazėje objektai fiziškai duomenų failus kietajame diske. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Greitas ranka administratoriai gali atsitiktinai ištrinti kai kuriuos datafiles arba datafiles gali gauti sugadintas ar neįskaitomas dėl kietojo disko gedimo. You may get also some missing datafiles after database recovery process. Jūs galite gauti taip pat kai kurių trūkstamų datafiles po bazėje atsigavimo procesui. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. Bet kuriuo atveju, trūksta arba kelias datafiles bus Oracle duomenų bazės ir nepavyksta paleisti, teikti visą BP nepasiekiamas.
The solution to the missing datafiles is to drop the affected tablespace where has incomplete datafiles, and then recreate the tablespace and import the data into the tablespace from backup. Tirpalo trūkstamas datafiles yra lašas nukentėjo tablespace kur yra neišsami datafiles, tada vėl tablespace ir importuoti duomenis į tablespace iš atsarginės kopijos. However, the steps are not so straight forward. Tačiau veiksmus, nėra taip tiesiai prieš save.
- Run SQL*Plus. Vykdyti SQL * Plus.
- Connect to database as SYSDBA with this query: Prisijungti prie duomenų bazės su SYSDBA šią užklausą:
CONNECT / AS SYSDBA CONNECT / AS SYSDBA
- Mount the database instead of starting it up: Mount duomenų bazėje pradėti jį:
STARTUP MOUNT; Paleistis MOUNT;
- Issue the following command to bring the missing datafile offline so that Oracle won't trying to connect and access the datafile anymore: Numeris šią komandą, kad trūkstamų datafile atjungties kad Oracle nebus bandote prisijungti ir naudotis datafile daugiau:
ALTER DATABASE DATAFILE '<datafile name with complete path>' OFFLINE DROP; ALTER DATABASE DATAFILE "<datafile pavadinimas visiškai path>" Offline DROP;
Repeat the command for every datafiles that unaccounted for. Kartokite komandą kas datafiles, kad dingo be vesti.
- Now start the database proper: Dabar belieka tik paleisti duomenų bazės tinkamą:
ALTER DATABASE OPEN; ALTER DATABASE ATVIRAS;
- As the tablespace has damaged, drop it to recreate from fresh backup. Kadangi tablespace pakenkė, išskleidžiamajame jį atkurti iš šviežios kopijos.
DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; DROP TABLESPACE <tablespace pavadinimas ĮSKAITANT TURINYS;
- Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. Užtikrinti kitų datafiles už tablespace buvo pašalintas, jei ne, juos pašalinti rankiniu būdu nuo operacinės sistemos.
Tip: Patarimas: How to check datafiles that belong to tablespace Kaip patikrinti datafiles kad priklauso tablespace . .
- Continue with the recovery process. Tęsti su išieškojimo proceso.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kaip pašalinti ir upuść Datafiles iš Tablespace į duomenų bazę Oracle
- How to Rename or Move Oracle Tablespace Datafile to Another Location Kaip pervardyti ar perkelti Oracle Tablespace Datafile į kitą vietą
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error "Oracle" ORA-01658 Nepavyko sukurti PRADINė mastas už Segmentas į Tablespace Klaida
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Laikinosios Tablespace tuščias Klaida Oracle
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Ištrinti, pašalinti ar upuść Oracle Saugojamų Paketai su upuść paketo
- Change Oracle Database User Password Keisti Oracle Vartotojas Slaptažodis
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Table Klaida
- Oracle Database Link Oracle Nuoroda
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Naujas, Pridėti arba Splitu Oracle Pasiskirstymo fails su ORA-14080 Klaida
- Oracle Database Import Error 3113/3114 Oracle Importo Klaida 3113/3114










































May 21st, 2009 10:08 Gegužė 21, 2009 10:08
Exactly what I needed! Lygiai ką reikia! Thanks for saving what seemed to be a wretched issue! Dėkojame už taupymo, kas atrodė Apgailėtinus klausimą!
April 20th, 2009 20:47 Balandis 20, 2009 20:47
thanks a million. Thanks a million.
ura life saver ura gyvenimo Saugotojai
February 19th, 2009 06:49 Vasaris 19, 2009 06:49
This is a life saver …. Tai gyvenimo užsklandą .... this works fine in oracle 10G HP itenium (or any where else). tai veikia gerai, Oracle 10g HP itenium (ar bet kur kitur).
great doc. didelis dok.
thanks ačiū
Dewan Gazzali Dewan Gazzali
December 17th, 2008 13:53 Gruodis 17, 2008 13:53
*2nds last post* * 2nds paskutinė žinutė *
November 6th, 2008 06:15 M. lapkričio 6 2008 06:15
You are a life saver!!!!!! Jūs esate gyvenimą taupymo !!!!!!
October 28th, 2008 03:09 Spalis 28, 2008 03:09
I ran a script to create a user w/o checking it closely enough. I ran scenarijų sukurti vartotoją w / o tikrinant ji glaudžiai pakankamai. Next thing you know, my db won't start because it is looking for a data file that doesn't exist. Kitas dalykas, kad jūs žinote, mano db nebus, nes ji ieško duomenų bylą, kuri neegzistuoja. This tip helped me get around the error quickly. Šis patarimas padėjo man išvengti klaidos greitai. Thanks for posting it. Thanks for posting it.
October 9th, 2008 02:31 Spalis 9, 2008 02:31
Thank you for taking the time to post this very valuable information. Ačiū, kad radote laiko rašyti tai labai vertinga informacija.
September 2nd, 2008 00:31 Rugsėjis 2, 2008 00:31
Thank you very much, this was really helpful. Thank you very much, tai buvo labai naudingas.
I had problems dropping the tablespace, i had to drop the user also. Aš turėjau problemų paliekant tablespace, ir turėjo palikti naudotojas.
July 8th, 2008 19:31 8 liepa 2008 19:31
This info helped us to a very great extent and hence we are able to proceed further smoothly. Ši informacija padėjo mums labai didele dalimi ir tokiu būdu mes galėsime tęsti sklandžiai.
April 2nd, 2008 18:27 Balandis 2, 2008 18:27
These are only to drop the TS Tai yra tik lašas TS
but not to recover… bet ne susigrąžinti ...
hence the worst…. taigi blogiausiu ....
August 4th, 2007 02:57 Rugpjūčio 4 2007 02:57
[...] If one or more datafiles is missing after a recovery process or accidental deletion, you can use ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP command to make the datafile offline so that database can starts up after which the troubled tablespace can be dropped. [...] Jei viena ar daugiau datafiles nėra po regeneravimo proceso ar netyčia ištrinti, galite naudoti ALTER DATABASE DATAFILE <datafile pavadinimas Offline DROP komanda padaryti datafile neprisijungus, kad duomenų bazė pradeda po kurių Trikdė tablespace gali būti nutrauktas. (See instruction to recover from missing datafiles.) [...] (Žiūrėkite instrukcijas tam, kad susigrąžintų iš trūkstamų datafiles.) [...]