oracle - Grails/Hibernate error "sequence does not exist" on hibernate_sequence -
i using grails , connected app oracle db. when try create object (via corresponding view in app front-end) error:
hibernate: select hibernate_sequence.nextval dual | error 2014-03-10 12:03:14,596 [http-bio-8080-exec-5] error util.jdbcexceptionreporter - ora-02289: sequence not exist
of course, adding manually db fixed issue:
create sequence hibernate_sequence start 1 increment 1; but wondering why needed manually create seq in db , why hibernate couldn't create automatically. idea? way can set hibernate create on own?
thanks.
this datasource.groovy, set sand-box db:
datasource { pooled = true driverclassname = "oracle.jdbc.oracledriver" dialect = "org.hibernate.dialect.oracle10gdialect" dbcreate = "update" url = "jdbc:oracle:thin:@localhost:1521/orcl" username = <user> password = <psw> logsql = true properties { validationquery="select 1 dual" testwhileidle=true timebetweenevictionrunsmillis=60000 } } hibernate { cache.use_second_level_cache = true cache.use_query_cache = false cache.region.factory_class = 'net.sf.ehcache.hibernate.ehcacheregionfactory' }
Comments
Post a Comment