How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile איך זרוק Tablespace ולשחזר Oracle Database כאשר בטעות מחק Datafile

Accident may happens, even though it's costly one. התאונה ייתכן קורה, אף אחד זה יקרה. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. הדבר נכון במיוחד במקרה במאגר נתונים אורקל, אשר מאחסן את אובייקטי מסד נתונים פיזית קבצי הנתונים בדיסק הקשיח. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. מנהלי היד מהירה עלולה בטעות למחוק חלק datafiles, או datafiles עשוי לקבל פגומה או בלתי קריא על כשל בדיסק הקשיח. You may get also some missing datafiles after database recovery process. אתה יכול לקבל גם כמה datafiles חסר לאחר תהליך שחזור מסד נתונים. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. בכל מקרה, חסרים או datafiles כמה יגרום מסד נתונים אורקל להיכשל ההפעלה, עיבוד DB נגיש כולו.

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. הפתרון הוא חסר datafiles עד טיפת tablespace מושפע שבו יש datafiles שלם, ולאחר מכן לשחזר את tablespace ו לייבא את הנתונים לתוך tablespace מן הגיבוי. However, the steps are not so straight forward. עם זאת, הצעדים הם לא כל כך ישר קדימה.

  1. Run SQL*Plus. הפעלה של SQL * Plus.
  2. Connect to database as SYSDBA with this query: להתחבר למסד הנתונים כפי SYSDBA עם שאילתה זו:

    CONNECT / AS SYSDBA CONNECT / AS SYSDBA

  3. Mount the database instead of starting it up: הר מסד הנתונים במקום להתחיל אותו:

    STARTUP MOUNT; הר STARTUP;

  4. Issue the following command to bring the missing datafile offline so that Oracle won't trying to connect and access the datafile anymore: הנושא את הפקודה הבאה להביא את מחובר datafile חסר כך אורקל לא מנסה להתחבר ולגשת datafile יותר:

    ALTER DATABASE DATAFILE '<datafile name with complete path>' OFFLINE DROP; ALTER DATABASE DATAFILE 'שם <datafile להשלים עם path>' OFFLINE DROP;

    Repeat the command for every datafiles that unaccounted for. חזור על הפקודה עבור כל datafiles כי לא נכלל בספירה עבור.

  5. Now start the database proper: עכשיו להתחיל את מסד הנתונים הנכון:

    ALTER DATABASE OPEN; ALTER מסד נתונים פתוח;

  6. As the tablespace has damaged, drop it to recreate from fresh backup. ככל tablespace פגע, ושחרר אותו לשחזר מגיבוי טריים.

    DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; <tablespace TABLESPACE DROP name> כולל תכנים;

  7. Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. להבטחת datafiles אחרים עבור tablespace נמחקה, אם לא, להסיר אותם ידנית מתוך מערכת ההפעלה.

    Tip: עצה: How to check datafiles that belong to tablespace כיצד לבדוק datafiles השייכים tablespace . .

  8. Continue with the recovery process. להמשיך בתהליך ההחלמה.

IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.


11 Responses to “How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile” 11 תגובות ל "איך זרוק Tablespace ולשחזר Oracle Database כאשר בטעות מחק Datafile"

  1. Dan דן
    May 21st, 2009 10:08 21 מאי 2009 10:08
    11 11

    Exactly what I needed! בדיוק מה שהייתי צריכה! Thanks for saving what seemed to be a wretched issue! תודה שהצלת את מה שנראה הבעיה העלוב!

  2. lara לארה
    April 20th, 2009 20:47 20 אפריל 2009 20:47
    10 10

    thanks a million. מיליון תודות.
    ura life saver סוכריה ura

  3. Dewan Gazzali Dewan Gazzali
    February 19th, 2009 06:49 19 פבואר 2009 06:49
    9 9

    This is a life saver …. זוהי סוכריה .... this works fine in oracle 10G HP itenium (or any where else). זה עובד יפה ב-Oracle 10g itenium HP (או כל שם אחר).
    great doc. doc נהדר.
    thanks תודה
    Dewan Gazzali Dewan Gazzali

  4. Nora נורה
    December 17th, 2008 13:53 17 דצמבר 2008 13:53
    8 8

    *2nds last post* * 2nds להודעה האחרונה *

  5. Michael מיכאל
    November 6th, 2008 06:15 6 נובמבר 2008 06:15
    7 7

    You are a life saver!!!!!! אתה שומר החיים !!!!!!

  6. mark סימן
    October 28th, 2008 03:09 28 אוקטובר 2008 03:09
    6 6

    I ran a script to create a user w/o checking it closely enough. רצתי סקריפט כדי ליצור משתמש w / o לבדוק אותה מקרוב מספיק. Next thing you know, my db won't start because it is looking for a data file that doesn't exist. הדבר הבא שאתה יודע, db שלי לא יתחילו כי הוא מחפש קובץ נתונים שאינו קיים. This tip helped me get around the error quickly. טיפ זה עזר לי לעקוף את התקלה במהירות. Thanks for posting it. Thanks for posting אותו.

  7. Steve סטיב
    October 9th, 2008 02:31 9 אוקטובר 2008 02:31
    5 5

    Thank you for taking the time to post this very valuable information. תודה לך על שהקדשת מזמנך כדי לפרסם מידע זה יקר מאוד. :)

  8. Cesar סזר
    September 2nd, 2008 00:31 2 ספטמבר 2008 00:31
    4 4

    Thank you very much, this was really helpful. תודה רבה לך, באמת זה היה מועיל.
    I had problems dropping the tablespace, i had to drop the user also. היו לי בעיות להפיל את tablespace, הייתי צריכה לעזוב גם את המשתמש.

  9. ravisha ravisha
    July 8th, 2008 19:31 8 יולי 2008 19:31
    3 3

    This info helped us to a very great extent and hence we are able to proceed further smoothly. מידע זה סייע לנו במידה רבה מאוד, ולכן אנו מסוגלים להמשיך הלאה בצורה חלקה.

  10. LP LP
    April 2nd, 2008 18:27 2 אפריל 2008 18:27
    2 2

    These are only to drop the TS אלה הן רק עד טיפת TS

    but not to recover… אבל לא להתאושש ...

    hence the worst…. ומכאן הגרוע ביותר ....

  11. How to Remove and Drop Datafiles from Tablespace in Oracle Database » My Digital Life כיצד להסיר ושחרר Datafiles מ Tablespace ב Oracle Database »Digital My Life
    August 4th, 2007 02:57 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. [...] אם אחד או יותר datafiles חסר לאחר תהליך החלמה או מחיקה בשוגג, אתה יכול להשתמש <datafile ALTER DATABASE DATAFILE name> OFFLINE הפקודה DROP להפוך את מחובר datafile כך באתר יכולים מתחיל לעלות אחרי בה tablespace מוטרד יכול להשמט. (See instruction to recover from missing datafiles.) [...] (ראה הוראת להתאושש חסר datafiles.) [...]

