小编Chr*_*mer的帖子

当我已将新文件添加到 TEMP 表空间时,如何解决此 ORA-01652 错误?

我在 Oracle 数据库上继承了类似 DBA 的基本职责,但在尝试运行包含大量联接和分组的查询时遇到了 ORA-01652 错误。这是我得到的错误:

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
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)

我已经接受了错误消息的建议(或至少尝试过)并创建了一个新的数据文件。这是我用于此的命令:

ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/ABCDEFG/temp02.dbf'
SIZE 1024M REUSE AUTOEXTEND ON …
Run Code Online (Sandbox Code Playgroud)

oracle tablespaces

6
推荐指数
1
解决办法
11万
查看次数

标签 统计

oracle ×1

tablespaces ×1