dbTalk Databases Forums  

How to create a "read only" user with IngresNET login?

comp.databases.ingres comp.databases.ingres


Discuss How to create a "read only" user with IngresNET login? in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Johannes
 
Posts: n/a

Default Re: How to create a "read only" user with IngresNET login? - 03-24-2010 , 09:52 AM






Problem solved!

Here the steps:

1. Create Unix user
2. Set Ingres environment to Unix user
3. create DB user with same name than Unix user
4. create grant script with select 'grant select on
'+squeeze(table_name)+' to username'+'; commit;' from iitables where
table_owner = 'myowner' AND (table_type= 'T' OR table_type = 'V');
5. This was my major fault: execute the grant scripts in exclusiv mode
(there should be nobody working with the database, because inges needs
exclusiv rights on the tables during grant statements)
6. Stopping and starting ingres again.


Thank you all for your support.

cheers
Johannes

On 8 Feb., 16:54, Ingres Forums <info-
ing... (AT) kettleriverconsulting (DOT) com> wrote:
Quote:
There shouldn't be any problem with the Ingrea/Net connect, provided
your vnode on the Ingres client (which is your DWH Server) is using same
connection information (remote address, protocol, listen address) as the
one which is working.
Can you do a remote login (e.g. using "rlogin" or "telnet" - not just a
"su username") from your client to the server machine using your new
user's credentials?
Have you tested the (private) vnode using the "Test" item in "netutil"?

--
Bodo
------------------------------------------------------------------------
Bodo's Profile:http://community.ingres.com/forum/member.php?userid=16
View this thread:http://community.ingres.com/forum/sh...ad.php?t=11633

Reply With Quote
  #22  
Old   
Ingres Forums
 
Posts: n/a

Default Re: How to create a "read only" user with IngresNET login? - 03-24-2010 , 11:36 AM






I don't see any reason why you have to do steps 5 and 6.
Ingres doesn't require exclusive DB access to do grants.
It just requires an exclusive lock on the table, but provided your
other users commit their transactions where the table is involved this
shouldn't be a problem.
Once the grant is commited the table is immediately accessible by the
grantee, so no reason to restart the DBMS.


--
Bodo

Reply With Quote
  #23  
Old   
Johannes
 
Posts: n/a

Default Re: How to create a "read only" user with IngresNET login? - 03-24-2010 , 04:07 PM



I am not an expert on this,
but if I tried to execute the grant script (serveral times) we got a
lot of logical locks
which could not be solved by killing the specific process number.
It seems to be a deadlock scenario.
But it is also possible that this was a result of bad software design.

I took my chance in a scheduled downtime and it works without any
problems
with exclusiv access.

Johannes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.