[ZBX-19562] Oracle - data.sql script broken - Templates import broken Created: 2021 Jun 15 Updated: 2024 Apr 10 Resolved: 2021 Aug 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I), Templates (T) |
Affects Version/s: | 5.0.12, 5.2.6, 5.4.1 |
Fix Version/s: | 5.0.14rc1, 6.0 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Thomas Oftring | Assignee: | Aleksandrs Larionovs (Inactive) |
Resolution: | Fixed | Votes: | 1 |
Labels: | Database, Oracle, backend | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Oracle Databas 19c on Oracle Linux 8 |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||
Team: | |||||||||||||||||||||
Sprint: | Sprint 77 (Jun 2021), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021) | ||||||||||||||||||||
Story Points: | 1 |
Description |
Hello, the database scripts for creating the Zabbix database on Oracle is broken. The source of the problems is the table definition for the table items. Two columns are leading to the problem: params nvarchar2(2048) DEFAULT '' Both columns are defined with a maximung length of 2048 chars. This is not enough to put in some items that are contained in the following three templates, that are included in the data.sql script: 1. Template DB Oracle by ODBC (https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/oracle_odbc?at=refs%2Ftags%2F5.0.12) With importing the according templates on a Zabbix 5.0.12 in the web frontend on a Oracle database you get the same errors. See the attached screenshots. For the databases MySQL, PostgreSQL and SQlite the colums are defined as text. So there is no problem with the templates (compare the attached table create scripts for that databases and the oracle database). This is realy bad, because there would be an increasing number of Zabbix Templates that would not be usable on Zabbix installations with Oracle databases. For the first step, the according templates should be removed from the Oracle data.sql script, so that it is possible to create the database without errors. The second step must be to find all column defintions that are shorter, than in the other supported databases and fix them. All columns must have the same Steps to reproduce:
Result: |
Comments |
Comment by Alexander Bakaldin [ 2021 Jul 05 ] |
Available in:
Documentation updated: |
Comment by Alexander Bakaldin [ 2021 Aug 18 ] |
Available in:
|