创建oracle用户及删除用户

创建用户

create user 用户名
identified by “密码”
default tablespace 表空间名
temporary tablespace 临时表空间名
profile DEFAULT
quota unlimited on 表空间名;
– Grant/Revoke object privileges
grant read on directory SYS.DATA_PUMP_DIR to 用户名;
– Grant/Revoke role privileges
grant connect to 用户名;
grant exp_full_database to 用户名;
grant imp_full_database to 用户名;
grant resource to 用户名;


–删除用户
drop user 用户名称 cascade;

–删除用户,及级联关系也删除掉
drop user ABC cascade;

你可能感兴趣的:(数据库)