cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:Creating Sequence

Former Member
0 Kudos

hi

can you anyone please tell me how to create sequence in xmii suppose if i use syntax like this

CREATE SEQUENCE supplier_seq

MINVALUE 1

MAXVALUE 999999999999999999999999999

START WITH 1

INCREMENT BY 1

CACHE 20;

its showing an error

<b>A SQL Error has occurred on query, ORA-00911: invalid character

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

richard_howard
Active Participant
0 Kudos

This also applies to Visual Administrator when you are defining a DataSource with a JDBC Driver.

Services > JDBC Connector > DataSource > DB Initialization

If you enter a SQL Statement to test the connection of your new Data Source, DO NOT use a semi-colon at the end. If you do, you'll get the ORA-00911 error.

Answers (1)

Answers (1)

Former Member
0 Kudos

I got the answer

Former Member
0 Kudos

Could you share the answer with us??

Former Member
0 Kudos

Hi Praveen,

This is the syntax for creating a Sequence

CREATE SEQUENCE Seq_Name

START WITH 1000

INCREMENT BY 5

i have choosed mode as a Command

Former Member
0 Kudos

Hi DevaKrishnan,

u can use the same as used first , that is

CREATE SEQUENCE supplier_seq

MINVALUE 1

MAXVALUE 999999999999999999999999999

START WITH 1

INCREMENT BY 1

CACHE 20

and choosing the same mode(command) the only difference is remove the semicolon then it works fine.

Regards,

chaitanya