الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to restore incremental backup

Featured Replies

بتاريخ:

الإخوة الأعزاء.. السلام عليكم ورحمة الله و بركاته....
أولأ انا عندي NOARCHIVE database & 9i version.
ثانياً حجم ال DB عندي كبير جداً.
استطعت ان اعمل full backup باستخدام Rman في نهاية الاسبوع.

بعدين عملت incremental backup level 1 في باقي الأيام.

ثم بعد ذلك استطعت ان اعمل Restore & Recovery والحمدلله تمت العملية على خير ولكن تمت لآخر Full Backup اللي عملته نهاية الأسبوع.

المشكلة عندي انني اريد ان اعمل Restore & Recover for Last backup incremental
علشان أحصل على الData اللي تم إدخالها خلال الاسبوع الى آخر باكب جزئي كما اشرت سابقا.

يا ريت يا إخواني أحصل على الإفادة منكم وافية مع الخطوات لأن الموضوع جداً مهم و حساس.
مع جزيل الشكر.

بتاريخ:
  • كاتب الموضوع
الإخوة الأعزاء.. السلام عليكم ورحمة الله و بركاته....
أولأ انا عندي NOARCHIVE  database & 9i version.
ثانياً حجم ال DB عندي كبير جداً.
استطعت ان اعمل full backup باستخدام Rman في نهاية الاسبوع.

بعدين عملت incremental backup level 1 في باقي الأيام.

ثم بعد ذلك استطعت ان اعمل Restore & Recovery  والحمدلله تمت العملية على خير ولكن تمت لآخر Full Backup اللي عملته نهاية الأسبوع.

المشكلة عندي انني اريد ان اعمل Restore & Recover for Last backup incremental
علشان أحصل على الData اللي تم إدخالها خلال الاسبوع الى آخر باكب جزئي كما اشرت سابقا.

يا ريت يا إخواني أحصل على الإفادة منكم وافية مع الخطوات لأن الموضوع جداً مهم و حساس.
مع جزيل الشكر.

69782[/snapback]





يا إخوان وينكم ، المسألة مهممممممممممة جدا والله...
بتاريخ:

Dear Hannod,sorry for late reply
i want to know what do u mean by full backup?do u mean level 0? any way i think if u toke level 1
without level 0 , it will create level 0 automatically
the level 1 daily is too large and u need it only 1 per week (middle of week)and level 2 daily,any way
all u need to stor all ur db:
rman target /
startup mount
restore database
recover database
alter database open resetlogs;

بتاريخ:
  • كاتب الموضوع

الأخ العزيز Debug_b!bo
انا شاكر جدا لإهتمامك و ردك على موضوعي...
هذه الخطوات التي نفذتها:


RMAN> run{
2> allocate channel C1 type disk format 'C:\backuphp\b_%u_%p_%c';
3> backup database
4> (database include current controlfile);
5>
6> }


THEN



RMAN> run{
2> allocate channel c1 type disk format 'C:\backuphp\b_%u_%p_%c';
3> backup incremental level 0
4> (database include current controlfile);
5>
6> }


THEN I DID THIS

RMAN> run{
2> allocate channel c1 type disk format 'C:\backuphp\b_%u_%p_%c';
3> backup incremental level 1
4> (database include current controlfile);
5>
6> }

AFTER THAT ....I MADE RESTOR for controlfile

RMAN>startup nomount;
RMAN>restore controlfile from <first_backup>;


THEN

RMAN> alter database mount;
RMAN> restore database;
RMAN> recover database noredo;
RMAN> alter database open resetlogs;


**NOTE: THE DB IS NOARCHIVE MODE

NOW THE QUESTION IS HOW CAN I RESTORE THE INCREMENTAL BECOUSE THE PRIVOUSE RESTORE COMMAND GO TO THE LEVEL 0 BACKUP AND RESOTORED .

THAT WHAT HAPPEND WITH ME MR.Debug

جزاك الله خيرا.

بتاريخ:

Dear brother
when u made last level 0 u made the last BK Rman can see so when u make restore d b it will take the last taken BK which is ur level 0 no the incremental,so i think u can recover until time and u can review the documentation for this or 9i fund2 material

