There is no concept of "auto_increment" or "identity" columns in Oracle. However, you can achive it easily with a sequence.
and after oracle 12 , identity is supported but not auto increment.
use below lines
ALTER TABLE participants ADD (
CONSTRAINT partid_pk PRIMARY KEY (partid));
CREATE SEQUENCE party_seq;
Trigger definition:
CREATE OR REPLACE TRIGGER party
BEFORE INSERT ON participants
FOR EACH ROW
BEGIN
SELECT party_seq.NEXTVAL
INTO :new.partid
FROM dual;
END;
for oracle 12 and above you can use without triggers like below
CREATE SEQUENCE participants_seq;
CREATE TABLE participants (
partyId NUMBER DEFAULT participants _seq.NEXTVAL,
other column definitions
);