如何删除数据库用户及用户下所有表,同义词等等
    我在redhat linux 9上建了两个oracle的数据库及用户,现想删除其中一个,如何执行

解决方案 »

  1.   

    begin
     for c in(select table_name from user_tables) loop
     execute immdiate 'drop '||c.table_name;
    end loop;
    end;
      

  2.   

    这些语句在sqlplus 环境下输入?
      

  3.   

    不对呀   
     drop 后要加table 才能删除吧
      drop table tablename;
     
    有什么方法简单点
    不是光删表
    还要删库和用户
      

  4.   

    drop user A cascade;
    删除用户A以及A的所有对象
      

  5.   

    用oracle自带的数据库配置助手删不更好吗
      

  6.   

    用oracle自带的数据库配置助手删不更好吗
      

  7.   

    我有同样疑问,在用drop user a cascade时提示不存在a这个用户,可是我才建了这个用户,这个是什么问题?请高人指点。