Before strating automatic you enable automatic archiving, check , that archiving catalogue has been set properlythat the archive directory is specified correctly: select value
from setting
where setting = 'archive_path'Orcale user should be an ;
A postgre user must be the owner of the cataloguedirectory. In case catalogue has been set improperly, reset it, using If the directory is specified incorrectly, then set it properly with the following command: begin;
select sp_setting_set('archive_path', '/test/archive/');
commit;
To perform TS archiving automatically If enable automatic archiving of tablespaces (by default, the function option is disabled), you can use the following scripts (run under the account you should run scripts on behalf of the owner of the database schema owner): For the daily TS storing tablespace that stores objects with Violation status:
begin; select sp_setting_set('violation_archive_enabled', '1');
select sp_setting_set('violation_archive_period', 'D');
commit;
where: 1 – indicates that authomatical automatic deletion is enabled (to disable it, specify 0 instead); D – is a number of days at the end of after which the daily TS will be tablespace is archived by the System. For daily TS storing For the daily tablespace that stores objects with No Violation status:
begin; select sp_setting_set('noviolation_archive_enabled', '1');
select sp_setting_set('noviolation_archive_period', 'D');
commit;
where: 1 – indicates that automatical deletion is enabled (to disable it, specify 0 instead); D – is a number of days at the end of days after which the daily TS will be tablespace is archived by the System. For daily TS storing For the daily tablespace that stores screenshots:
begin; select sp_setting_set('other_archive_enabled', '1');
select sp_setting_set('other_archive_period', 'D');
commit;
where: 1 – indicates that indicates that automatical deletion is enabled (to disable it, specify 0 instead); D – is a number of days at the end of which the daily TS will be after which the daily tablespace is archived by the System.
|