当前位置: 移动技术网 > IT编程>数据库>Oracle > oracle创建表空间+创建用户

oracle创建表空间+创建用户

2020年08月11日  | 移动技术网IT编程  | 我要评论

创建表空间

create tablespace itheima --指定数据文件所在的位置 datafile 'c:\itheima.dbf' --初始大小 size 100m --自动扩展大小 autoextend on --每一次扩展的大小是10m next 10m; 

删除表空间的语句

drop tablespace 表空间的名字 

创建用户

--创建用户的语句 create user itheima --指定用户的密码 identified by itheima --指定用户是哪个表空间的 default tablespace itheima; 

给用户授权,负责无法登陆

--给用户授权 --oracle数据库中常用角色 connect--连接角色,基本角色 resource--开发者角色 dba--超级管理员角色 

给itheima用户授予dba角色

grant dba to itheima 

本文地址:https://blog.csdn.net/m0_47298981/article/details/107891004

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网