grant alter any table to jack;(不能授予其他人权限)
grant alter any table to jack with admin option;
(带上with admin option就可以在授予其他人权限)
grant alter any table to rose with admin option;
grant select On mytab to jack with grant option;
grant select On mytab to rose with grant option;
create role myrole;(创建一个角色)
grant create session to myrole;(添加权限)
grant create table to myrole;(添加权限)
grant myrole to rose;(把角色授权给rose)
2 create table
3 create any table
4 [alter table] alter any table
5 [drop table] drop any table
6 表是属于某一个用户的
7 角色不属于某一个用户的
grant unlimited tablespase to myrole;
sys修改scott的密码:
sqlplus / as sysdba
alter user scott identified by tiger;
数据库的三种验证机制
1 操作系统验证
2 密码文件验证
3 数据库验证
Linux 下Oracle的启动过程
1 lsnrctl start
2 sqlplus sys/oracle as sysdba(新版本)
sqlplus /nolog(老版本)
conn sys/ooracle as sysdba(老版本)
3 sys正确的话 startup 启动实例
1 lsnrctl start
2 oradim -starup -sid orcl
2 用orapwd命令创建新的密码文件
Usage: orapwd file=<路径> password=<密码> entries=<放几个特权用户> force=<是否覆盖>
3 查看有几个特权用户命令:select * from v$pwfile_users;
















