记录今天实验遇到的一个小问题:
在给一个列创建创建索引的时候报错
ORA-01652: unable to extend temp segment by 128 in tablespace TB1
查询oracle文档 ORA-01652: unable to extend temp segment by string in tablespace string
Cause: Failed to allocate an extent of the required number of blocks for a temporary segment in the tablespace indicated.
Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.
大概意思就是TB1表空间的临时段不能自动扩展。
需要alter tablespace 来增大表空间。
SQL> alter tablespace tb1 add datafile '/oradata/oralh/tb02.dbf' size 100m;
Tablespace altered.
表空间增大之后再创建索引,
create index inx_id on t(id);
index create
成功创建索引。