Hi,
we use a standard SQL identity clause to generate unique ids:
CREATE TABLE " + DBTableConstants.TABLE_NAME + " ( id INT GENERATED
ALWAYS AS IDENTITY, " + ....
but Oracle doesn't support GENERATED ALWAYS AS IDENTITY. Will change
this to make it work with Oracle with the next bugfix release.
As a quick fix you can create the needed table for the statistics
manually. The SQL to do this is:
CREATE TABLE statistic ( id INT PRIMARY KEY,
status_code INT,
time VARCHAR(155),
rule VARCHAR(255),
method VARCHAR(50),
path VARCHAR(1000),
client VARCHAR(255),
server VARCHAR(255),
req_content_type VARCHAR(100),
req_content_length INT,
resp_content_type VARCHAR(100),
resp_content_lengt INT,
duration INT )
Than you need a trigger to insert a unique number:
CREATE SEQUENCE stat_seq;
CREATE TRIGGER stat_seq_trigger
BEFORE INSERT ON statistic FOR EACH ROW
BEGIN
IF (:
new.id IS NULL) THEN
SELECT stat_seq.nextval INTO :
new.id
FROM DUAL;
END IF;
END;
Thomas