使用navicat 导入oracle 数据泵时
--查询表空间信息 SELECT a.tablespace_name,a.bytes / 1024 / 1024 "表空间大小(M)",( a.bytes - b.bytes ) / 1024 / 1024 "已使用空间(M)",b.bytes / 1024 / 1024 "空闲空间(M)",Round(( ( a.bytes - b.bytes ) / a.bytes ) * 100,2) "使用比率" FROM (SELECT tablespace_name,SUM(bytes) bytes FROM dba_data_files GROUP BY tablespace_name) a,(SELECT tablespace_name,SUM(bytes) bytes,Max(bytes) largest FROM dba_free_space GROUP BY tablespace_name) b WHERE a.tablespace_name = b.tablespace_name ORDER BY ( ( a.bytes - b.bytes ) / a.bytes ) DESC --查看表空间对应的datafile的信息 SELECT file_name,tablespace_name,bytes / 1024 / 1024 "bytes MB",maxbytes / 1024 / 1024 "maxbytes MB" FROM dba_data_files WHERE tablespace_name = 'DJGL_DATA'; --查看表空间对应的datafile是否可以自动扩展 SELECT file_id,file_name,autoextensible,increment_by FROM dba_data_files WHERE tablespace_name = 'DJGL_DATA' ORDER BY file_id DESC;确认表空是否可以自动扩展,以及表空间空闲大小
alter database datafile '全路径的数据文件名称' resize ***M;改变表空间大小