Home > Database > Mysql Tutorial > body text

Oracle用户被锁的原因以及解决办法

WBOY
Release: 2016-06-07 17:40:11
Original
1242 people have browsed it

在登陆时被告知test用户被锁1、用dba角色的用户登陆,进行解锁,先设置具体时间格式,以便查看具体时间SQLaltersessionsetnls_date_format=yyyy-mm-ddhh24:mi:ss

在登陆时被告知test用户被锁

1、用dba角色的用户登陆,进行解锁,先设置具体时间格式,香港服务器租用,以便查看具体时间

  • Session altered.  
  • 2、查看具体的被锁时间

    3、解锁

  • User altered.  
  • 4、查看是那个ip造成的test用户被锁

    查看/home/oracle/OraBase/diag/tnslsnr/hzwebdb11g/listener/alert/log.xml日志

    发现10.224.182.161这个IP连接数据库失败锁住数据库,香港服务器,香港服务器,改掉这个server的密码

    一般数据库默认是10次尝试失败后锁住用户

    1、查看FAILED_LOGIN_ATTEMPTS的值

  • select * from dba_profiles 
  • 2、修改为30次

  • alter profile default limit FAILED_LOGIN_ATTEMPTS 30; 
  • 3、修改为无限次(为安全起见,不建议使用)

  • alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;   
  •  

    本文出自 “迈小步、不停步!” 博客,谢绝转载!

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!