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 > Revoke authority on creating aliases

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-05, 10:35
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Revoke authority on creating aliases

Morning, Hope everyone are still able to function after consuming all the turkey they can lay their eyes on I know I did ate a ton.

Here is a dilema that I am faced.

we have a group that refuse to use two part name for the tables. They are login in using id = ABC, tables are creatd under schema XXX. So, they are constantly getting table ABC.tab1 can't be found.

They demand that we create a bunch of aliases for them, which we are not going to do for varius reasons. It will create a housekeeping nightmare to begin with. Plus, they have that ability now to do it them selfs and we are not babysitters.

Now to force them to code properly and stop creating hundreds of aliases we have to disable their ability to create aliases them self. They obviusly don't need IMPLICIT_SCHEMA because they are creating them in their own schema. So, the only thing is left is to revoke CREATEIN abilitty.

Now, it apears to be a double sided sword. If we do that we will revoke their ability to create table, which I am not sure we can do because of their application needs.

Any recomendations on how to prevent them from creating alias beside a smack on a head

Thank you.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #2 (permalink)  
Old 11-25-05, 19:38
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
From the moment they cannot use aliases anymore, they will start using synonyms or views ...
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 11-28-05, 08:53
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Talking

Quote:
Originally Posted by Peter.Vanroose
From the moment they cannot use aliases anymore, they will start using synonyms or views ...
Youa re saying that beating will continue until moral improves
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #4 (permalink)  
Old 11-28-05, 11:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Just a thought :
If you are using ODBC connectivity, you can include the CURRENTSCHEMA keyword in the db2cli.ini file
or
if using JDBC(eg. Webspher) you should be able to set the schema as a datasource property.

Cheers
Sathyaram
Reply With Quote
  #5 (permalink)  
Old 11-28-05, 12:00
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by sathyaram_s
Just a thought :
If you are using ODBC connectivity, you can include the CURRENTSCHEMA keyword in the db2cli.ini file
or
if using JDBC(eg. Webspher) you should be able to set the schema as a datasource property.

Cheers
Sathyaram
They have been told about those and some other choices back in April and they keep coming back.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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