现场采用Linux+Oracle方式部署iMC,NTA组件集中式部署。运行一段时间后,之前增加的的SFLOW接口流量分析任务NTA突然无法审计到数据,并且/opt/iMC/data/ processorData下有CSV文件积压的现象。
检查receiver.exe和processor.exe进程都运行正常,NTA服务器配置下发也都提示向接收和处理进程下发配置成功。
收集receiver和processor调试日志分析,查看processor.txt日志发现ORACLE数据库的表空间“USERS”已经达到最大限制无法再自动扩展了。
2015-11-10 13:20:29 [ERROR (0)] OCIStmtExecute() fail:error code=1653, error message=ORA-01653: unable to extend table UNBA_SLAVE.TBL_NTA_FLUX1MIN_IF by 128 in tablespace USERS.
2015-11-10 13:20:29 [ERROR (0)] OCIStmtExecute() fail:error code=1653, error message=ORA-01653:unable to extend table UNBA_SLAVE.TBL_NTA_UNTCPAPP_10MINS_IF by 128 in tablespace USERS.
2015-11-10 13:20:29 [ERROR (0)] OCIStmtExecute() fail:error code=1654, error message=ORA-01654: unable to extend index UNBA_SLAVE.SYS_C0014524 by 128 in tablespace USERS.
2015-11-10 13:20:29 [ERROR (0)] OCIStmtExecute() fail:error code=1654, error message=ORA-01654: unable to extend index UNBA_SLAVE.SYS_C0014524 by 128 in tablespace USERS.
2015-11-10 13:20:29 [ERROR (0)] OCIStmtExecute() fail:error code=1658, error message=ORA-01658: unable to create INITIAL extent for segment in tablespace USERS.
2015-11-10 13:20:29 [ERROR (1708)] [CDataBaseManagingTask::createTable]Failed in create table tbl_nets_15111013[error:ORA-01658: unable to create INITIAL extent for segment in tablespace USERS] .
2015-11-10 13:20:29 [ERROR (1701)] [CDataBaseManagingTask::handleDBConnectError] current DB op fail: [errorno:1658 errorinfo:ORA-01658: unable to create INITIAL extent for segment in tablespace USERS].
由于 Oracle 对每个数据文件的大小限制为32G,当表空间使用超过32G会出现此类报错。
用户需在安装完Oracle 后为USERS 表空间增加数据文件以支持存储空间的需求。增加的数据文件个数可以根据 iMC 各个组件的版本说明书中介绍的所需磁盘容量来配置。例如:iMC平台管理5000 以上设备时需要190G 磁盘容量,则至少需要创建的数据文件数为6(190G/32G=5.9375,取整为6)。如果一个数据库同时安装多个iMC 组件,需要根据多个iMC 组件的磁盘容量需求之和进行计算。具体设置方法可以参考《Oracle 11g R2安装配置指导书》中“调整数据库存储空间”章节。这里介绍图形化界面的操作步骤:
1.oracle 用户登录操作系统,执行emctl start dbconsole 启动Web 管理系统:
emctl start dbconsole
https://ip address:1158/em,其中ip address 是Oracle 服务器的IP 地址。

2.SYSTEM 用户登录Web 界面。选择“服务器 > 数据文件”

3.选中users01.dbf,执行类似创建,因为为类似创建,所以只需要命名即可。这里命名为users02.dbf。


建议现场在安装完Oracle 后根据iMC所有组件所需的磁盘容量为USERS 表空间增加合适的数据文件个数。