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.
- Run SQL*Plus. Run SQL * Plus.
- 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
- Mount the database instead of starting it up: Mount Datubāzes nevis sākot 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: 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.
- Now start the database proper: Tagad sākas Datubāzes pienācīgu:
ALTER DATABASE OPEN; ALTER DATABASE OPEN;
- 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;
- 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 . .
- 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.
Related Articles Saistītie raksti
- How to Remove and Drop Datafiles from Tablespace in Oracle Database Kā noņemt un Drop Datafiles no Tablespace in Oracle Database
- How to Rename or Move Oracle Tablespace Datafile to Another Location Kā, lai pārdēvētu vai Move Oracle Tablespace Datafile uz citu vietu
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error Oracle ORA-01658 Nevar izveidot SĀKOTNĒJO mērā segmentā Tablespace kļūdu
- ORA-25153 Temporary Tablespace is Empty Error in Oracle ORA-25153 Pagaidu Tablespace ir tukšs Kļūda Oracle
- Delete, Remove or Drop Oracle Stored Packages with Drop Package Svītrot, noņemt vai Drop Oracle Uzglabātajos komplekti ar Drop Package
- Change Oracle Database User Password Maina Oracle Database Lietotājs Parole
- ORA-02449 Oracle Drop Table Error ORA-02449 Oracle Drop tabula kļūdu
- Oracle Database Link Oracle Database Link
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error Izveidojiet, Pievienot vai Split Oracle Database Sadalīšanās neizpratni ar ORA-14080 Error
- Oracle Database Import Error 3113/3114 Oracle Database Import Error 3113/3114










































May 21st, 2009 10:08 Maijs 21, 2009 10:08
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!
April 20th, 2009 20:47 Aprīlis 20, 2009 20:47
thanks a million. thanks a million.
ura life saver ura dzīves Saver
February 19th, 2009 06:49 Februāris 19, 2009 06:49
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
December 17th, 2008 13:53 Decembris 17, 2008 13:53
*2nds last post* * 2nds pēdējā ziņa *
November 6th, 2008 06:15 Novembris 6, 2008 06:15
You are a life saver!!!!!! Jūs esat dzīvības Saver !!!!!!
October 28th, 2008 03:09 Oktobris 28, 2008 03:09
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.
October 9th, 2008 02:31 9 oktobris, 2008 02:31
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.
September 2nd, 2008 00:31 Septembris 2, 2008 00:31
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ī.
July 8th, 2008 19:31 Jūlijs 8, 2008 19:31
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.
April 2nd, 2008 18:27 Aprīlis 2, 2008 18:27
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ā ....
August 4th, 2007 02:57 Augusts 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. [...] 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.) [...]