Sunday , December 22 2024

Statistics Collection Job Remaining Active In The Database

Sessions belonging to database statistics collection jobs can sometimes remain active. In this article, we will discuss how to identify and terminate these sessions.

1. “v$session” is queried from both nodes to find the remaining active sessions.

NOTE: Sometimes this query may not yield any results. You need to check from the other node.

2. In Scheduler_Jobs, it is checked whether the Job is in RUNNING or not.

3. These sessions are also checked by the operating system according to their process IDs and checked with the ora_jo* command.

4. Sessions are killed on the database side.

During the kill, a warning is received as follows.

This indicates that these sessions are marked for killing and will be killed as a result of the completion of the operations related to those sessions.

5. If the processes belonging to the sessions are not waited to finish, the sessions are also killed by the operating system.

6. It is checked whether the session is cleared or not.

7. On the database side, the existence of sessions is queried from v$session.

8. The state of the job is checked.

Loading

About Onur ARDAHANLI

Leave a Reply

Your email address will not be published. Required fields are marked *