問題描述:
ORA-01683: 索引 HB.PK_T1703_HISDATA_1M 分區 SYS_P9572 無法通過 128 (在表空間 TS_1703_INDEX 中) 擴展:
原因:表空間滿了導致數據寫不進庫;
解決方案:新建表空間。等這些緩存文件跑完數據就恢復了。
解決步驟:
1、打開PL/SQL客戶端,輸入賬號信息,選擇數據庫,點擊【OK】登錄:
2、新建SQL Windows,查看表空間使用情況:
select a.tablespace_name,total,free,total-free used,a.file_name from
( select tablespace_name,sum(bytes)/1024/1024 total,file_name from dba_data_files
group by tablespace_name,file_name) a,
( select tablespace_name,sum(bytes)/1024/1024 free from dba_free_space
group by tablespace_name) b
where a.tablespace_name=b.tablespace_name
and a.tablespace_name='TS_1703_INDEX';
3、增加表空間大小
--新增表空間
create tablespace ts_aw_c03
logging
datafile 'd:\app\Administrator\product\tablespace\ts_aw.dbf'
size 10M
autoextend on
next 5M
maxsize 20480M;
alter user DBusername identified by DBPassword default tablespace ts_aw_c03;
--修改表空間
alter tablespace TS_1703_INDEX
add datafile '/oracleDB/oradata/ORCL4/BA069EFF266D2312E0530481BC0A6791/datafile/TS_1703_INDEX_20211210.dbf'
size 100m
autoextend on
next 10m
maxsize 10240m;
4、指定用戶默認表空間(第二步如果是新增表空間,就需要進行第三步指定用戶默認表空間;如果第二步是修改表空間,就不需要第三步)。
alter user DBusername identified by DBPassword default tablespace TS_1703_INDEX;