| Предупреждение |
|---|
| 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: - Close all instances of the Management Console. Make sure that all connections of other programs to DB
Personal Data Protector - Traffic Monitor schema are closed; if there’re any active connections, disable them.
- Stop all PDP TM processes on Personal Data Protector Traffic Monitor server:
service iwtm stop
service php-fpm stop
service nginx stop - Retrieve list of scheduled jobs from database server. For this purpose thisб run the following query in sqlplus using schema owner account:
select JOB_NAME, STATE
from user_scheduler_jobs u
where u.enabled = 'TRUE' - 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. - 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;
/ - To prevent hanging on, stop Device Monitor server:
net stop iwdms - Make all the necessary operations with the database.
- After all required operations are made check connection to database server from Personal Data Protector 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> - Run Device Monitor server:
net stаrt iwdms - Run the processes of the Personal Data Protector Traffic Monitor server:
service iwtm stop
service php-fpm stop
service nginx stop - Check if the system log contains errors. The path to the system log:
/var/log/messages - If the system log contains any error messages, consult technical support service.
- 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.
|