oracle用户管理

3个默认用户
sys change_on_install [as sysdba]
system manager
scott tiger
创建用户
create user lisi identified by lisi;
系统权限
grant create session to lisi;
grant create table to lisi;
grant unlimited tablespace to lisi;

revoke create session from lisi;
revoke create table from lisi;
revoke unlimited tablespace frmo lisi;


grant create session to public;

select * from user_sys_privs;
对象权限
grant select on mytable to lisi;
grant all on mytable to lisi;


revoke select on mytable from lisi;

select * from user_col_privs;
权限的传递
grant alter any talbe to lisi with admin option;
grant select on A to lisi with grant option;
角色
create role myroles;
grant create session to myroles;
drop role myroles;
注意:有些系统权限无法直接赋予角色
create table create any table
alter table alter any table
drop table drop any table
表是属于某一个用户的
角色不属于某个
数据库的三种验证机制
操作系统验证
密码文件验证
数据库验证
linux下oracle的启动过程
lsnrctl start
//sqlplus sys/oralce as sysdba
sqlsplus /nolog
conn sys/oracle as sysdba
startup
windows下oracle的启动过程
lanrctl start
oradmin -startup -sid orcl
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值