先登錄有dba權(quán)限的用戶
sqlplus sys/dwh as sysdba;
創(chuàng)建用戶設(shè)置密碼
create user aaa
idetified by pwd;
然后賦予權(quán)限鏈接權(quán)限
grant connect to aaa;
賦予查詢的權(quán)利
grant select on emp to aaa;
回收權(quán)限
revoke select on emp from aaa;
先登錄有dba權(quán)限的用戶
sqlplus sys/dwh as sysdba;
創(chuàng)建用戶設(shè)置密碼
create user aaa
idetified by pwd;
然后賦予權(quán)限鏈接權(quán)限
grant connect to aaa;
賦予查詢的權(quán)利
grant select on emp to aaa;
回收權(quán)限
revoke select on emp from aaa;