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. ومع ذلك ، فان الخطوات ليست حتى مستقيمه الى الامام.
- Run SQL*Plus. * بالاضافة الى تشغيل لغة الاستعلامات البنيويه.
- Connect to database as SYSDBA with this query: الاتصال بقاعده البيانات كما sysdba مع هذه الاستفسارات :
CONNECT / AS SYSDBA ربط / كما sysdba
- Mount the database instead of starting it up: جبل لقاعدة البيانات بدلا من البدء حتى وهي :
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: الموضوع التالي لتحقيق المفقودين 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 ان يعرف مصيرهم.
- Now start the database proper: نبدأ الان في قاعدة البيانات الصحيحه :
ALTER DATABASE OPEN; تغيير قاعدة بيانات مفتوحة ؛
- As the tablespace has damaged, drop it to recreate from fresh backup. كما قد أضر tablespace ، تسقطها من جديد لاعادة النسخ الاحتياطي.
DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; اسقاط اسم tablespace <tablespaceبما المحتويات ؛
- 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 .
- 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 بلدي الرقميه الحياة المنتديات .
Related Articles مقالات ذات صلة
- How to Remove and Drop Datafiles from Tablespace in Oracle Database كيفية ازالة وانخفاض datafiles من tablespace في قاعدة بيانات اوراكل
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error اوراكل ora - 01658 قادرة على انشاء الاولية لهذا الجزء في مدى خطأ tablespace
- How to Rename or Move Oracle Tablespace Datafile to Another Location كيف لاعادة التسميه او اوراكل tablespace datafile الانتقال الى موقع آخر
- ORA-25153 Temporary Tablespace is Empty Error in Oracle Ora - 25153 المؤقتة tablespace فارغه خطأ في أوراكل
- Delete, Remove or Drop Oracle Stored Packages with Drop Package حذف او نقل او تخزين مجموعات انخفاض اوراكل مع انخفاض مجموعة
- Oracle Database Link ربط قاعدة بيانات اوراكل
- ORA-02449 Oracle Drop Table Error Ora - 02449 اوراكل إسقاط الجدول خطأ
- Manual and Clean Uninstall Oracle for Windows دليل النظيفه وأوراكل لالغاء تثبيت ويندوز
- Oracle Database Import Error 3113/3114 خطا قاعدة البيانات أوراكل استيراد 3113/3114
- Change Oracle Database User Password تغيير قاعدة البيانات أوراكل المستخدم كلمة السر





























August 4th, 2007 02:57 الرابع من آب / اغسطس ، 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. (...)كان واحدا او اكثر datafiles مفقود عملية الانتعاش بعد حذف او عارض ، يمكنك استخدام قاعدة بيانات datafile <datafileتغيير اسم القيادة الى انخفاض غير متصل جعل datafile غير متصل قاعدة بيانات بحيث يمكن ان تبدأ بعد المضطربه التي يمكن ان tablespace ولا يجوز اسقاط. (See instruction to recover from missing datafiles.) [...] (انظر تعليمات للتعافي من المفقودين datafiles.) [...]
April 2nd, 2008 18:27 نيسان / ابريل 2nd ، 2008 18:27
These are only to drop the TS وهذه ليست سوى لاسقاط الملخص الفني
but not to recover… ولكن ليس لاسترداد…
hence the worst…. ومن هنا فإن أسوأ….
July 8th, 2008 19:31 يوليو 8th ، 2008 19:31
This info helped us to a very great extent and hence we are able to proceed further smoothly. هذه المعلومات ساعدنا الى حد كبير جدا ، وبالتالي نحن قادرون على المضي قدما بسلاسه.