인포믹스 권한 관련하여 일부 정리해봅니다.
AS grantor Clause
When you grant privileges, by default, you are the one who can revoke those privileges. The AS grantor clause lets you establish another user as the source of the privileges you are granting. When you use this clause, the login provided in the AS grantor clause replaces your login in the appropriate system catalog table. You can use this clause only if you have the DBA privilege on the database.
After you use this clause, only the specified grantor can REVOKE the effects of the current GRANT. Even a DBA cannot revoke a privilege unless that DBA is listed in the system catalog table as the source who granted the privilege.
REVOKE ALL on items FROM PUBLIC; GRANT ALL on items TO tom WITH GRANT OPTION;
GRANT SELECT, UPDATE on items TO jim AS tom;
REVOKE ALL on items FROM tom;
REVOKE SELECT, UPDATE on items FROM jim; 580: Cannot revoke permission.
You receive an error because the database server record shows the original grantor as user tom, and you cannot revoke the privilege. Although you are the DBA, you cannot revoke a privilege that another user granted.
The AS grantor clause is not valid in the GRANT DEFAULT ROLE statement.
http://publib.boulder.ibm.com/infocenter/idshelp/v115/topic/com.ibm.sqls.doc/ids_sqs_0123.htm
'Informix > informix reference' 카테고리의 다른 글
Determining how many CPUs you have on HP-UX (0) | 2013.04.02 |
---|---|
Determining how many CPUs you have under AIX (0) | 2013.04.02 |
Inserting Data into a BLOB Column (TEXT) using ESQL/C (0) | 2013.02.04 |
How to determine the number of concurrent connection/users on Informix server? (0) | 2013.01.29 |
Using Informix Dynamic Server backup and restore filters (0) | 2013.01.15 |