How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Kā Drop Tablespace un atgūt Oracle Database Kad nejauši Dzēst Datafile

Accident may happens, even though it's costly one. Negadījumu maijs notiek, pat ja tas ir dārgs vienu. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Tas jo īpaši attiecas uz Oracle datu bāzi, kurā uzglabā Datubāzes objekti fiziski datu failus uz cietā diska. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Ātrās puses administrators var nejauši izdzēst dažas no datafiles, vai datafiles var kļūt bojāts vai nelasāms, uz cietā diska kļūmi. You may get also some missing datafiles after database recovery process. Jums var rasties arī daži trūkstoši datafiles pēc datubāzē atgūšanās procesu. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. Jebkurā gadījumā, missing a vai daži datafiles radīs Oracle datu bāzi, lai nepilda starta, padarot visu BP pieejams.

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. Risinājums, lai trūkstošās datafiles ir piliens skartā tablespace kur ir nepilnīgs datafiles, un pēc tam atjaunotu tablespace un importa datu iekļaušanu tablespace no backup. However, the steps are not so straight forward. Tomēr, pakāpieni ir ne tik taisni uz priekšu.

  1. Run SQL*Plus. Run SQL * Plus.
  2. Connect to database as SYSDBA with this query: Izveidojiet savienojumu ar datu bāzē, kā SYSDBA ar šo jautājumu:

    CONNECT / AS SYSDBA Pievienojiet / AS SYSDBA

  3. Mount the database instead of starting it up: Mount Datubāzes nevis sākot 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: Issue šādu komandu, lai nodrošinātu trūkstošo datafile bezsaistē lai Oracle netiks mēģina savienot un piekļūt datafile vairs:

    ALTER DATABASE DATAFILE '<datafile name with complete path>' OFFLINE DROP; ALTER DATABASE DATAFILE "<datafile vārds ar pilnīgu path>" Offline DROP;

    Repeat the command for every datafiles that unaccounted for. Atkārto komandu par katru datafiles, ka neuzskaitītos par.

  5. Now start the database proper: Tagad sākas Datubāzes pienācīgu:

    ALTER DATABASE OPEN; ALTER DATABASE OPEN;

  6. As the tablespace has damaged, drop it to recreate from fresh backup. Tā kā tablespace ir bojāts, piliens tā, lai atjaunotu no svaigas backup.

    DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; DROP TABLESPACE <tablespace nosaukums> IESKAITOT SATURS;

  7. Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. Nodrošināt citas datafiles par tablespace ir izdzēsts, ja ne, izņemiet tos manuāli no operētājsistēmu.

    Tip: Padoms: How to check datafiles that belong to tablespace Kā pārbaudīt datafiles, kas pieder tablespace . .

  8. Continue with the recovery process. Turpināt atgūšanas process.

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


11 Responses to “How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile” 11 Atbildes uz "Kā Drop Tablespace un atgūt Oracle Database Kad nejauši Dzēst Datafile"

  1. Dan Dan
    May 21st, 2009 10:08 Maijs 21, 2009 10:08
    11 11

    Exactly what I needed! Tieši to, ko es vajadzīgi! Thanks for saving what seemed to be a wretched issue! Paldies par taupīšanu, kādi šķiet, ka ir slikts jautājums!

  2. lara Lara
    April 20th, 2009 20:47 Aprīlis 20, 2009 20:47
    10 10

    thanks a million. thanks a million.
    ura life saver ura dzīves Saver

  3. Dewan Gazzali Dewan Gazzali
    February 19th, 2009 06:49 Februāris 19, 2009 06:49
    9 9

    This is a life saver …. Tas ir dzīves Saver .... this works fine in oracle 10G HP itenium (or any where else). tas darbojas naudassodu Oracle 10g HP itenium (vai tās, kur citur).
    great doc. liels doc.
    thanks pateicība
    Dewan Gazzali Dewan Gazzali

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

    *2nds last post* * 2nds pēdējā ziņa *

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

    You are a life saver!!!!!! Jūs esat dzīvības Saver !!!!!!

  6. mark zīme
    October 28th, 2008 03:09 Oktobris 28, 2008 03:09
    6 6

    I ran a script to create a user w/o checking it closely enough. Man bija skripts, lai radītu lietotājam w / o pārbaudīt to cieši pietiekami. Next thing you know, my db won't start because it is looking for a data file that doesn't exist. Nākamā lieta, jūs zināt, mana db nevar uzsākt, jo tā meklē datu datni, ka neeksistē. This tip helped me get around the error quickly. Tas tip palīdzēja man iegūt ap kļūda ātri. Thanks for posting it. Thanks for posting to.

  7. Steve Steve
    October 9th, 2008 02:31 9 oktobris, 2008 02:31
    5 5

    Thank you for taking the time to post this very valuable information. Paldies, ka veltījāt laiku, lai pēc šo ļoti vērtīgu informāciju. :)

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

    Thank you very much, this was really helpful. Thank you very much, tas bija patiešām noderīga.
    I had problems dropping the tablespace, i had to drop the user also. Man bija problēmas, atmetot tablespace, i bija nometiet lietotājs arī.

  9. ravisha ravisha
    July 8th, 2008 19:31 Jūlijs 8, 2008 19:31
    3 3

    This info helped us to a very great extent and hence we are able to proceed further smoothly. Šī informācija palīdzēja mums ir ļoti lielā mērā, un tāpēc mums ir iespēja turpināt nevainojami.

  10. LP LP
    April 2nd, 2008 18:27 Aprīlis 2, 2008 18:27
    2 2

    These are only to drop the TS Šīs ir tikai nometiet TS

    but not to recover… bet neatgūt ...

    hence the worst…. tātad sliktākajā ....

  11. How to Remove and Drop Datafiles from Tablespace in Oracle Database » My Digital Life Kā noņemt un Drop Datafiles no Tablespace in Oracle Database »Mans Digital Life
    August 4th, 2007 02:57 Augusts 4, 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. [...] Ja viena vai vairākas datafiles trūkst pēc atgūšanas procesa vai nejaušu izdzēšanu, varat izmantot ALTER DATABASE DATAFILE <datafile nosaukums> Offline DROP komanda, lai datafile bezsaistes tā, ka datu bāzē var sākšanas, pēc kura nemierīgajā tablespace var jāatceļ. (See instruction to recover from missing datafiles.) [...]

