• Oracle解锁scott账户


    Oracle安装完成之后scott账户默认是锁定的,登录的时候会提示账户已经被锁定:

    C:UsersCC11001100>sqlplus scott/toor
    
    SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6月 8 22:21:27 2017
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    ERROR:
    ORA-28000: the account is locked
    
    
    请输入用户名:

    需要手动打开。

    使用安装时设定的sys密码登录,特权用户登录的时候必须带上as sysdba 或者as sysoper:

    C:UsersCC11001100>sqlplus sys/toor as sysoper
    
    SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 6月 8 22:12:43 2017
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    连接到:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    
    SQL>

    登录进去之后解锁scott账户:

    SQL> alter user scott account unlock ;
    
    用户已更改。

    修改scott的密码:

    SQL> alter user scott identified by toor ;
    
    用户已更改。

    再使用scott登录就可以登录成功了:

    C:UsersCC11001100Desktop>sqlplus scott/toor
    
    SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 6月 9 01:48:04 2017
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    连接到:
    Oracle Database 10g Release 10.2.0.1.0 - Production
    
    SQL> show user;
    USER 为 "SCOTT"

    .

  • 相关阅读:
    jar包和war包的介绍和区别
    Oracle中rownum的基本用法
    深入理解JVM—JVM内存模型
    Oracle数据库中序列(SEQUENCE)的用法详解
    jvm主内存与工作内存
    jvm虚拟机
    java 冒泡排序
    java二分查找
    java中split()特殊符号"." "|" "*" "" "]"
    java map的实现原理
  • 原文地址:https://www.cnblogs.com/cc11001100/p/6966920.html
Copyright © 2020-2023  润新知