This is a small batch file that tries to establish an exclusive connection to the given database (forcing all existing connections to the database).
|>>--- dbtuxconnect.bat --- ALIAS ---><|
Sometimes it is necessary to get an exclusive connection to the database. Often there are reconnecting client programs that make it hard to be fast enough. That is where this script will be helpful.
After calling the batch file with the database alias (ALIAS) to connect to, you are asked to confirm your choice. Pressing Enter (you can stop the script in any phase by pressing Ctrl+C) starts the process. The batch file tries to connect in exclusive mode. If the command fails, all connections to the database are collected and forced. Again, the batch file tries to connect in exclusive mode,... This loop runs until the exclusive connection has been established.