时间:2021-07-01 10:21:17 帮助过:17人阅读
结果如下:
删除临时表空间的语句:DROP TABLESPACE sgm_temp INCLUDING CONTENTS AND DATAFILES;
create tablespace sgm
datafile ‘D:\1data\oracle\datafile\sgm.dbf‘
size 1024m
autoextend on
next 50m maxsize 2048m
extent management local;
数据表空间不够用还可以再加:
alter tablespace sgm add datafile ‘D:\1data\oracle\datafile\sgm1.dbf‘ size 1024m autoextend on;
create user sgm identified by orcl
default tablespace sgm
temporary tablespace sgm_temp;
grant sysdba to sgm;
这几步完成后就可以用sgm/orcl登录了
查看oracle表空间和剩余容量:
select t.tablespace_name,round(sum(bytes/(1024*1024)),0) ts_size
from dba_tablespaces t,dba_data_files d
where t.tablespace_name = d.tablespace_name
group by t.tablespace_name;
查看数据库实例名称:
select instance_name from v$instance;
44.oracle表空间的使用
标签:单位 授权 src drop 逻辑 是你 data 用户 ble