Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix account with read only access!!

Status
Not open for further replies.

addu80

IS-IT--Management
Dec 16, 2008
3
US
Hello,

Please could you help with this..would like to create an Informix account with read only access at the database level. Also set no access for the HR tables along with read only access to the other tables.

Thanks in advance.

Adnan
 
Have a look at the GRANT instruction.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PH , Thanks for the response.

I get to know that i have to use the 'grant' command to provide the required access to new user. Please could you suggest, what command or syntax to use to provide read only access to Informix database or tables.
 
GRANT CONNECT TO newuser;
REVOKE ALL ON tablename1 FROM newuser;
GRANT SELECT ON tablename1 TO newuser;
REVOKE ALL ON tablename2 FROM newuser;
GRANT SELECT ON tablename2 TO newuser;
...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PH, this is helpful. I am wondering instead of providing tablespace name multiple times, can we provide read access to all the tablespaces in one command. there will be more than 1000 tables. Also please could you confirm this command only provides the read access to tables.

Thanks again.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top