zoukankan      html  css  js  c++  java
  • oracle 删除用户,提示“无法删除当前已连接的用户”

    1. 首先查询出该用户的登录情况,注意用户名必须是大写

            

    SQL> select username,sid,serial# from v$session where username = 'XSTRMADMIN';

    USERNAME                              SID    SERIAL#
    ------------------------------ ---------- ----------
    SYS                                   136        530
    SYS                                   137        328
    SYSMAN                                138         12
    UTEST                                 139       1098
    SYSMAN                                140         12
                                          142         40
    SYSMAN                                143         52
    SYS                                   144       1023
    SYS                                   148       2634
                                          152          4
                                          154          1
    SYS                                   158        280 


    2. 指定需删除的 SID和SERIAL#,然后删除连接

    SQL> alter system kill session '139,1098';

    3. 删除用户

    drop user XSTRMADMIN cascade;



  • 相关阅读:
    vue动态绑定class的几种方式
    寒假阅读笔记之《人月神话》
    人月神话阅读笔记1
    寒假阅读笔记之《构建之法》2
    寒假阅读笔记之《构建之法》
    家庭记账本APP(7)
    家庭记账本APP(6)
    家庭记账本APP(5)
    家庭记账本APP(4)
    家庭记账本APP(3)
  • 原文地址:https://www.cnblogs.com/moonciki/p/8145839.html
Copyright © 2011-2022 走看看