输入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;