暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

故障处理|Oracle 如何解决 ORA-25139:CREATE TEMPORARY TABLESPACE 的选项无效

原创 小小亮 2022-10-27
1827

ORA-25139

尝试创建临时表空间,但失败并出现 ORA-25139。

SQL> create temporary tablespace temp1 datafile '/u01/app/oracle/oradata/ORCL/temp1_01.dbf' size 10m autoextend on next 10m maxsize unlimited;
create temporary tablespace temp1 datafile '/u01/app/oracle/oradata/ORCL/temp1_01.dbf' size 10m autoextend on next 10m maxsize unlimited
                                  *
ERROR at line 1:
ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE

ORA-25139 意味着我们要创建的临时表空间应该由临时文件而不是数据文件组成。

解决方案

要解决 ORA-25139,我们应该在语句中使用TEMPFILE来指定表空间的文件类型。

SQL> create temporary tablespace temp1 tempfile '/u01/app/oracle/oradata/ORCL/temp1_01.dbf' size 10m autoextend on next 10m maxsize unlimited;

Tablespace created.

原文标题:How to Resolve ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE
原文作者:Ed Chen
原文链接:https://logic.edchen.org/how-to-resolve-ora-25139-invalid-option-for-create-temporary-tablespace/

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论