Leave a Reply השאירו תגובה

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> באפשרותך להשתמש בתגים אלה: <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. כדי להירשם הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה העדכנית של תגובות, כדי להירשם My Digital Life Comments RSS feed החיים שלי דיגיטליות תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדש ב דוא"ל תקציר יומי.
Custom Search

New Articles מאמרים חדשים

Incoming Search Terms for the Article תנאי נכנסות חיפוש עבור מאמרים

drop tablespace oracle ירידה Oracle tablespace - -- alter database drop tablespace טיפה לשנות tablespace באתר - -- oracle drop tablespace tablespace ירידה Oracle - -- drop tablespace force ירידה בכוח tablespace - -- drop tablespace ירידה tablespace - -- recover tablespace להתאושש tablespace - -- alter tablespace offline drop לשנות טיפה מחובר tablespace - -- recover tablespace oracle להתאושש Oracle tablespace - -- drop tablespace offline ירידה מחובר tablespace - -- recover oracle datafile להתאושש datafile Oracle - -- tablespace offline drop ירידה מחובר tablespace - -- offline drop ירידה מחובר - -- drop tablespace mount tablespace ירידה הר - -- oracle drop tablespace force ירידה בכוח Oracle tablespace - -- recover oracle database לשחזר את מסד הנתונים Oracle - -- oracle restore tablespace Oracle לשחזר tablespace - -- Oracle recover tablespace אורקל להתאושש tablespace - -- recover datafile oracle להתאושש Oracle datafile - -- oracle offline drop ירידה מחובר Oracle - -- drop tablespace in oracle ירידה tablespace ב Oracle - -- oracle missing datafile Oracle חסר datafile - -- how to recover oracle database איך לשחזר את מסד הנתונים Oracle - -- offline drop tablespace tablespace ירידה מחובר - -- oracle drop tablespace offline ירידה מחובר Oracle tablespace - -- oracle tablespace offline מחובר tablespace Oracle - -- force drop tablespace tablespace טיפת כוח - -- recover oracle tablespace להתאושש tablespace Oracle - -- drop offline tablespace ירידה tablespace מחובר - -- oracle drop table space - -- dropping tablespace in oracle tablespace יורד ב Oracle - -- oracle delete tablespace Oracle למחוק tablespace - -- DROP DATAFILE ORACLE DROP DATAFILE ORACLE - -- recover dropped tablespace להתאושש ירד tablespace - -- oracle delete table space Oracle למחוק שטח שולחן - -- oracle datafile recovery ההתאוששות datafile Oracle - -- Oracle recover datafile אורקל להתאושש datafile - -- oracle force drop tablespace כוח tablespace Oracle טיפה - -- alter database offline drop לשנות טיפה מחובר באתר - -- restore tablespace oracle לשחזר Oracle tablespace - -- restore dropped tablespace לשחזר ירד tablespace - -- oracle database offline לא מקוון במסד הנתונים Oracle - -- how to drop tablespace in oracle איך ירידה tablespace ב Oracle - -- how to drop a tablespace in oracle איך ירידה tablespace ב Oracle - -- oracle restore datafile Oracle לשחזר datafile - -- oracle offline drop tablespace tablespace ירידה Oracle מחובר - -- oracle mount drop tablespace Oracle הר tablespace טיפה - -- drop data file נתונים טיפה הקובץ - -- how to recover tablespace איך להתאושש tablespace - -- restore oracle tablespace לשחזר tablespace Oracle - -- drop tablespace datafile ירידה datafile tablespace - --