Using Oracle 11.2.0.1 on Oracle Linux 5.8 x64
I am trying to install Zabbix and am using Oracle database as the data store. The supplied schema script below is not working.
When I run it, I get
This is because the limit is 4000 bytes for nvarchar2 (2000 characters). Also the defaults for number columns should not be surrounded by quotes. This is my first experience of Zabbix and it seems the Oracle db script is buggy, how's the rest of the product?
I am trying to install Zabbix and am using Oracle database as the data store. The supplied schema script below is not working.
Code:
CREATE TABLE maintenances ( maintenanceid number(20) NOT NULL, name nvarchar2(128) DEFAULT '' , maintenance_type number(10) DEFAULT '0' NOT NULL, description nvarchar2(2048) DEFAULT '' , active_since number(10) DEFAULT '0' NOT NULL, active_till number(10) DEFAULT '0' NOT NULL, PRIMARY KEY (maintenanceid) );
Code:
Error at Command Line:5 Column:42
Error report:
SQL Error: ORA-00910: specified length too long for its datatype
00910. 00000 - "specified length too long for its datatype"
*Cause: for datatypes CHAR and RAW, the length specified was > 2000;
otherwise, the length specified was > 4000.
*Action: use a shorter length or switch to a datatype permitting a
longer length such as a VARCHAR2, LONG CHAR, or LONG RAW
Comment