今天整公司的云服务器,有数据库、服务,下边介绍下数据库创建表空间语句
1、创建临时表空间
2、创建数据表空间
- create tablespace data logging datafile'/home/oracle/oradata/data.dbf' size 1024m
- autoextend on next 100m maxsize 10240m extent management local;
3、创建用户并指定表空间和一般权限
- create user orcle IDENTIFIED BY orcle
- default tablespace data
- temporary tablespace data_temp
- profile DEFAULT;
- grant connect to orcle;
- grant resource to orcle;
- grant create any view to orcle;
- grant drop any view to orcle;
- grant unlimited tablespace to orcle;