Hello!
we have zabbix server 6.4.1 with oracle database backend with several zabbix-proxies connected
we've getting an error "cannot collect configuration data for proxy "proxy_name": failed to get data from table "item_preproc""
the reason for this error is:
[Z3005] query failed: [-1] ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT
oracle terminates session due to error.
the reason for this behaviour is that zabbix generates very long unbinded queries - 200Kb and even longer. Oracle just cannot parse it.
i've found exact the same bug - https://support.zabbix.com/browse/ZBX-17121
```
I've solved the problem.
Changed the file src/libs/zbxdbhigh/proxy.c from:
#define ZBX_MAX_IDS_PER_SELECT 10000
To:
#define ZBX_MAX_IDS_PER_SELECT 100
Rebuild the server and voilà.
```
but in version 6.4 - there is no parameter ZBX_MAX_IDS_PER_SELECT
after a little digging - i've found parameter
#define ZBX_MAX_SQL_SIZE 262144
i've decreased it to 16384, rebuild zabbix_server binary
but - no luck.
zabbix_server still generates very long unbinded queries which oracle cannot parse. the size of generated queries can be even 250Kb. It seems, that value of parameter ZBX_MAX_SQL_SIZE - is ignored somewhere.
please help.
we have zabbix server 6.4.1 with oracle database backend with several zabbix-proxies connected
we've getting an error "cannot collect configuration data for proxy "proxy_name": failed to get data from table "item_preproc""
the reason for this error is:
[Z3005] query failed: [-1] ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT
oracle terminates session due to error.
the reason for this behaviour is that zabbix generates very long unbinded queries - 200Kb and even longer. Oracle just cannot parse it.
i've found exact the same bug - https://support.zabbix.com/browse/ZBX-17121
```
I've solved the problem.
Changed the file src/libs/zbxdbhigh/proxy.c from:
#define ZBX_MAX_IDS_PER_SELECT 10000
To:
#define ZBX_MAX_IDS_PER_SELECT 100
Rebuild the server and voilà.
```
but in version 6.4 - there is no parameter ZBX_MAX_IDS_PER_SELECT
after a little digging - i've found parameter
#define ZBX_MAX_SQL_SIZE 262144
i've decreased it to 16384, rebuild zabbix_server binary
but - no luck.
zabbix_server still generates very long unbinded queries which oracle cannot parse. the size of generated queries can be even 250Kb. It seems, that value of parameter ZBX_MAX_SQL_SIZE - is ignored somewhere.
please help.
Comment