登录管理员用户
sqlplus / as sysdba
创建表空间
使用select name from v$tempfile;查看表空间位置
创建
create tablespace UATERVICESPACE
datafile '/u01/oracle/oradata/ORCL/UATERVICESPACE.dbf'
size 1024m
autoextend on
next 100m
maxsize unlimited;
创建用户
create user UATUSER identified by "oracle2022" default tablespace UATERVICESPACE profile default account unlock;
授权
grant connect, resource to UATUSER;
grant unlimited tablespace to UATUSER;
删除用户:
drop user ZYDEVER;
ORALCE删除表空间:
-- 先将其下线
alter tablespace UATERVICESPACE offline;
-- 将磁盘上的数据文件一同删除
drop tablespace UATERVICESPACE including contents and datafiles;