删除1、创建表空间、删除表空间
create tablespace 表名
datafile '路径名(.dbf结尾)' datafile(默认表空间)
size 1m
autoextend on; 自动延伸
create tablespace ts_erp
datafile 'D:\oracle\product\10.2.0\oradata\orcl\ts_erp.dbf'
size 1m
autoextend on;
删除表空间语句
drop tablespace 表空间名
including contents and datafiles;(包括内容和数据文件)
drop tablespace ts_erp
including contents and datafiles;
2、给用户授权,回收权限
grant 授权
revoke 回收权限
GRANT CONNECT,RESOURCE TO erpdev;
REVOKE CONNECT,RESOURCE FROM erpdev
3、创建用户并指定默认表空间
create user 用户名identified by 用户密码
default tablespace 表空间名;
create user erpdev identified by erpdev123
default tablespace ts_erp;
4、创建表、并修改