SQLException: ORA-01653: unable to extend table ... by 1024 in tablespace RISK_DATA

輸入圖片說明

查找結果發現是空間不足, 須要增長數據文件。oracle

檢查過程app

/* Formatted on 2018/3/8 14:24:38 (QP5 v5.256.13226.35510) */
  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;

輸入圖片說明

/* Formatted on 2018/3/8 14:26:38 (QP5 v5.256.13226.35510) */ SELECT * FROM dba_data_files WHERE tablespace_name = 'RISK_DATA';spa

輸入圖片說明

處理方法code

對應數據文件 alter tablespace RISK_DATA add datafile '/u01/app/oracle/oradata/ab/RISK_DATA_02.dbf' size 5120Morm

輸入圖片說明

相關文章
相關標籤/搜索