报错日志如下:
六月 2014 01:01:16,010 ERROR it.eng.spagobi.commons.SingletonConfigCache.<init>:29 - The table sbi_config is EMPTY
[localhost-startStop-1] 18 六月 2014 01:01:17,838 ERROR org.hibernate.id.enhanced.TableGenerator.doWorkInCurrentTransaction:506 - could not read or init a hi value
java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
查看ORA_create.sql发现
/*
CREATED 12;05;2008
MODIFIED 12;05;2008
PROJECT
MODEL
COMPANY
AUTHOR
VERSION
DATABASE ORACLE 10G
*/
-- CREATE TYPES SECTION
-- CREATE TABLES SECTION
CREATE TABLE hibernate_sequences (
SEQUENCE_NAME VARCHAR2(200) NOT NULL,
NEXT_VAL INTEGER NOT NULL,
PRIMARY KEY (SEQUENCE_NAME)
)
;
第一个sql语句创建hibernate_sequences表后边多了一行空白,所以导致这个表没有创建成功。结果还不报错,删除空行后重现创建表。启动成功。