//表空间概念,自行百度吧 //创建临时表空间
create temporary tablespace venn_temp
tempfile '/u01/app/oracle/oradata/venn/venn_temp01.dbf' //路径最好放到安装目录下,不容易误删
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//创建数据表空间 create tablespace venn_data
logging
datafile '/u01/app/oracle/oradata/venn/venn_data01.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//创建用户并指定表空间
create user venn identified by venn // user: venn passwd : venn
default tablespace venn_data
temporary tablespace venn_temp;
//给用户授予权限
grant dba,connect,resource to venn;
权限说明:
dba:拥有全部特权,是系统最高权限,只有DBA才可以创建数据库结构。
原文链接:https://www.f2er.com/oracle/212086.html