权限的维护:
  希望Scott用户可以去查询owner的emp表,Scott可以将查询权限授予别人。
  a:如果是对象权限,加入with  grant  option
  grant select on owner.emp to scott with grant option;
  b:如果是系统权限 with admin option
  grant connect to  scott with admin option; //scott可以将这种权限向下传递
  若owner——>scott——>xiaoming,owner将scott对表的查询权限回收了,那xiaoming还有没有权限。这样xiaoming 的查询权限也被回收。即:级联回收~
  用户口令:
  用profile管理用户口令
  (1)账户锁定:
  create  profile   lock_account  limit  failed_login_attempts 3 password_lock_time 2; //创建profile文件  ,2代表锁定的天数
  alter user  xiaoming   profile   lock_accout;  //将这个文件用于xiaoming
  (2)给账户解锁:(dba权限)
  alter user  tea  accont  unlock;
  (3)终止口令(dba身份)
  create profile  myprofile  limit  password_life_time  10  password_grace_time  2;//每隔10天修改自己的密码,宽限期为2天
  alter  user  tea  profile  myprofile//把这个文件分配给xx
  (4)口令密码:在修改密码时,不能使用以前使用过的密码
  create  profile  password_history  limit password_life_time 10  password_grace_time 2 password_reuse_time 10
  password_reuse_time  //指定口令可以重用时间,即10天后可以重用
  分配给用户
  (5)删除profile
  drop  profile  password_history  [cascade]级联,将相关的全部删除。