How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Ako Drop Tablespace a Recover Oracle Database Kedy Náhodne Odstrániť datafile
Accident may happens, even though it's costly one. Úrazové mája sa deje, aj keď je to nákladné jedna. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. To je najmä prípad v Oracle databáze, ktorá je uložená databázy objektov fyzicky v dátových súborov na pevnom disku. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Rýchle ruky Správcovia môžu náhodne odstrániť niektoré z datafiles alebo datafiles môže dôjsť k poškodeniu alebo nečitateľné na pevný disk zlyhania. You may get also some missing datafiles after database recovery process. Môžete si tiež niektoré chýbajúce datafiles po obnovení databázy procesu. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. V každom prípade, chýba jeden alebo niekoľko málo datafiles spôsobí Oracle databáze padnúť na štarte, čím sa celý NR neprístupný.
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. Riešením chýbajúce datafiles je kvapka postihnutých Tablespace, kde má datafiles neúplné, a potom znova v Tablespace a import dát do Tablespace zo zálohy. However, the steps are not so straight forward. Avšak, nie sú to kroky vpred.
- Run SQL*Plus. Spustiť SQL * Plus.
- Connect to database as SYSDBA with this query: Pripojenie k databáze, SYSDBA s týmto dotazom:
CONNECT / AS SYSDBA CONNECT / AS SYSDBA
- Mount the database instead of starting it up: Mount databázy namiesto začína to:
STARTUP MOUNT; StartUp MOUNT;
- Issue the following command to bring the missing datafile offline so that Oracle won't trying to connect and access the datafile anymore: Zadajte nasledovný príkaz, aby sa chýbajúca datafile offline tak, že Oracle nebude snažíte pripojiť, a prístup k datafile už:
ALTER DATABASE DATAFILE '<datafile name with complete path>' OFFLINE DROP; ALTER DATABASE datafile '<datafile meno s kompletnou cesta' Offline DROP;
Repeat the command for every datafiles that unaccounted for. Zopakujte príkaz pre každý datafiles že nezvestní.
- Now start the database proper: Teraz spustite databáze správne:
ALTER DATABASE OPEN; ALTER DATABASE OPEN;
- As the tablespace has damaged, drop it to recreate from fresh backup. Vzhľadom k tomu, že má poškodený Tablespace, kvapku to znova z čerstvej posily.
DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; DROP Tablespace <tablespace Name> vrátane obsahu;
- Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. Zabezpečenie ďalších datafiles pre Tablespace bol zmazaný, ak nie, odstráňte ručne z operačného systému.
Tip: Tip: How to check datafiles that belong to tablespace Ako skontrolovať datafiles, ktoré patria do Tablespace . .
- Continue with the recovery process. Pokračovať v procese obnovy.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.
Related Articles Súvisiace články
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Ako odstrániť a Drop Datafiles z Tablespace v Oracle Database
- How to Rename or Move Oracle Tablespace Datafile to Another Location Ako premenovať alebo presunúť Oracle Tablespace datafile na iné miesto
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Nemožno vytvoriť POČIATOČNEJ Rozsah za Segment v Tablespace Chyba
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Dočasné Tablespace je prázdny Chyba v Oracle
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Odstrániť, Vymaza alebo Drop Oracle Skladované Packages s Drop balík
- Change Oracle Database User Password Zmeniť Oracle Database Užívateľ Heslo
- Oracle Database Link Oracle Database Link
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop Tabuľka Chyba
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Vytvoriť, Pridať alebo Split Oracle Database oddiel nerozumie s ORA-14080 Chyba
- Oracle Database Import Error 3113/3114 Oracle Database Import Chyba 3113/3114










































May 21st, 2009 10:08 21. mája 2009 10:08
Exactly what I needed! Presne to, čo som potreboval! Thanks for saving what seemed to be a wretched issue! Vďaka za záchranu, čo sa zdalo byť nešťastný problém!
April 20th, 2009 20:47 20. apríla 2009 20:47
thanks a million. Tisíceré vďaka.
ura life saver adris záchranca života
February 19th, 2009 06:49 19. február 2009 06:49
This is a life saver …. To je život, šetriče .... this works fine in oracle 10G HP itenium (or any where else). toto funguje v Oracle 10g HP itenium (alebo akýkoľvek iný, kde).
great doc. veľký doc.
thanks vďaka
Dewan Gazzali Dewan Gazzali
December 17th, 2008 13:53 17 december 2008 13:53
*2nds last post* * 2nds posledný príspevok *
November 6th, 2008 06:15 6. novembra 2008 06:15
You are a life saver!!!!!! Ste záchranca života !!!!!!
October 28th, 2008 03:09 28. októbra 2008 03:09
I ran a script to create a user w/o checking it closely enough. Spustil som skript pre vytvorenie užívateľského w / o kontrole je úzko dost. Next thing you know, my db won't start because it is looking for a data file that doesn't exist. Ďalšia vec, viete, my db nezačne, pretože sa hľadá súbor údajov, ktorý neexistuje. This tip helped me get around the error quickly. Tento tip mi pomohol dostať okolo chybu rýchlo. Thanks for posting it. Vďaka za to vysielania.
October 9th, 2008 02:31 9. októbra 2008 02:31
Thank you for taking the time to post this very valuable information. Ďakujeme Vám za čas, aby po tejto veľmi cenné informácie.
September 2nd, 2008 00:31 2. septembra 2008 00:31
Thank you very much, this was really helpful. Děkuji mnohokrát, to bolo naozaj užitočné.
I had problems dropping the tablespace, i had to drop the user also. Mal som problémy pád Tablespace, já musel klesnúť Užívateľovi tiež.
July 8th, 2008 19:31 8. júla 2008 19:31
This info helped us to a very great extent and hence we are able to proceed further smoothly. Tieto informácie nám pomohli veľmi veľkej miere, a preto sme schopní plynulo pokračovať ďalej.
April 2nd, 2008 18:27 2. apríla 2008 18:27
These are only to drop the TS Sú to len kvapka v TS
but not to recover… ale nie na vrátenie ...
hence the worst…. tým najhorším ....
August 4th, 2007 02:57 4. august 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. [...]- Li jeden alebo viac datafiles chýba po obnovení procesu alebo náhodného vymazanie, môžete použiť ALTER DATABASE datafile <datafile Name> Offline DROP príkaz, aby sa datafile offline tak, že databáze možno začína až po ktorom sa môžu zkormoutil Tablespace sa zníži. (See instruction to recover from missing datafiles.) [...] (Pozri pokyn, na zotavenie sa zo chýbajúce datafiles.) [...]