zoukankan      html  css  js  c++  java
  • oracle数据库用户删除及表空间删除 转

    以system用户登录,查找需要删除的用户:

    --查找用户

    select  * from dba_users;

    --查找工作空间的路径
    select * from dba_data_files; 

    --删除用户
    drop user 用户名称 cascade;
    --删除表空间
    drop tablespace 表空间名称 including contents and datafiles cascade constraint;

    例如:删除用户名成为LYK,表空间名称为LYK

    --删除用户,及级联关系也删除掉
    drop user LYK cascade;
    --删除表空间,及对应的表空间文件也删除掉
    drop tablespace LYK including contents and datafiles cascade constraint;

  • 相关阅读:
    7-4
    7-3
    第五章例5-2
    第五章例5-1
    第四章例4-12
    第四章例4-11
    第四章例4-10
    第四章例4-9
    第四章例4-8
    第四章例4-7
  • 原文地址:https://www.cnblogs.com/yss669/p/9964711.html
Copyright © 2011-2022 走看看