今天工作中,发现Oracle12c数据库中有2个表空间使用率比较高,于是按照常规做法进行相关表空间的扩展:
alter database datafile '/app/oradata/zsdb/zsdb/xxxx.dbf' resize 20480m;
执行后,报错ORA-65114:容器中的空间使用率太高。
通过查看官方文档有如下描述:
ora-65114: space usage in container is too high
Cause: Space usage in the current container exceeded the value of MAX_PDB_STORAGE for the container.
Action: Specify a higher value for MAX_PDB_STORAGE using the ALTER PLUGGABLE DATABASE statement.
因为服务器资源宽裕,切换到这个pdb下面执行如下命令:
alter session set container=zsdb;
alter pluggable database storage unlimited; 执行完毕后,再扩展表空间,成功执行。
也可以按照使用情况计算出合理的大小进行设置:
alter pluggable database storage (maxsize 10g)
alter database datafile '/app/oradata/zsdb/zsdb/xxxx.dbf' resize 20480m;
执行后,报错ORA-65114:容器中的空间使用率太高。
通过查看官方文档有如下描述:
ora-65114: space usage in container is too high
Cause: Space usage in the current container exceeded the value of MAX_PDB_STORAGE for the container.
Action: Specify a higher value for MAX_PDB_STORAGE using the ALTER PLUGGABLE DATABASE statement.
因为服务器资源宽裕,切换到这个pdb下面执行如下命令:
alter session set container=zsdb;
alter pluggable database storage unlimited; 执行完毕后,再扩展表空间,成功执行。
也可以按照使用情况计算出合理的大小进行设置:
alter pluggable database storage (maxsize 10g)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29535374/viewspace-2128735/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29535374/viewspace-2128735/