Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Sv translation
languageru

Если структура каталогов на новой БД отличается от структуры старой БД, выполните следующие шаги:

  1. В директории /opt/IWTM_Backup_Files/Recovery_Aid отредактируйте файл initiwtm.ora так, чтобы он соответствовал структуре каталогов новой БД.
  2. Скопируйте отредактированный файл initiwtm.ora в директорию $ORACLE_HOME/dbs на компьютер, где расположена новая БД.
  3. На компьютере, где установлена БД Oracle, войдите в систему от имени пользователя oracle.
  4. Откройте Oracle SQL*Plus и подключитесь как пользователь sysdba:
    OS> sqlplus / as sysdba
  5. Сгенерируйте файл параметров
    SQL> create spfile from pfile;
  6. Если нужно переименовать какие-либо файлы, воспользуйтесь следующим сценарием:
    OS> sqlplus / as sysdba
    SQL> startup mount
    SQL> alter database rename file '/<path_to_proddb_files>/<filename1>' to '/<path_to_clonedb_files>/<filename1>';
    …
    SQL> alter database rename file '/<path_to_proddb_files>/<filenameN>' to '/<path_to_clonedb_files>/<filenameN>';
    SQL> shutdown immediate
    Здесь path_to_proddb_files – это путь к директории, где размещены файлы новой БД, в которой восстанавливается резервная копия, а path_to_clonedb_files - путь к директории, где размещены файлы резервной копии.








Sv translation
languageen

If the drive structure of the new database differs from the drive structure of the old database, perform the following actions:

  1. Edit the initiwtm.ora file in the /opt/IWTM_Backup_Files/Recovery_Aid directory to reflect the drive structure of the new database.
  2. Copy the edited initiwtm.ora file to the $ORACLE_HOME/dbs directory on the computer that hosts the new database.
  3. Log on to the computer that hosts the Oracle database as the oracle user.
  4. Open Oracle SQL*Plus and  connect as the sysdba user:
    OS> sqlplus / as sysdba
  5. Generate spfile
    SQL> create spfile from pfile;
  6. If you need to rename some files, you can use the following script:
    OS> sqlplus / as sysdba
    SQL> startup mount
    SQL> alter database rename file '/<path_to_proddb_files>/<filename1>' to '/<path_to_clonedb_files>/<filename1>';
    …
    SQL> alter database rename file '/<path_to_proddb_files>/<filenameN>' to '/<path_to_clonedb_files>/<filenameN>';
    SQL> shutdown immediate
    Here path_to_proddb_files is a path to the directory where new database files are located (to where backup is restoring), and path_to_clonedb_files is a path to the directory where backup files are located.