بتاريخ: 6 مايو 200718 سنة comment_98971 بسم الله الرحمن الرحيمالسلام عليكم ورحمة الله وبركاته Control Files Every Oracle database has a control file. A control file contains entries that specify the physical structure of the database. For example, it contains the following information: ■ Database name ■ Names and locations of datafiles and redo log files ■ Time stamp of database creation Oracle can multiplex the control file, that is, simultaneously maintain a number of identical control file copies, to protect against a failure involving the control file. Every time an instance of an Oracle database is started, its control file identifies the database and redo log files that must be opened for database operation to proceed. If the physical makeup of the database is altered (for example, if a new datafile or redo log file is created), then the control file is automatically modified by Oracle to reflect the change. A control file is also used in database recovery * Oracle ® Database Concepts 10g Release 2 بعد تنزيل قاعدة البيانات تكون هنالك ثلاثة نسخ من الcontrolfileو لكن في مكان واحد $cd $ORACLE_HOME/oradata/$ORACLE_SID/ $ls controlfile01.ctl controlfile02.ctl controlfile03.ctl لمعرفة مكان ال controlfile SQL>select name from v$controlfile; و حتي نحفظ قاعدة البيانات في حالة hardisk failure نحتاج لأن نوزع علي ثلاث هاردسكاتلنقوم بهذه العملية نتبع هذه الخطوات 1- SQL>shutdown immediate 2-$ cp controlfile02.ctl /disk2/oracle/oradata $ cp controlfile03.ctl /disk3/oracle/oradata 3- إذا كانت قاعدة البيانات تعمل علي pfile $ vi init$ORALCE_SID.ora control_files='/disk1/oracle/oradata/orcl/controlfile01.ctl', '/disk2/oracle/oradata/controlfile02.ctl', '/disk3/oracle/oradata/controlfile03.ctl' 4- SQL>startup 5-SQL>select name from v$controlfile; و تكون تمت العملية بنجاحبالتوفيق إن شاء الله تم تعديل 6 مايو 200718 سنة بواسطة ابن الجوزي تقديم بلاغ
بتاريخ: 8 مايو 200718 سنة كاتب الموضوع comment_99200 إذا كانت قاعدة البيانات علي spfile SQL> alter system set control_files='/disk1/oracle/oradata/orcl/controlfile01.ctl', '/disk2/oracle/oradata/controlfile02.ctl', '/disk3/oracle/oradata/controlfile03.ctl' scope=spfile; SQL>shut immediate SQL>startup SQL>select name from v$controlfile; تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.