一 用命令方式创建
二 借助navicat工具创建
一 用命令方式创建
1.1 在sqlplus中用sys用户连接到数据库,执行创建表空间命令如下
create tablespace testgis datafile 'testgis.dbf' size 500m;

这里没有指定路径,他会默认存放到oralce安装目录下
d:\app\administrator\product\11.2.0\dbhome_1\database

可以通过查询语句查询表空间存放位置

而其他表空间是存放在d:\app\administrator\oradata\orcl

1.2 创建用户,指定表空间并授权
create user testgis identified by testgis
default tablespace testgis
temporary tablespace temp;
grant connect,resource to testgis;

二 借助navicat工具创建
2.1 sys用户连接上oracle数据库,选到其他下的表空间

2.2 新建表空间



2.3 创建用户

用户名要大写

授予权限并保存

2.4 用新用户登录

网友评论