sqlplus sys/password@sid as sysdba
sql>drop user xxx cascade;(删除用户下面的所有对象,注意关键字cascade)
drop tablespace xxx INCLUDING CONTENTS;(删除表空间)
create user user1 identified by password default tablespace users temporary temp;(创建user1,密码为password,使用的表空间为tablespace)
grant connect,resource,dba to user1;(赋予权限)
阅读(10927) | 评论(0) | 转发(0) |