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.

  1. Run SQL*Plus. Spustiť SQL * Plus.
  2. Connect to database as SYSDBA with this query: Pripojenie k databáze, SYSDBA s týmto dotazom:

    CONNECT / AS SYSDBA CONNECT / AS SYSDBA

  3. Mount the database instead of starting it up: Mount databázy namiesto začína to:

    STARTUP MOUNT; StartUp MOUNT;

  4. 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í.

  5. Now start the database proper: Teraz spustite databáze správne:

    ALTER DATABASE OPEN; ALTER DATABASE OPEN;

  6. 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;

  7. 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 . .

  8. 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é.


11 Responses to “How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile” 11 Reakcie na "Ako Drop Tablespace a Recover Oracle Database Kedy Náhodne Odstrániť datafile"

  1. Dan Dan
    May 21st, 2009 10:08 21. mája 2009 10:08
    11 11

    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!

  2. lara lara
    April 20th, 2009 20:47 20. apríla 2009 20:47
    10 10

    thanks a million. Tisíceré vďaka.
    ura life saver adris záchranca života

  3. Dewan Gazzali Dewan Gazzali
    February 19th, 2009 06:49 19. február 2009 06:49
    9 9

    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

  4. Nora Nora
    December 17th, 2008 13:53 17 december 2008 13:53
    8 8

    *2nds last post* * 2nds posledný príspevok *

  5. Michael Michael
    November 6th, 2008 06:15 6. novembra 2008 06:15
    7 7

    You are a life saver!!!!!! Ste záchranca života !!!!!!

  6. mark známka
    October 28th, 2008 03:09 28. októbra 2008 03:09
    6 6

    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.

  7. Steve Steve
    October 9th, 2008 02:31 9. októbra 2008 02:31
    5 5

    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. :)

  8. Cesar Cesar
    September 2nd, 2008 00:31 2. septembra 2008 00:31
    4 4

    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ž.

  9. ravisha ravisha
    July 8th, 2008 19:31 8. júla 2008 19:31
    3 3

    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.

  10. LP LP
    April 2nd, 2008 18:27 2. apríla 2008 18:27
    2 2

    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 ....

  11. How to Remove and Drop Datafiles from Tablespace in Oracle Database » My Digital Life Ako odstrániť a Drop Datafiles z Tablespace v Oracle Database »My Digital Life
    August 4th, 2007 02:57 4. august 2007 02:57
    1 1

    [...] 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.) [...]

Leave a Reply Nechaj Odpoveď

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Môžete použiť tieto značky: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Vyberajte komentáre funkcia bola vypnutá. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenie o najnovšie komentáre posta, prihláste sa My Digital Life Comments RSS feed My Digital Life Komentáre RSS or alebo register to receive register pre príjem new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Incoming Vyhľadávanie Podmienky pre článok

drop tablespace oracle kvapka Tablespace veštbami - -- drop tablespace kvapka Tablespace - -- alter database drop tablespace zmeniť databázu kvapka Tablespace - -- oracle drop tablespace Oracle kvapka Tablespace - -- drop tablespace force kvapka Tablespace platnosti - -- recover tablespace oracle späť Tablespace veštbami - -- recover tablespace späť Tablespace - -- offline drop offline kvapka - -- alter tablespace offline drop zmeniť Tablespace offline kvapka - -- tablespace offline drop Tablespace offline kvapka - -- drop tablespace offline kvapka Tablespace offline - -- recover oracle database späť Oracle Database - -- offline drop tablespace offline kvapka Tablespace - -- Oracle recover tablespace Oracle späť Tablespace - -- drop tablespace mount kvapka Tablespace kopci - -- how to recover tablespace ako obnoviť Tablespace - -- oracle restore tablespace Oracle obnoviť Tablespace - -- restore oracle tablespace obnoviť Oracle Tablespace - -- drop tablespace in oracle 10g kvapka Tablespace do Oracle 10g - -- drop tablespace in oracle kvapka Tablespace v Oracle - -- drop offline tablespace kvapka Tablespace offline - -- oracle missing datafile Oracle chýba datafile - -- oracle restore datafile Oracle obnoviť datafile - -- oracle mount drop tablespace Oracle kopci kvapka Tablespace - -- oracle database offline Oracle Database offline - -- oracle datafile drop Oracle datafile kvapka - -- oracle datafile recovery Oracle datafile využitie - -- recover oracle tablespace späť Oracle Tablespace - -- Oracle recover datafile Oracle späť datafile - -- dropping tablespace in oracle kvapkadlová Tablespace v Oracle - -- oracle delete tablespace Oracle odstrániť Tablespace - -- drop data file kvapka dátového súboru - -- how to recover oracle database ako obnoviť Oracle Database - -- oracle drop tablespace mount Oracle kvapka Tablespace kopci - -- recover tablespace in oracle späť Tablespace v Oracle - -- oracle drop tablespace offline Oracle kvapka Tablespace offline - -- recover oracle datafile späť Oracle datafile - -- import datafile oracle import datafile veštbami - -- REMOVE datafile oracle REMOVE datafile veštbami - -- how to drop tablespace in oracle ako kvapka v Tablespace veštbami - -- drop tablespace oracle command kvapka Tablespace Oracle príkaz - -- datafile offline drop datafile offline kvapka - -- force drop tablespace oracle účinnosť kvapka Tablespace veštbami - -- how to restore datafile in oracle ako obnoviť datafile v Oracle - -- oracle offline drop tablespace veštbami offline kvapka Tablespace - -- oracle startup database without tablespace Oracle spustenie databázy Tablespace - -- oracle drop tablespace force Oracle kvapka Tablespace platnosti - -- oracle database file recovery Oracle Database súbor vymáhanie - -- oracle missing tablespace Oracle chýba Tablespace - -- restore dropped tablespace obnoviť klesli Tablespace - --