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.

 
Go Back  dBforums > Database Server Software > DB2 > how to revent clients connect to database using CLP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-10, 09:54
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
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?
Reply With Quote
  #2 (permalink)  
Old 10-19-10, 10:11
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You might be able to use Workload Manager for that.
Reply With Quote
  #3 (permalink)  
Old 10-19-10, 17:43
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
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
Reply With Quote
  #4 (permalink)  
Old 10-19-10, 22:14
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
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
Reply With Quote
  #5 (permalink)  
Old 10-20-10, 03:44
Elin Elin is offline
Registered User
 
Join Date: Oct 2010
Posts: 34
Tks , i will try it

Thank you about the solution, I wil try it .
We are thinking about upgrade the db to v9.7 (from 9.5) , so it will be usefull for us.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On