Leave a Reply Atstāj atbildi

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> Jūs varat izmantot šos tagus: <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. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Lai saņemtu paziņojumu par jaunāko komentāri norīkots darbā, abonēt My Digital Life Comments RSS feed Mani Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Incoming Meklēt Noteikumi par pants

recover tablespace oracle atgūt tablespace orākuls - -- alter tablespace offline drop mainīt tablespace bezsaistes piliens - -- drop tablespace offline piliens tablespace bezsaistē - -- drop tablespace piliens tablespace - -- drop tablespace oracle piliens tablespace orākuls - -- drop tablespace force piliens tablespace spēkā - -- oracle restore datafile orākuls atjaunot datafile - -- oracle startup database without tablespace orākuls starta datu bāzē tablespace - -- oracle database file recovery Oracle datu bāzes failu atgūšana - -- restore drop tablespace atjaunot piliens tablespace - -- alter database drop tablespace mainīt datu bāzē piliens tablespace - -- drop oracle datafile piliens orākuls datafile - -- offline drop bezsaistes piliens - -- recover oracle tablespace atgūt orākuls tablespace - -- restore oracle tablespace atjaunot orākuls tablespace - -- oracle drop deleted tablespace orākuls piliens svītrots tablespace - -- drop tablespace including contents piliens tablespace ieskaitot saturs - -- force drop tablespace oracle spēkā piliens tablespace orākuls - -- how to restore datafile in oracle to, kā atjaunot datafile in orākuls - -- oracle offline drop tablespace orākuls bezsaistes piliens tablespace - -- recovery data file +oracle reģenerācijas datu datni + orākuls - -- recover dropped tablespace without catalog atgūt samazinājās tablespace bez katalogā - -- how to recover a tablespace oracle kā atgūt tablespace orākuls - -- dropping tablespace in oracle pilināmā tablespace in orākuls - -- recover tablespace after drop atgūt tablespace pēc piliens - -- recover oracle database atgūt Oracle datu bāze - -- recovering data file in oracle atgūt datu failu orākuls - -- tablespace offline drop tablespace bezsaistes piliens - -- data file offline + dropping + oracle datu datne bezsaistes + pilināmā + orākuls - -- drop tablespace force oracle piliens tablespace spēkā orākuls - -- drop tablespace mount piliens tablespace mount - -- how to delete Oracle data files Kā izdzēst Oracle datu failus - -- oracle drop tablespace orākuls piliens tablespace - -- recover the corrupted data files in Oracle Databases atgūt bojāti datnēm Oracle datu bāzes - -- recover a tablespace which is dropped in oracle 10g piedzīt tablespace, kas ir kritušās Oracle 10g - -- drop tablespace recovery piliens tablespace atgūšana - -- how to recover tablespace kā atgūt tablespace - -- offline drop datafile ( oracle ) bezsaistes piliens datafile (Oracle) - -- oracle datafile recovery orākuls datafile atgūšana - -- recovery tablespace oracle reģenerācijas tablespace orākuls - -- recover tablespace in oracle atgūt tablespace in orākuls - -- restore database file oracle atjaunot datubāzi failu orākuls - -- sap how to add missing oracle datafile SAP kā pievienot trūkstošu orākuls datafile - -- delete offline datafiles izdzēst bezsaistes datafiles - -- Oracle Offline Datafile Oracle Offline Datafile - -- recover tablespace oracle 9i atgūt tablespace orākuls 9.i - -- database mount offline tablespace Datubāzes mount bezsaistes tablespace - -- oracle9i restore dropped datafile oracle9i atjaunot samazinājās datafile - -- Oracle recover datafile Oracle atgūt datafile - -- how to drop recover status of datafile in oracle kā piliens atgūt statusu datafile in orākuls - --