Remember a new oracle user and assign permissions to the specified table operation records

1. Log

2. Create user
create user new username identified by password
to create a new user name of the user

3. Authorizes the new user name of the user connection, resource permissions.
grant connect, resource to new user name

4. Specify the table authorization query privileges.
grant select on old user name .T_CSL_A to new username
grant select on old user name .T_ORG_B to new username
grant select on old user name .T_CSL_C to new username
grant select on old user name .T_BD_D to new user name
to cancel permission
revoke select on old user name .T_CSL_A from new user name; - cancel permission
revoke select on old user name .T_ORG_B from new user name; - cancel permission
revoke select on old user name .T_CSL_C from new user name; - canceled permissions
revoke select on old user name .T_BD_D from new user name; - cancel permission
5. create a synonym
Login
GRANT cREATE sYNONYM tO new user name
revoke create synonym from new user name; - revoke permission
empowerment
grant select on T_CSL_A to new username;
Grant the SELECT ON T_ORG_B to new new user name;
Grant the SELECT ON T_CSL_C to new new user name;
Grant the SELECT ON T_BD_D to new new user name;

Create private synonyms:
the Create or the replace synonym for Old T_CSL_A user name .T_CSL_A;
the Create or the replace synonym for Old T_ORG_B user name .T_ORG_B;
the Create or the replace synonym for Old T_CSL_C user name .T_CSL_C;
the Create or the replace synonym for Old T_BD_D user name. T_BD_D;

Drop synonym T_CSL_A - delete a synonym
Drop synonym T_ORG_B - delete a synonym
Drop synonym T_CSL_C - delete a synonym
Drop synonym T_BD_D - Delete Synonym

 

Guess you like

Origin www.cnblogs.com/yhuiyan/p/11532875.html