Unix Technical Forum

deny access to one of two databases in same instance?

This is a discussion on deny access to one of two databases in same instance? within the Informix forums, part of the Database Server Software category; --> Hi all. I have a server that has a single instance of informix but houses two production databases. I ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:39 AM
sumGirl
 
Posts: n/a
Default deny access to one of two databases in same instance?

Hi all. I have a server that has a single instance of informix but
houses two production databases. I have a bunch of maintenance to do
on one of the databases this weekend that will not affect the other
database in any way. I am wondering if theres a good way or even a
hack that would allow me to keep everyone out of one database but
allow them in the other?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:39 AM
Jonathan Leffler
 
Posts: n/a
Default Re: deny access to one of two databases in same instance?

sumGirl wrote:

> Hi all. I have a server that has a single instance of informix but
> houses two production databases. I have a bunch of maintenance to do
> on one of the databases this weekend that will not affect the other
> database in any way. I am wondering if theres a good way or even a
> hack that would allow me to keep everyone out of one database but
> allow them in the other?


Presumably, you've considered:

dbaccess - - <<!
database locked_out exclusive;
....the rest of your work...
!

And rejected it.

You can also do:
dbaccess locked_out - <<!
revoke connect from public;
revoke dba from [...list of DBAs...];
revoke resource from [...list of ex-DBAs and Resourceful users...]
revoke connect from [...list of ex-DBAs and ex-Resourceful users and
connectable users...]
!

You'd have to keep records of who had which permission, of course.
AFAICR, revoking access rights like this does not damage the
table-level access rights, so when you reinstate the previous rights,
once you're done, you're home. You should verify that first, of course.

It isn't ideal - but it's about the best I can come up with on the
spur of the moment.

Even a single-user admin mode would keep people out of the instance
rather than out of the database (singular).

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 07:40 AM
Neil Truby
 
Posts: n/a
Default Re: deny access to one of two databases in same instance?

Or how about renaming the database you want to be locked out for the
duration of your work?


"Jonathan Leffler" <jleffler@earthlink.net> wrote in message
news:s9B1d.4$0i5.0@newsread3.news.pas.earthlink.ne t...
> sumGirl wrote:
>
> > Hi all. I have a server that has a single instance of informix but
> > houses two production databases. I have a bunch of maintenance to do
> > on one of the databases this weekend that will not affect the other
> > database in any way. I am wondering if theres a good way or even a
> > hack that would allow me to keep everyone out of one database but
> > allow them in the other?

>
> Presumably, you've considered:
>
> dbaccess - - <<!
> database locked_out exclusive;
> ...the rest of your work...
> !
>
> And rejected it.
>
> You can also do:
> dbaccess locked_out - <<!
> revoke connect from public;
> revoke dba from [...list of DBAs...];
> revoke resource from [...list of ex-DBAs and Resourceful users...]
> revoke connect from [...list of ex-DBAs and ex-Resourceful users and
> connectable users...]
> !
>
> You'd have to keep records of who had which permission, of course.
> AFAICR, revoking access rights like this does not damage the
> table-level access rights, so when you reinstate the previous rights,
> once you're done, you're home. You should verify that first, of course.
>
> It isn't ideal - but it's about the best I can come up with on the
> spur of the moment.
>
> Even a single-user admin mode would keep people out of the instance
> rather than out of the database (singular).
>
> --
> Jonathan Leffler #include <disclaimer.h>
> Email: jleffler@earthlink.net, jleffler@us.ibm.com
> Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 07:40 AM
sumGirl
 
Posts: n/a
Default Re: deny access to one of two databases in same instance?

More than I had hoped for, thanks Jonathan!

\Jonathan Leffler <jleffler@earthlink.net> wrote in message news:<s9B1d.4$0i5.0@newsread3.news.pas.earthlink.n et>...
> sumGirl wrote:
>
> > Hi all. I have a server that has a single instance of informix but
> > houses two production databases. I have a bunch of maintenance to do
> > on one of the databases this weekend that will not affect the other
> > database in any way. I am wondering if theres a good way or even a
> > hack that would allow me to keep everyone out of one database but
> > allow them in the other?

>
> Presumably, you've considered:
>
> dbaccess - - <<!
> database locked_out exclusive;
> ...the rest of your work...
> !
>
> And rejected it.
>
> You can also do:
> dbaccess locked_out - <<!
> revoke connect from public;
> revoke dba from [...list of DBAs...];
> revoke resource from [...list of ex-DBAs and Resourceful users...]
> revoke connect from [...list of ex-DBAs and ex-Resourceful users and
> connectable users...]
> !
>
> You'd have to keep records of who had which permission, of course.
> AFAICR, revoking access rights like this does not damage the
> table-level access rights, so when you reinstate the previous rights,
> once you're done, you're home. You should verify that first, of course.
>
> It isn't ideal - but it's about the best I can come up with on the
> spur of the moment.
>
> Even a single-user admin mode would keep people out of the instance
> rather than out of the database (singular).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com