重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1671|回复: 0

[Oracle] oracle 表空间快满了,加空间报错ORA-02142: missing or invalid ALTER TABLESPACE...

[复制链接]
发表于 2022-6-23 13:32:27 | 显示全部楼层 |阅读模式
检查数据库表空间的时候,发现表空间快满了,需要调整大小

QQ图片20220623132927.png


输入sql语句发现报错:
SQL> alter tablespace datafile '/u01/app/oracle/oradata/orcl/heamonitor/heamon.dbf' resize 2048M;
alter tablespace datafile '/u01/app/oracle/oradata/orcl/heamonitor/heamon.dbf' resize 2048M
                          *
ERROR at line 1:
ORA-02142: missing or invalid ALTER TABLESPACE option


SQL> alter tablespace heamon datafile '/u01/app/oracle/oradata/orcl/heamonitor/heamon.dbf' resize 2g;
alter tablespace heamon datafile '/u01/app/oracle/oradata/orcl/heamonitor/heamon.dbf' resize 2g
                                 *
ERROR at line 1:
ORA-02142: missing or invalid ALTER TABLESPACE option


还是一样报错,最后输入:
SQL> alter database datafile '/u01/app/oracle/oradata/orcl/heamonitor/heamon.dbf' resize 2g;


Database altered.

成功调整空间。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-16 22:35 , Processed in 0.111024 second(s), 24 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表