English (Español a continuación)
There are times when sessions get hung: it can happen because there are processes running in memory when a new request is executed.
- For example, it is necessary to prevent any user from changing the outline or updating data while a calculation is running.
When attempting to end these sessions sometimes they are left with “Terminating” status almost indefinitely.
The procedure to follow is to wait, but if this option is not valid for the time that may elapse then you have to force the session to end.
- For example. when a very long retrieve has been requested and does not finish.
To end these sessions, you can do:
With Maxl:
- alter system unload application {“application name”} [no_force];
This command immediately cancels all active requests and all connections to the database; and the application ends.
If the option «no_force» is included, then this command gives an error message if there is any active request and it does not close the session. You have to wait for the application to finish.
Español
Hay ocasiones que se quedan sesiones colgadas: puede ocurrir poque haya procesos que se estén ejecutando en la memoria cuando se lanza una nueva solicitud.
- Por ejemplo, hay que evitar que algún usuario cambie el outline o actualice datos mientras se esté ejecutando un cálculo.
Cuando se intentan finalizar estas sesiones a veces se quedan con el estatus “Terminando” de forma casi indefinida.
El procedimiento que hay que seguir es esperar, pero si esta opción no es válida por el tiempo que puede transcurrir, hay veces que hay que forzar el finalizar la sesión.
- Por ejemplo. cuando se ha solicitado un retrieve muy extenso y no finaliza.
Para finalizar estas sesiones, se puede realizar:
Con Maxl:
- alter system unload application {“nombre aplicación”} [no_force];
Este comando cancela de forma inmediata todas las solicitudes activas y todas las conexiones a la base de datos; y finaliza la aplicación.
Si se incluye la opción “no_force”, entonces este comando da un mensaje de error si hay algún procedimiento activo y no cierra la sesión. Hay que esperar a que finalice la solicitud.