MERCADOS FINANCIEROS

miércoles, 8 de mayo de 2019

Restoring the Server Parameter File from a Control File Autobackup

Restoring the Server Parameter File from a Control File Autobackup

If you have configured control file autobackups, then the server parameter file is backed up with the control file whenever an autobackup is taken.
To restore the server parameter file from the control file autobackup, you must first set the DBID for your database and then use the RESTORE SPFILE FROM AUTOBACKUP command. If the autobackup is in a nondefault format, then first use the SET CONTROLFILE AUTOBACKUP FORMAT command to specify the format.
Example 20-1 sets the DBID and restores the server parameter file from a control file autobackup in a nondefault location.
 
Example 20-1 Restoring the Server Parameter File from a Control File Autobackup
 
SET DBID 320066378;
RUN 
{
  SET CONTROLFILE AUTOBACKUP FORMAT 
    FOR DEVICE TYPE DISK TO 'autobackup_format';
  RESTORE SPFILE FROM AUTOBACKUP;
}

No hay comentarios: