If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
how to revent clients connect to database using CLP
Hi,
I'm looking for a way to prevent clients connect to database using CLP .
I want to allow them to connect only through a particular application.
Is it possible to define a trigger like after logon on oracle ?
Is there another way to do this?
you can write a script in shell / awk which will find out the applications which are connected to the system using CLP and then force / terminate them off. Schedule that script to run after an interval suitable for your environment.
__________________
Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
Starting in DB2 9.7 Fixpack 3, you can specify a stored procedure in the database configuration that will be executed each time an application connects to the database. You could probably put some code in the connect stored procedure that will do what you want. IBM DB2 9.7 for Linux, UNIX and Windows Information Center
Make certain that you Grant EXECUTE privilege to PUBLIC for the connect procedure that you specify.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390