时间:2021-07-01 10:21:17 帮助过:25人阅读
CREATE PROFILE PRO_USER limit failed_login_attempts 5 password_lock_time 3 --SELECT * FROM DBA_PROFILES; --DROP PROFILE PRO_USER CASCADE; --关于PROFILE 设置,可以查看:http://blog.csdn.net/huang_xw/article/details/6530635 --创建账号 CREATE USER TEST identified by test profile pro_user default tablespace users quota 100m on users temporary tablespace temp password expire account unlock --select * from dba_users;
--修改密码 ALTER USER TEST IDENTIFIED BY NEWPWD; --修改PROFILE ALTER USER TEST PROFILE NEWPROFILE; --删除账号 DROP USER TEST [CASCADE];
--授系统权限
--语法 GRANT privilege [,privilege…] TO user [, user|role, PUBLIC…] [WITH ADMIN OPTION]; GRANT CREATE SESSION ,CREATE TABLE ,UNLIMITED TABLESPACE TO TEST; GRANT CONNECT ,RESOURCE TO TEST WITH ADMIN OPTION; --REVOKE CONNECT,RESOURCE FOM TEST; select * from dba_sys_privs; --查看系统权限
--授对象权限
--语法 GRANT object_privilege [columns…] ON object TO user [, user|role, PUBLIC…] [WITH GRANT OPTION]; GRANT SELECT ,UPDATE(EMPNO,SAL),INSERT,DELETE ON SCOTT.EMP TO TEST; REVOKE privilege ON object FROM {user|role|PUBLIC}; REVOKE SELECT ,UPDATE(EMPNO,SAL),INSERT,DELETE FROM TEST; select * from dba_tab_privs ; --查看对象权限
--角色
--角色与账号基本相同 ,角色可以授予给用户。
ORACLE 用户权限管理
标签:ica san 情况 角色 res global login 基本 family