您的位置:首页 > 数据库 > Oracle

Oracle配置文件与管理员密码丢失

2020-03-05 00:12 639 查看

一、(配置文件)Profile

  1. 锁定口令:
    1)创建profile文件:
    SQL> create profile myprofile(配置文件名)
    2 limit failed_login_attempts 3 (只允许最多验证3次)
    3 password_lock_time 2 (3次错误,锁定2天)
  2. 分配profile给用户scott :
    alter user scott profile myprofile
  3. 终止口令:
    eg:要求用户15天内必须修改密码(且宽限3天):
    SQL> create profile myprofile1
    2 limit password_life_time 15
    3 password_grace_ time 3
  4. 删除profile:
    SQL>drop profile +myprofile(profile文件名) +cascade(有联系时加入);

二、丢失管理员密码
dos控制台下:
orapwd file =原密码文件全路径\密码文件名.ora
password = 新密码 entries=10;
(entries=10 ,允许有10个特权用户)

  • 点赞
  • 收藏
  • 分享
  • 文章举报
At曦 发布了4 篇原创文章 · 获赞 0 · 访问量 200 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