How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile كيف تراجع tablespace واستعادة قاعدة البيانات أوراكل عند مصادفه حذف 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 قاعدة البيانات اوراكل وسوف تسبب الفشل لبدء التشغيل ، مما يجعل الجامعة ديسيبل التي يتعذر الوصول اليها.

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. * بالاضافة الى تشغيل لغة الاستعلامات البنيويه.
  2. Connect to database as SYSDBA with this query: الاتصال بقاعده البيانات كما sysdba مع هذه الاستفسارات :

    CONNECT / AS SYSDBA ربط / كما sysdba

  3. Mount the database instead of starting it up: جبل لقاعدة البيانات بدلا من البدء حتى وهي :

    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: الموضوع التالي لتحقيق المفقودين datafile غير متصل اوراكل بحيث لن تسعى لربط ويعد الوصول الى datafile :

    ALTER DATABASE DATAFILE ‘<datafile name with complete path>’ OFFLINE DROP; تغيير قاعدة بيانات datafile '<datafileالاسم الكامل مع path>' غير متصل انخفاض ؛

    Repeat the command for every datafiles that unaccounted for. تكرار لقيادة كل datafiles ان يعرف مصيرهم.

  5. Now start the database proper: نبدأ الان في قاعدة البيانات الصحيحه :

    ALTER DATABASE OPEN; تغيير قاعدة بيانات مفتوحة ؛

  6. As the tablespace has damaged, drop it to recreate from fresh backup. كما قد أضر tablespace ، تسقطها من جديد لاعادة النسخ الاحتياطي.

    DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; اسقاط اسم tablespace <tablespaceبما المحتويات ؛

  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 : This is a machine translated page which is provided "as is" without warranty. هام : هذا هو الاله الذي ترجم صفحة مقدمة "كما هى" دون ضمان. Machine translation may be difficult to understand. الترجمة الاليه قد يكون من الصعب ان نفهم. Please refer to يرجى الرجوع الى original English article المادة الاصليه English whenever possible. كلما كان ذلك ممكنا.

Share and contribute or get technical support and help at والمساهمة في حصة او الحصول على الدعم التقني والمساعدة فى My Digital Life Forums بلدي الرقميه الحياة المنتديات .



3 Responses to “How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile” 3 ردود على "كيفية اسقاط tablespace واستعادة قاعدة البيانات أوراكل عند مصادفه حذف datafile"

  1. How to Remove and Drop Datafiles from Tablespace in Oracle Database » My Digital Life كيفية ازالة وانخفاض datafiles من tablespace في قاعدة بيانات اوراكل »بلدي الحياة الرقميه
    August 4th, 2007 02:57 الرابع من آب / اغسطس ، 2007 02:57
    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 <datafileتغيير اسم القيادة الى انخفاض غير متصل جعل datafile غير متصل قاعدة بيانات بحيث يمكن ان تبدأ بعد المضطربه التي يمكن ان tablespace ولا يجوز اسقاط. (See instruction to recover from missing datafiles.) [...] (انظر تعليمات للتعافي من المفقودين datafiles.) [...]

  2. LP ليرة لبنانيه
    April 2nd, 2008 18:27 نيسان / ابريل 2nd ، 2008 18:27
    2

    These are only to drop the TS وهذه ليست سوى لاسقاط الملخص الفني

    but not to recover… ولكن ليس لاسترداد…

    hence the worst…. ومن هنا فإن أسوأ….

  3. ravisha
    July 8th, 2008 19:31 يوليو 8th ، 2008 19:31
    3

    This info helped us to a very great extent and hence we are able to proceed further smoothly. هذه المعلومات ساعدنا الى حد كبير جدا ، وبالتالي نحن قادرون على المضي قدما بسلاسه.

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> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><دل datetime = ""> <em><i><qCite=""> <strike><strong>

Subscribe without commenting اشترك بدون تعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article الوافدة من حيث البحث عن المادة

drop tablespace in oracle انخفاض tablespace في أوراكل - -- drop tablespace انخفاض tablespace - -- oracle drop tablespace اوراكل انخفاض tablespace - -- recover tablespace استعادة tablespace - -- drop tablespace offline انخفاض tablespace غير متصل - -- drop tablespace ORACLE انخفاض tablespace اوراكل - -- alter database drop tablespace تغيير قاعدة بيانات انخفاض tablespace - -- oracle recover datafile اوراكل استرداد datafile - -- recover oracle datafile استعادة اوراكل datafile - -- offline drop انخفاض غير متصل - -- oracle recover database استعادة قاعدة البيانات أوراكل - -- oracle recover tablespace اوراكل استرداد tablespace - -- DROP TABLESPACE MOUNT انخفاض tablespace جبل - -- recover datafile oracle استعادة datafile اوراكل - -- oracle drop table space اوراكل إسقاط الجدول الفضاء - -- recover database Oracle استعادة قاعدة البيانات أوراكل - -- drop oracle tablespace انخفاض اوراكل tablespace - -- oracle drop tablespace offline اوراكل انخفاض tablespace غير متصل - -- oracle drop database انخفاض قاعدة البيانات أوراكل - -- alter datafile offline drop تغيير datafile انخفاض غير متصل - -- oracle offline drop اوراكل انخفاض غير متصل - -- oracle delete datafile حذف اوراكل datafile - -- drop datafile offline انخفاض datafile غير متصل - -- Recover Oracle database استعادة قاعدة البيانات أوراكل - -- all الكل - -- drop datafile انخفاض datafile - -- offline drop tablespace غير متصل انخفاض tablespace - -- recover oracle database missing data file استرجاع البيانات المفقودة قاعدة البيانات أوراكل الملف - -- restore oracle database استعادة قاعدة البيانات أوراكل - -- recover database in oracle في استعادة قاعدة البيانات أوراكل - -- alter tablespace offline تغيير tablespace غير متصل - -- oracle drop tablespace mount اوراكل انخفاض tablespace جبل - -- oracle recover اوراكل استرداد - -- alter database oracle تغيير قاعدة البيانات أوراكل - -- drop a tablespace انخفاض tablespace أ - -- recover drop tablespace استعادة انخفاض tablespace - -- accidental+deletion+file+oracle عرضي حذف + + + ملف اوراكل - -- damaged missing datafiles oracle اضرار المفقودين datafiles اوراكل - -- drop oracle database انخفاض قاعدة البيانات أوراكل - -- oracle drop tablespace with missing datafile اوراكل مع انخفاض tablespace المفقودين datafile - -- drop data file انخفاض ملف بيانات - -- tablespace offline drop tablespace انخفاض غير متصل - -- drop tablespace command in oracle انخفاض tablespace القيادة في أوراكل - -- recover dropped tablespace استعادة اسقطت tablespace - -- oracle offline drop tablespace غير متصل اوراكل انخفاض tablespace - -- drop tablespace missing datafile انخفاض tablespace المفقودين datafile - -- how to offline the tablespace without opening the database كيف غير متصل فان tablespace بدون فتح قاعدة البيانات - -- Oracle tablespace offline drop اوراكل tablespace انخفاض غير متصل - -- recover tablespace oracle استعادة tablespace اوراكل - -- oracle drop datafiles from the database which are already is deleted اوراكل انخفاض datafiles من قاعدة البيانات التي هي اصلا هو حذف - --