ITPub博客

首页 > 数据库 > Oracle > ora-01240解决方法

ora-01240解决方法

原创 Oracle 作者:apporacle 时间:2015-04-13 20:14:28 0 删除 编辑
    在手动创建表空间时候,报错    

    ORA-01240: too many data files to add in one command


关于该报错

        Cause: The command specifies adding more data files than can be done in one command.

It is necessary to fit all the file names into one log entry, but that would make the entry too large.

        Action: If this is a CREATE TABLESPACE command, create with fewer files then add the other files later.

If this is an ADD DATAFILE command, break it up into multiple commands.

        这是在执行手动创建表空间时候,一次性加入了600个数据文件。


解决方法

该错误和参数db_files有关
db_files默认大小200,由于我们一次性添加了600个数据文件,超过了db_files的上限。因此我们这里需要调整db_files
    alter system set db_files=1400 scope=spfile sid='*';
该参数需要重启数据库生效.

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

请登录后发表评论 登录
全部评论

注册时间:2013-06-28

  • 博文量
    35
  • 访问量
    230154