【发布时间】:2016-12-13 09:32:10
【问题描述】:
我有一个 Oracle XE 数据库,SYSAUX.DBF 文件为 14GB。
我运行这个脚本:
select occupant_desc, space_usage_kbytes
from v$sysaux_occupants
where space_usage_kbytes > 0 order by space_usage_kbytes desc;
结果如下:
XDB 385920
Server Manageability - Automatic Workload Repository 92608
Server Manageability - Optimizer Statistics History 68352
Oracle Spatial 48896
Unified Job Scheduler 29888
LogMiner 12544
Server Manageability - Advisor Framework 7808
Server Manageability - Other Components 6720
Oracle Text 6272
Transaction Layer - SCN to TIME mapping 3328
SQL Management Base Schema 1728
PL/SQL Identifier Collection 1664
OLAP API History Tables 1536
Analytical Workspace Object Table 1536
Logical Standby 1408
Oracle Streams 1024
Automated Maintenance Tasks 320
所以,它只有 655MB。
当我尝试运行时:
alter database datafile 'C:\oraclexe\app\oracle\oradata\XE\SYSAUX.DBF' resize 1000m;
我收到了这个错误:
SQL Error: ORA-03297: file contains used data beyond requested RESIZE value
03297. 00000 - "file contains used data beyond requested RESIZE value"
*Cause: Some portion of the file in the region to be trimmed is
currently in use by a database object
*Action: Drop or move segments containing extents in this region prior to
resizing the file, or choose a resize value such that only free
space is in the trimmed.
谁能帮助我如何减少我的 SYSAUX.DBF 文件?
【问题讨论】: