![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Part of our batch work requires exclusive access to a livedb, so we need a UNIX script to remove all user sessions from the database. We currently have a script that runs iinamu to get the server id's then iimonitor to get the session id's, then runs 'remove session' in iimonitor. This all works swimmingly, but the code is quite complicated... I was wondering if there is a better, simpler way to remove user sessions? |
#3
| |||
| |||
|
|
Connect to imadb then EXECUTE PROCEDURE IMA_DROP_SESSIONS; Roy Hann (rhann at rationalcommerce dot com) Rational Commerce Ltd. www.rationalcommerce.com "Ingres development, tuning, and training experts" |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
grep "iidbms dbms" \ grep "$(ingprenv II_INSTALLATION)" \ grep -v grep \ awk '{ print $2 }') |
|
iimonitor ${CONNECT_ID} \ sed 's/IIMONITOR> //g' \ grep -i session \ awk '{ printf "remove %s\n", $2}' \ iimonitor ${CONNECT_ID} |
|
Hi Like you, i need to remove all user sessions from the database. I make a UNIX script but it also shuts down the DBMS server. Please, could you give me your script or look at mine and correct it. Thanks. Stephane _______________________________________________ Info-ingres mailing list Info-ingres (AT) cariboulake (DOT) com http://mailman.cariboulake.com/mailm...py/info-ingres |
![]() |
| Thread Tools | |
| Display Modes | |
| |