使用Oracle DB安装zabbix

时间:2016-10-27 10:12:19

标签: oracle zabbix

我正在安装Zabbix 3.2.1我使用mysql运行了一个没有问题的演示,但我知道我正在使用我们的Oracle实例为此配置一个更合适的服务器。

我遵循此处的官方指南https://www.zabbix.com/documentation/3.2/manual/appendix/install/db_scripts,但似乎不正确。

首先,我必须更改images.sql文件,将目标目录更改为/ tmp / zabbix_images而不是默认目录。然后我不得不在数据库上给zabbix用户提供一些授权,例如"创建任何目录"和"删除任何目录"。

但是,当我尝试运行@ images.sql文件时,我收到了以下编译错误:

Warning: Procedure created with compilation errors.

    LOAD_IMAGE(1,1,'Cloud_(128)','png_modern/Cloud_(128).png');
    *
ERROR at line 2:
ORA-06550: line 2, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 2, column 2:
PL/SQL: Statement ignored
ORA-06550: line 3, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 3, column 2:
PL/SQL: Statement ignored
ORA-06550: line 4, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 4, column 2:
PL/SQL: Statement ignored
ORA-06550: line 5, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 5, column 2:
PL/SQL: Statement ignored
ORA-06550: line 6, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 6, column 2:
PL/SQL: Statement ignored
ORA-06550: line 7, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 7, column 2:
PL/SQL: Statement ignored
ORA-06550: line 8, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 8, column 2:
PL/SQL: Statement ignored
ORA-06550: line 9, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 9, column 2:
PL/SQL: Statement ignored
ORA-06550: line 10, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 10, column 2:
PL/SQL: Statement ignored
ORA-06550: line 11, column 2:
PLS-00905: object ZABBIX.LOAD_IMAGE is invalid
ORA-06550: line 11, column 2:
PL/SQL: Statement ignored

我该如何解决这个问题?或者我可以忽略它只是线条的一部分?

谢谢, 米歇尔。

1 个答案:

答案 0 :(得分:0)

问题在于上一个命令,即schema.sql的执行。

运行该文件我收到此错误:

        description              nvarchar2(2048) DEFAULT ''                ,
                                                 *
ERROR at line 5:
ORA-00910: specified length too long for its datatype

然后在其他线路上反映出来。基于this其他问题,我发现这是对可以存储的字符数量的限制,因为我使用的是oracle 11.2.0而不是12.但是来自requirements它应该工作。