disconnect the schema [message #687643] |
Mon, 24 April 2023 12:02 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/da41024bca4935db557890be9c13b82c?s=64&d=mm&r=g) |
deepakdot
Messages: 91 Registered: July 2015
|
Member |
|
|
Hi
Is there a way, I can stop (disconnect all the sessions) from a schema and don't allow new connections to the schema .
If I use, "ALTER USER scott account lock", its not allowing new connections. But with existing connections before lock, I am able to access table. I need both not to work.
Finding all the sessions from v$session for a schema and kill them, will take time. is there a single command which will disconnect all existing sessions and not allow new sessions to a schema ?
Regards,
Deepak
|
|
|
|
|
|
|