بتاريخ:
  • كاتب الموضوع

Dear Debug_b!bo,
kindly note my previous reply that the last BK is
incremental level 1 backup
NOT
level 0, i read the oracle doc. multy times but unfortunatly i didn't found a clear secnario or example describe this case.
so if you have a clear steps for this provide me please

Best regard .

بتاريخ:

السلام عليكم ورحمة الله وبركاته

RUN
{
startup nomount;
RESTORE CONTROLFILE; # FROM AUTOBACKUP
alter database mount;
RESTORE DATABASE;
RECOVER DATABASE;
}
بس فيه حاجه غريبه انت عملتها
انت ليه استخدمت alter database open resetlogs مع انك لم تستخدم incomplete ??

تم تعديل بواسطة h_elshawaf

بتاريخ:
  • كاتب الموضوع
السلام عليكم ورحمة الله وبركاته

RUN
{
startup nomount;
RESTORE CONTROLFILE; # FROM AUTOBACKUP
alter database mount;
RESTORE DATABASE;
RECOVER DATABASE;
}
بس فيه حاجه غريبه انت عملتها
انت ليه استخدمت  alter database open  resetlogs مع انك لم تستخدم incomplete ??

70092[/snapback]




الاخ h_elshawaf
ممكن توضيح سؤالك اكثر من ذلك؟؟
بتاريخ:
  • كاتب الموضوع

يا إخوان الى الآن لم أجد حل فعلي لمشكلتي..
الأخ Debug_b!bo ما قصَرت و مشكور على المساعدة بس يا ريت لو تكمل معروفك ;)

انا بصراحة كنت متخيل الموضوع أسهل من هيك لإني من خلال ما قرأت من مشاركات الزملاء السابقة وجدت ان هناك قضايا أعقد بكثير و ما صعبت عليكم ، فالرجاء الرجاء من وجد لديه القدرة على الرد فلا يبخل علينا لتعم الفائدة على الجميع لأنو صدقوني ياشباب انها مسألة مثيرة للنقاش وأنا بحثت كثير ودورت بس ما لقيت حل واضح و صريييييييييييح.

بتاريخ:

السلام عليكم ورحمة الله وبركاته
آسف للـتأخير فى الرد
انت الأن لم تقم با ستخدام until time or until scn بمعنى آخر لم تقم بعمل incomplete recover
فلماذا قمت باستخدام alter database open resetlogs ?????
المعروف أنه لا يتم فتح ال database by reset logs إلا إذا كنت عامل incomplete recover
ما كان هناك داعى لعمل new incarenation بواسطة reset logs
واعتقد ان هذه هى المشكلة
فال rman يقوم باستعادة آخر backup وعمل ال recover له بواسطة ال incremental and archive logs automatically
وذلك فقط بأمر RESTORE AND RECOVER كما هو موضح فى المثال
أرجو ان أكون أوضحت بعض الشىء
شكرا

بتاريخ:
  • كاتب الموضوع

Dear h_elshawaf,
انا استخدمت alter database open resetlogs لإن هذه هي الطريقة الوحيدة لتشغيل الDB
بعد استخدام امر recover database noredo
ولقد حاولت استخدام امر alter database open بدون resetlogs ولكن كانت النتيجة كالتالي:

RMAN> recover database noredo;
Starting recover at 31-MAY-06
using channel ORA_DISK_1
Finished recover at 31-MAY-06

RMAN> alter database open;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 05/31/2006 12:40:36
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

RMAN> alter database open resetlogs;

database opened


وشكراً

بتاريخ:

السلام عليكم ورحمة الله وبركاته
لقد بحثت ورأيت هذه الحاله أرجو من الله ان يكون فيها الحل
==================

