本文主要是介绍oracle新建用户和表空间,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用SYSTEM或...登陆
--建立数据库用户
create user 用户名 identified by 密码default tablespace 表空间名
temporary tablespace temp
quota 0 on system
quota unlimited on 表空间名;
Grant CONNECT,RESOURCE,dba TO 用户名;
查询数据库的表空间名:
select tablespace_name from dba_tablespaces;
-- 赋予权限
grant connect to 用户名 with admin option;
-- 角色
grant DBA to 用户名 with admin option;
这篇关于oracle新建用户和表空间的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!