الانتقال إلى المحتوى
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.

حاجات غريبة بتحصل معايه......!

Featured Replies

بتاريخ:

السلام عليكم ورحمة الله وبركاته
انا ببساطة كده بجرب موضوع الباك اب والريكفري علي داتابيز فرعية خاصة بيه قبل ما اطبقها علي الداتا بيز الاصلية بتاعة الشركة
فانا عملت الكونفجريشن بتاع كل حاجة ( عملت الكونترول فايل باك اب اون و عملت enable للاركيف لوجز وشغلت ال flash recovery area )
فانا عملت باك اب للداتا بيز والاركيف لوجز وطبعا اتعمل باك اب للكنترول فايلز
بعد كده عشان اجرب موضوع ان الداتا بيز كلها تقع او لا قدرالله يحصل حاجة في الهارد ديسك شلت كل الفايلز اللي كانت موجودة في orcl
وبالتحديد في المسار F:\oracle\product\10.2.0\oradata\orcl

دلوقتي انا بقي هشغل الداتا بيز ( طبعا انا كنت قافلها عشان اقدر اشيل الفايلز اللي فاتت دي)
فهدخل علي sqlplus واكتب الامر بتاع sql>startup open

SQL> startup open;
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.

Total System Global Area 369098752 bytes
Fixed Size 1249032 bytes
Variable Size 121635064 bytes
Database Buffers 239075328 bytes
Redo Buffers 7139328 bytes
ORA-00205: error in identifying control file, check alert log for more info
فطبعا طلعت الرسالة اللي فاتت دي اللي مفادها ان الكونترول فايلز مش موجودة
فانا دلوقتي بقي عايز اعمل لها restore ( انا عامل ان الكونترول فايل اوتو باك اب اون)
فالمفروض ان الخطوات اللي هعملها كالاتي:-
* هشغل الداتا بيز في no mount وادخل علي rman واعمل كونيكت علي التارجت وبعد كده هعمل كونيكت علي الكاتلوج ( لاني مستخدم ريكفري كاتلوج داتابيز)
واعمل RMAN> restore controlfile from autobackup;

المفروض ان الخطوات دي هيه اللي هتم
بس وانا بنفذها بقي الامور مش بتبقي مضبوطة ذي النظري اللي فات ده
فانا واحدة واحدة كده هوريكم ايه اللي بيحصل معايه

SQL> startup nomount;
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.

Total System Global Area 369098752 bytes
Fixed Size 1249032 bytes
Variable Size 121635064 bytes
Database Buffers 239075328 bytes
Redo Buffers 7139328 bytes
SQL> select status from v$instance;

STATUS
------------
STARTED

المفروض ناتج الامر الي فات يقول ان الحالة بتاعه الداتا بيز في nomount بس هوه بيطلعها started ( دي اول حاجة )
----------------------------------------------------------------------------------------------------------------------------------
بعد كده المفروض انا بدخل علي rman ( ذي ما قلت قبل كده انا مستخدم الريكفري كاتلوج داتابيز) وهعمل كونيكت علي التارجت داتا بيز وبعد كده هعمل كونيكت علي الكاتلوج وانفذ الامر بقي
RMAN> connect target sys/sys

connected to target database: RECMAN (DBID=1447596017)
هنا ناتج الامر اللي فات دخلني علي RECMAN DATABASE الي هيه الريكفري كاتلوج داتا بيز المفروض ان التارجت داتا بيز بتاعتي هيه orcl
فانا هنا عايزه يدخل علي orcl مش RECMAN ( دي ثاني حاجة )
وفيه سؤال كمان هل الامر اللي فات ده انا مانفعش استخدمه الا اذا كنت مستخدم الكونترول فايل بدل الريكفري كاتلوج
بمعني لو انا مستخدم الريكفري كاتلوج ذي الحالة اللي انا فيها دي ماينفعش استخدم الامر ده وبيكون الحل في الحالة دي عمل كونترول فايل جديد؟!
--------------------------------------------------------------------------------------------------------------------------------------------
فلو جيت بعد كده عملت له
RMAN> restore controlfile from autobackup;

بيطلع لي الخطأ ده لان الداتا بيز مش في حالة ال nomount
Starting restore at 21/12/08
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=148 devtype=DISK

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/21/2008 14:33:03
RMAN-06496: must use the TO clause when the database is mounted or open

فانا بغير الامر ليكون كالتالي
RMAN> restore controlfile to 'c:\ctl' from autobackup;

Starting restore at 21/12/08
using channel ORA_DISK_1

recovery area destination: F:\oracle\product\10.2.0/flash_recovery_area
database name (or database unique name) used for search: RECMAN
channel ORA_DISK_1: no autobackups found in the recovery area
channel ORA_DISK_1: looking for autobackup on day: 20081221
channel ORA_DISK_1: looking for autobackup on day: 20081220
channel ORA_DISK_1: looking for autobackup on day: 20081219
channel ORA_DISK_1: looking for autobackup on day: 20081218
channel ORA_DISK_1: looking for autobackup on day: 20081217
channel ORA_DISK_1: looking for autobackup on day: 20081216
channel ORA_DISK_1: looking for autobackup on day: 20081215
channel ORA_DISK_1: no autobackup in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/21/2008 14:33:27
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
فمش هيلاقي اوتو باك اب لانه بيدور جود الفولدر بتاع RECMAN اللي جوه الفلاش ريكفري اريا لانه لحد دلوقتي شايف ان التارجت هيه RECMAN وده الخطـأ لانها المفروض تكون هيه ORCL
========================================================
انا كان لازم احكي المشكلة بالتفصيل عشان اللي هيقول الحل يكون عارف ايه المشكلة الي هيه باختصار عايز ارجع الكونترول فايل بتاعي وانا عامل له اوتو باك اب

بتاريخ:

set/export oracle_sid=abc
rman target sys
RMAN> startup nomount pfile=''path_to_pfile
RMAN> SET DBID=xxxxxxxxxx
RMAN> restore controlfile from 'full_path_to_cf_backuppiece/backuppiecename';
RMAN> mount database;
RMAN> resotre database;
RMAN> recover database;
RMAN> alter database open resetlogs;

IMP: No need to connect to catalog database

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

بتاريخ:

1-connect to your target database using the catalog like this
RMAN> rman TARGET sys/oracle@orcl CATALOG rman/cat@catg
where orcl:target database
catg:catalog database

2-restore Spfile from backup if it is not found
RMAN>restore spfile from 'e:\backup\CTL_SP_BAK_C-1507972899-20050228-00';

3-RMAN> startup force nomount

4-restore Controlfile from backup
RMAN>restore controlfile from 'e:\backup\CTL_SP_BAK_C-1507972899-20050228-00';

5-shutdown database and startup mount
RMAN>Shutdown Immediate;
RMAN>Startup mount;

6-restore your datafiles from backup
RMAN>restore database;

7-recover database
RMAN> recover database;

8-open database with the reset logs option
RMAN> alter database open resetlogs;

I hope this will work for you

  • بعد 3 أسابيع...
بتاريخ:

Thanks alot for the friends
and this detailed explination for the senario from metalink
thanks

RMAN.doc

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

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

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

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

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

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.