This is a summary of the solution for issue "ORA-01654: unable to extend index ..." from internet.
1) Check table space usage.
SELECT UPPER(F.TABLESPACE_NAME) "TblSpName",
D.TOT_GROOTTE_MB "TblSpCap(M)",
D.TOT_GROOTTE_MB - F.TOTAL_BYTES "Used(M)",
TO_CHAR(ROUND((D.TOT_GROOTTE_MB - F.TOTAL_BYTES) / D.TOT_GROOTTE_MB * 100,2),'990.99') "UsedPercentage",
F.TOTAL_BYTES "Free(M)",
F.MAX_BYTES "MaxBlock(M)"
FROM (SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) TOTAL_BYTES,
ROUND(MAX(BYTES) / (1024 * 1024), 2) MAX_BYTES
FROM SYS.DBA_FREE_SPACE
GROUP BY TABLESPACE_NAME) F,
(SELECT DD.TABLESPACE_NAME,
ROUND(SUM(DD.BYTES) / (1024 * 1024), 2) TOT_GROOTTE_MB
FROM SYS.DBA_DATA_FILES DD
GROUP BY DD.TABLESPACE_NAME) D
WHERE D.TABLESPACE_NAME = F.TABLESPACE_NAME
ORDER BY 4 DESC;
2) Basically if we encounter this issue, it means the table space is used up. Login as sysdba and add more space to the correct tablespace.
SQL> alter tablespace SYSTEM add datafile 'SYSTEM2.dbf' size 1G autoextend on next 1G maxsize 2G;
Tip:
Different kinds of users may have different tablespace. Please decide the correct tablespace name that the user is currently using. We can find the tablespace name by
SQL> select tablespace_name from dba_data_files;
References:
http://www.cnblogs.com/kevinsun/archive/2006/03/03/342265.html
http://www.diybl.com/course/6_system/linux/linuxjq/20110827/559046.html
SQL Language Reference 11g
1) Check table space usage.
SELECT UPPER(F.TABLESPACE_NAME) "TblSpName",
D.TOT_GROOTTE_MB "TblSpCap(M)",
D.TOT_GROOTTE_MB - F.TOTAL_BYTES "Used(M)",
TO_CHAR(ROUND((D.TOT_GROOTTE_MB - F.TOTAL_BYTES) / D.TOT_GROOTTE_MB * 100,2),'990.99') "UsedPercentage",
F.TOTAL_BYTES "Free(M)",
F.MAX_BYTES "MaxBlock(M)"
FROM (SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) TOTAL_BYTES,
ROUND(MAX(BYTES) / (1024 * 1024), 2) MAX_BYTES
FROM SYS.DBA_FREE_SPACE
GROUP BY TABLESPACE_NAME) F,
(SELECT DD.TABLESPACE_NAME,
ROUND(SUM(DD.BYTES) / (1024 * 1024), 2) TOT_GROOTTE_MB
FROM SYS.DBA_DATA_FILES DD
GROUP BY DD.TABLESPACE_NAME) D
WHERE D.TABLESPACE_NAME = F.TABLESPACE_NAME
ORDER BY 4 DESC;
2) Basically if we encounter this issue, it means the table space is used up. Login as sysdba and add more space to the correct tablespace.
SQL> alter tablespace SYSTEM add datafile 'SYSTEM2.dbf' size 1G autoextend on next 1G maxsize 2G;
Tip:
Different kinds of users may have different tablespace. Please decide the correct tablespace name that the user is currently using. We can find the tablespace name by
SQL> select tablespace_name from dba_data_files;
References:
http://www.cnblogs.com/kevinsun/archive/2006/03/03/342265.html
http://www.diybl.com/course/6_system/linux/linuxjq/20110827/559046.html
SQL Language Reference 11g