Recovering a Database in NOARCHIVELOG Mode: Example
You can recover a database running in NOARCHIVELOG mode with incremental
backups. Note that the incremental backups must be consistent, like all backups of a
database run in NOARCHIVELOG mode, so you cannot make backups of the database
when it is open.
Assume the following scenario:
You run database trgt in NOARCHIVELOG mode.
You use a recovery catalog.
You shut down the database consistently and make a level 0 backup of database
trgt to tape on Sunday afternoon.
You shut down the database consistently and make a level 1 differential
incremental backup to tape at 3:00 a.m. on Wednesday and Friday.
The database has a media failure on Saturday, destroying half of the datafiles as
well as the online redo logs.
In this case, you must perform an incomplete media recovery until Friday, since that
is the date of the most recent incremental backup. RMAN uses the level 0 Sunday
backup as well as the Wednesday and Friday level 1 backups.
Because the online redo logs are lost, you must specify the NOREDO option in the
RECOVER command. You must also specify NOREDO if the online logs are available
but the redo cannot be applied to the incrementals. If you do not specify NOREDO,
then RMAN searches for redo logs after applying the Friday incremental backup,
and issues an error message when it does not find them. If the correct online logs
for the restored backup had been available, then you could have run RECOVER
DATABASE without specifying NOREDO. The changes in the online logs would have
been applied.
After connecting to trgt and the catalog database, recover the database with the
following command:
STARTUP FORCE MOUNT;
RESTORE CONTROLFILE; # restore control file from consistent backup
ALTER DATABASE MOUNT;
RESTORE DATABASE; # restore datafiles from consistent backup
RECOVER DATABASE NOREDO; # specify NOREDO because online redo logs are lost
ALTER DATABASE OPEN RESETLOGS;
The recovered database reflects only changes up through the time of the Friday
incremental backup. Because there are no archived redo logs, there is no way to
recover changes made after the incremental backup.

بتاريخ:
  • كاتب الموضوع

الأخ h_elshawaf
السلام عليكم ورحمة الله وبركاته.....
انا عاجز عن الشكر وأقدم تقديري و إمتناني لإهتمامك و مساعدتك لي و لباقي الزملاء.


بالنسبة لهذا المثال
Recovering a Database in NOARCHIVELOG Mode: Example
لقد قرأته و طبقته مرات عديدة من قبل ، و لو رجعت لمشاركاتي السابقة في نفس هذا الموضوع سوف تجد انني إستخدمت نفس الـcommands كلها ما عدا انه لا يوجد عندي recovery catalog وأعتقد ان هذا غير ضروري لاسترجاع ال data التي تم تخزينها بعد BK level 0 .
على كل حال أنا طبقته مرات عديدة و في كل مرة يرجع الى BK level 0 يعني يوم الأحد كما هو موضح في ال Example، والمشكلة عندي هي كيف ارجع الى يوم الجمعة
والمقصود به BK level 1 . لأنه في Example لم يشرح كفاية و إنما ذكر هذه الجملة
RMAN uses the level 0 Sunday
backup as well as the Wednesday and Friday level 1 backups.

سؤالي لك هل طبقت هذا المثال و نجحت باستعادة ال data الى يوم الجمعة أم لا ؟؟؟؟؟؟

و شكرا.

بتاريخ:

السلام عليكم ورحمة الله وبركاته
أخى العزيز :

أنا فعلا مجربتش قبل كده بس

تأكد من أن ال control_file_record_keep_time يساوى 7

انا هجرب test صغير كده وان شاء الله هرد عليك فى أسرع وقت

شكرا

بتاريخ:

السلام عليكم ورحمة الله وبركاته

الحل النهائى الشافى فى هذا الموضوع ما يلى :

أنت أخطأت حينما عملت restore control file من ال first backup
اولا : لأنك no catalog وبالتالى الداتا مخزنه فى ال control file ولأنك استرجعت ال control file الأقدم الذى لا يوجد به اى معلومات عن ال incremental backup فبالتالى لن تستطيع أن تسترجع ال incremental

كل ما عليك هو أن تسترجع ال control file الأخير الخاص ب incremental level 2

وعندها يمكنك استرجاع البيانات حتى آخر يوم

شكرا

بتاريخ:
  • كاتب الموضوع

Dear h_elshawaf,
i think i did this before but it's not success , any way i will do again and from begining then give you all the resulats.


thanks alot,

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.