【练习】扩展表空间大小

表空间扩容有三种方法:增加数据文件,重新resize一个大小,设置表空间的自动扩展(一般不建议,不好管理,设置时最好限制自动扩展的最大值)如下:

1.位usrs表空间在增加一个数据文件,大小为50M。

SQL> alter tablespace users add datafile '/u01/app/oracle/oradata/ORA11GR2/user02.dbf' size 50M;

Tablespace altered.

2.将以上创建的test1大小改为200M。

SQL> alter database datafile '/u01/app/oracle/oradata/ORA11GR2/test102.dbf' resize 200M;

Database altered.

3.将以上创建的tool设为自动扩展并且最大不能超过4G。

SQL> alter database datafile '/u01/app/oracle/oradata/ORA11GR2/test102.dbf' autoextend on next 1M maxsize 4G;

Database altered.
原文地址:https://www.cnblogs.com/tomatoes-/p/6040754.html