1.进入cmd窗口

2.超级用户登录:sqlplus / as sysdba 回车


3.添加表空间文件

ALTER TABLESPACE 表空间名称 ADD DATAFILE 'G:\app\Administrator\oradata\orcl\USERS04.DBF' SIZE 200M AUTOEXTEND ON NEXT 500M MAXSIZE 30000M;


4.查看oracle数据库表空间使用率

select b.file_name 物理文件名, b.tablespace_name 表空间, b.bytes/1024/1024 大小M, (b.bytes-sum(nvl(a.bytes,0)))/1024/1024 已使用M, substr((b.bytes-sum(nvl(a.bytes,0)))/(b.bytes)*100,1,5) 利用率 from dba_free_space a,dba_data_files b where a.file_id=b.file_id group by b.tablespace_name,b.file_name,b.bytes order by b.tablespace_name