我有一个大的Oracle表,其中包含542512行.它有三列,当我尝试使用以下命令为它创建索引时:
CREATE INDEX FTS_INDEX ON FILTERED_TEKLI_IIS_TABLOSU (ilAdi,ilceAdi,caddeAdi)
Run Code Online (Sandbox Code Playgroud)
Oracle给出以下错误:
SQL Error: ORA-01652: unable to extend temp segment by 128 in tablespace SYSTEM
01652. 00000 - "unable to extend temp segment by %s in tablespace %s"
*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.
Run Code Online (Sandbox Code Playgroud)
我搜索了这个错误,发现当执行诸如连接表,在大型表上创建索引等操作时,Oracle没有足够的空间来存储中间数据.但我没有找到明确的解决方案.这些ALTER TABLESPACE和ADD DATAFILE命令似乎可以完成这项工作,但我不知道如何调用这些以及使用哪些参数.任何帮助,将不胜感激.