zoukankan      html  css  js  c++  java
  • oracle账户锁定解决方法

      今天进使用orcle中,发现系统中,system账户登录里提示账户被锁定 ,后来查了查资料,问题解决,方法如下:

        Microsoft Windows [版本 5.2.3790]

        (C) 版权所有 1985-2003 Microsoft Corp.

        C:Documents and SettingsAdministrator>sqlplus /nolog

        SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 6月 24 10:43:39 2009

        Copyright (c) 1982, 2005, Oracle.  All rights reserved.

        SQL> conn /as sysdba

        已连接。

        SQL> alter user system account unlock;

        用户已更改。

        SQL> exit

        从 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

        With the Partitioning, OLAP and Data Mining options 断开

        C:Documents and SettingsAdministrator>sqlplus

        SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 6月 24 10:45:26 2009

        Copyright (c) 1982, 2005, Oracle.  All rights reserved.

        请输入用户名:  system

        输入口令:

        连接到:

        Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

        With the Partitioning, OLAP and Data Mining options

        SQL>

        至此账户解锁成功:)

    在创建数据库时,已经为SYS等4个账户设定了口令,其中SYS与SYSTEM具有管理员权限,在SQL*Plus工具中使用SYSTEM账户登录Oracle数据库。

    1、通过数据字典dba_users,查看Oracle账户的锁定状态,如下:(v其中,OPEN表示账户为解锁状态;EXPIRED表示账户为过期状态(需要设置口令才能解除此状态);LOCKED表示账户为锁定状态。)

    二、下面使用ALTER USER语句为scott账户解锁:

         SQL> ALTER USER scott ACCOUNT UNLOCK;

       再使用ALTER USER语句为scott账户设置口令,如下:

        SQL> ALTER USER scott IDENTIFIED BY tiger; 

       通过数据字典dba_users查看现在scott账户的状态,如下: 通过查询结果可以看出,scott账户已经被成功解锁。在使用数据字典dba_users时,需要注意其字段的值是区分大小的。

  • 相关阅读:
    C++ 字符数组
    C++ 从函数返回数组
    C++给函数传数组参数
    串行通信的三种方式
    进程间通信pipe和fifo
    嵌入式开发基本知识
    查找算法
    排序算法
    offsetof与container_of宏[总结]
    uboot自定义添加命令
  • 原文地址:https://www.cnblogs.com/jinjiangongzuoshi/p/3907900.html
Copyright © 2011-2022 走看看