zoukankan      html  css  js  c++  java
  • [Oracle]开启SCOTT账户

    学习测试使用oracle内置数据库scott

    • 查看账户状态
    SQL> select username,account_status from dba_users where username='SCOTT';
    
    USERNAME
    --------------------------------------------------------------------------------
    ACCOUNT_STATUS
    --------------------------------------------------------------------------------
    SCOTT
    # 被锁
    EXPIRED & LOCKED
    
    • 重置密码为password并解锁
    SQL> alter user SCOTT account unlock identified by password;
    
    User altered.
    SQL> select username,account_status from dba_users where username='SCOTT';
    
    USERNAME
    --------------------------------------------------------------------------------
    ACCOUNT_STATUS
    --------------------------------------------------------------------------------
    SCOTT
    # 解锁并打开
    OPEN
    
    • 登录验证
    sqlplus scott/password@10.1.30.139:1521/orcl
    
    SQL*Plus: Release 11.2.0.4.0 Production on Mon Mar 23 13:05:14 2020
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    
    SQL>
    

    END

  • 相关阅读:
    oracle查询当天数据三种方式性能对比
    APPCAN IDE中安装emmet插件
    MAS 移动业务整合系统
    SDK 移动应用开发系统
    移动应用开发平台介绍
    安装Sublime Text 3插件的方法
    2014勿勿已过,2015已迎面而来
    入驻博客园
    zkw线段树
    贪心题
  • 原文地址:https://www.cnblogs.com/leoshi/p/12551600.html
Copyright © 2011-2022 走看看