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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.16
Sv translation
languageru
Предупреждение
titleВажно!

Табличное пространство (ТП) можно восстанавливать только в той схеме базы данных (БД), в которой оно было отключено (даже если эта схема была обновлена). Восстановить ТП после полной переустановки схемы БД невозможно.

В Системе есть следующие способы восстановления ежедневных табличных пространств (ЕТП):

Перемещение файлов данных

Для восстановления ЕТП нужно переместить его файлы данных с внешнего носителя в каталог, путь к которому можно получить с помощью запроса:

Блок кода
languagetext
select value from setting where setting = 'archive_path';
Предупреждение
titleВажно!

Убедитесь, что пользователь oracle имеет права на чтение и запись в том каталоге, куда будут перемещаться файлы данных.

Подключение ЕТП

Предупреждение
titleВажно!

Не подключайте ЕТП во время работы заданий IWTM_ADD_PARTS и IWTM_DELETE_TABLESPACES. Это может привести к повреждению данных.

По умолчанию при подключении архивированного ТП Система перемещает его файлы данных в стандартную директорию хранения ТП. Если нужно оставить файлы в директории хранения архивов (например, в целях увеличения производительности восстановления), в таблице БД setting измените значение флага move_restore_datafile на 0.

  1. От имени владельца схемы БД вызовите процедуру:

    Блок кода
    languagetext
    begin
    pkg_part.restore_tablespace(N);
    end;
    /

    где N – ID табличного пространства (указывается в tbs_list).
    После выполнения процедуры статус ЕТП изменится на Восстановлено.

  2. Повторите вызов процедуры для каждого ЕТП, которое нужно подключить.
Sv translation
languageen
Предупреждение
titleWarning!

A tablespace can only be restored in the database scheme from which it was disconnected (even if this scheme was updated). The restoration of the tablespace after total database scheme reinstallation is impossible.

In the System, there are the following ways of restoring DTS:

Moving data files

To restore a daily tablespace, you must move data files of this tablespace from a data carrier to the folder which path you can obtain using the following command:

Блок кода
languagetext
select value from setting where setting = 'archive_path';
Предупреждение
titleWarning!

Make sure that the oracle user has reading and writing privileges for the directory to move the data files to.

Connecting the daily tablespace

Предупреждение
titleWarning!

Do not connect a daily tablespace during IWTM_ADD_PARTS and IWTM_DELETE_TABLESPACES jobs. This may cause the data loss.

When the System restores an archived tablespace, by default it moves its data files to a standard directory for tablespaces. In case you need the System to store files in the archive storing directory (for example, to increase recovery performance thereby), go to setting table in the database and replace the value of move_restore_datafile parameter with 0.

  1. On behalf of the owner of the database scheme, call the procedure:

    Блок кода
    languagetext
    begin
    pkg_part.restore_tablespace(N);
    end;
    /

    where N is ID of the tablespace (specified in tbs_list).
    After procedure ending the status of TS will change to Restored.

  2. Repeat the procedure call for each daily TS you want to enable.