查询表空间对应地址 *),) total_space from dba_data_files order by tablespace_name; //方案一:修改表空间大小(32000可改为想要的数值) alter database datafile '要修改的数据文件地址' resize 32000m; //方案二:新增数据文件 ALTER TABLESPACE 表空间名(例如USERS) ADD DATAFILE '新的数据文件路径' SIZE 500M AUTOEXTEND ON NEXT
1.SQL 查询(选择Schema为SYSPROC) SELECT SUBSTR(TABLESPACE_NAME,1,20) AS TBSPC_NAME, bigint(TOTAL_PAGES * PAGE_SIZE)/1024/1024 AS "TOTAL(MB)", used_pages*PAGE_SIZE/1024/1024 AS "USED(MB)", free_pages*PAGE_SIZE/1024/1024 AS "FREE(MB)"
,) percent_used 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.table
select t1.tablespace_name,curr_b/1024/1024/1024,max_b/1024/1024/1024,curr_b/max_b from(select tablespace_name,sum(maxbytes) max_b from dba_data_files group by tablespace_name) t1join(select tablespace_name,sum(bytes) curr_b from dba_segments group b
转载自http://blog.csdn.net/cuker919/article/details/8514253 select segment_name, bytes as 大小 from user_segments where segment_type = 'TABLE' and segment_name in ('VIEW_JLZDH_MP_DL_DAY_01','VIEW_JLZDH_MP_DL_DAY_02','VIEW_JLZDH_MP_DL_DAY_03', 'VIEW_JLZDH_
有两种含义的表大小.一种是分配给一个表的物理空间数量,而不管空间是否被使用.可以这样查询获得字节数: select segment_name, bytes from user_segments where segment_type = 'TABLE'; 或者 Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name 另一种表实际使用的空间.这样查询: analyze table emp c
一.Oracle12c导出数据 1.连接数据库 sqlplus / as sysdba 2.查看pdbs show pdbs; 3.切换pdb alter session set container=spdb1pdb; 4.指定dump存放路径 create directory dump as '/tmp/dumpdata'; 5.查询表空间及大小 select tablespace_name,sum(bytes)/1048576 from cdb_data_files group by tab