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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 6.10

...

Sv translation
languageen
Предупреждение
titleWarning!

Do not power DB server off with power button: in certain cases this may cause the DB corruption.

When doing routine database maintenance, you must should follow the established order:

  1. Close all instances of the Management Console. Make sure that all connections of other programs to DB Traffic Monitor schema are closed; if there’re any active connections, disable them.
  2. Stop all TM processes on Traffic Monitor server:
    service iwtm stop
    service php-fpm stop
    service nginx stop
  3. Retrieve list of scheduled jobs from database server. For this purpose run the following query in sqlplus using schema owner account:
    select JOB_NAME, STATE
    from user_scheduler_jobs u
    where u.enabled = 'TRUE'
  4. Disable jobs by running the following script:
    BEGIN
    dbms_scheduler.disable('JOB_1',true);
    …
    dbms_scheduler.disable('JOB_N',true);
    COMMIT;
    END;
    /
    where JOB_1… JOB_N are the names of tasks to disable.
  5. To make sure that none of these jobs is running run the following query:
    SELECT job_name
    FROM user_scheduler_running_jobs
    A list of active jobs displays. If any of the jobs is running you may run the query to stop it:
    BEGIN
    dbms_scheduler.stop_job('job_name');
    COMMIT;
    END;
    /
  6. To prevent hanging on, stop Device Monitor server:
    net stop iwdms
  7. Make all the necessary operations with the database.
  8. After all required operations are made check connection to database server from Traffic Monitor server:
    sqlplus db_login/db_password@tns_name
    Here db_login and db_password are the name and password of the database schema owner, and tns_name is the name of TNS service.
    If the test is successful, the following SQL *Plus prompt will be displayed in response to the command:
    SQL>
  9. Run Device Monitor server:
    net stаrt iwdms
  10. Run the processes of the Traffic Monitor server:
    service iwtm stop
    service php-fpm stop
    service nginx stop
  11. Check if the system log contains errors. The path to the system log:
    /var/log/messages
  12. If the system log contains any error messages, consult technical support service.
  13. Enable running previously disabled jobs:
    BEGIN
    dbms_scheduler.enable('JOB_1',true);
    …
    dbms_scheduler.enable('JOB_N',true);
    COMMIT;
    END;
    /
    where JOB_1… JOB_N are the names of previously stopped jobs.