Hahahaha....sorry. I supposed the same thing some time ago much to my chagrin. You might want to look into informix's Trusted Facility tool, its basically auditing for the database and pretty simple to set up but adds overhead and can create some HUGELY BLOATED log files if you over-audit.
If you are running on unix, you could replace the isql executable with a shell script having the same name that logs the commands and then passes the commands to the original (renamed) executable. I do this for all of my dangerous/sensitive unix commands that I HAVE to sdhare with ops and programmers...Something like:
# rename isql isql.orig
:
#echo "`date|` `whoami|` $@" >> /sysadmin/.isqllog
wai () { if [ -x /usr/bin/whoami ] ; then
whoami
else
echo "no whoami"
fi
}
if [ -f /sysadmin/.isqllog ] ; then
echo "`date \"+%D %T\"` `wai` `pwd` $@" >> /sysadmin/.isqllog
else
echo "`date \"+%D %T\"` `wai` `pwd` $@" >> /sysadmin/.isqllog
fi
/u/informix/bin/isql.orig "$@"
I have read your script, It's Ok to know who launched
isql, date and time.
Now if I have well understood, to know who lanched isql commands (select, insert etc ...), I need to install Informix Trusted Facility.
It's the Online version, I remember when working with SE engine that we could get the results if we initialise a
SPOOL file. Is there a similar way with Online ?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.