zoukankan      html  css  js  c++  java
  • ORA-01654 索引 无法通过 表空间扩展

    "ORA-01654: 索引VGSM.AUDIT_DATA_I无法通过8192(在表空间KLDB中)扩展"
     
    1.有可能是索引表空间不够
    select sum(bytes/1024/1024) sizeMB from dba_free_space z where z.tablespace_name='KLDB'
      还有400M的剩余空间 应该足够。
     
    但是通过查询发现是 
    select s.index_name,
           s.table_name,
           s.tablespace_name,
           s.initial_extent,
           s.next_extent
      from user_indexes s
     where s.index_name = 'AUDIT_DATA_ID'
     
     
        INDEX_NAME TABLE_NAME TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT
    IDX_INVALID_PICNAME T_INVALID_PICTURES DIMS_INVALID_PICTURE2 40960 732576768
    该索引的 NEXT_EXTENT 过大
     
    select file_name,tablespace_name,bytes/1024/1024 from dba_data_files where tablespace_name='KLDB'
     
     
    select sum(bytes/1024/1024) sizeMB from dba_free_space z where z.tablespace_name='KLDB'
    通过计算 400M的剩余空间
    不能满足 NEXT_EXTENT 的700MB空间
    所以通过加大数据文件
    alter database datafile 'D:ORACLEORADATADMSDBDIMS_INVALID_PICTURE2.DBF' resize 1000M
     
    2 这种问题存在不合理的设计 明显要杜绝
     
    重建该索引 
     
    alter index index_name rebuild tablespace indexes storage(initial 256K next 256K pctincrease 0):
    怀揣着一点点梦想的年轻人
    相信技术和创新的力量
    喜欢快速反应的工作节奏
  • 相关阅读:
    17. Letter Combinations of a Phone Number
    16. 3Sum Closest
    15. 3Sum
    14. Longest Common Prefix
    13. Roman to Integer
    12. Integer to Roman
    11. Container With Most Water
    10. Regular Expression Matching
    9. Palindrome Number
    8. String to Integer (atoi)
  • 原文地址:https://www.cnblogs.com/langtianya/p/6567881.html
Copyright © 2011-2022 走看看