alter tablespace ts_name autoextend_clause

alter tablespace ts_name autoextend_clause


This clause is valid only for bigfile (single-file) tablespaces. Use this clause to enable or disable autoextension of the single data file in the tablespace. To enable or disable autoextension of a newly added data file or temp file in smallfile tablespaces, use the autoextend_clause of the database_file_clauses in the ALTER DATABASE statement


[oracle@rac1 ~]$ sqlplus  /nolog


SQL*Plus: Release 11.2.0.4.0 Production on Wed Apr 18 22:37:12 2018


Copyright (c) 1982, 2013, Oracle.  All rights reserved.


SQL> connect / as sysdba
Connected.
SQL> create tablespace ts_smallfile datafile '/s01/oracle/oradata/orcl/small.dbf' size 5m;


Tablespace created.


SQL> alter tablespace ts_smallfile autoextend on next 5m;
alter tablespace ts_smallfile autoextend on next 5m
*
ERROR at line 1:
ORA-32773: operation not supported for smallfile tablespace TS_SMALLFILE




SQL> create bigfile tablespace ts_bigfile datafile '/s01/oracle/oradata/orcl/bigfile1.dbf' size 5m;


Tablespace created.


SQL> alter tablespace ts_bigfile autoextend on next 5m;


Tablespace altered.


SQL> alter database datafile '/s01/oracle/oradata/orcl/small.dbf' autoextend on next 5m;


Database altered.


SQL> 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26870952/viewspace-2153076/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26870952/viewspace-2153076/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值