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.
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;
...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.