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 > restrict connections to database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-05, 12:45
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
restrict connections to database

What is the db2 7.1 equilavent to the Oracle command 'startup restrict' ? The restrict mode does not allow users to connect to a database if they don't have sufficient authority.

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-04-05, 23:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
By default, connect privledge to a database is given to public when the database is created. So if you just revoke this authority (or any specific connect grants to id's you want to revoke), you shoud get what you want.
__________________
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
  #3 (permalink)  
Old 02-05-05, 12:49
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
It may be the quiesce database/instance command you want ...

You should be atleast on V8.1 to have this feature

Cheers
Sathyaram



Quote:
Originally Posted by redwolf
What is the db2 7.1 equilavent to the Oracle command 'startup restrict' ? The restrict mode does not allow users to connect to a database if they don't have sufficient authority.

Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 02-05-05, 18:06
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you want to only allow sysadm authority to have access to a database, then the quiesce ccommand should work fine. If you want other specific users to be able to connect (but not everyone) then you can control it by revoking their connect privledge.
__________________
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
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