我运行我的程序并获得以下异常:
Class: oracle.retail.stores.foundation.manager.data.DataException
(Revision $Revision: /main/18 $) @896499272: org.springframework.jdbc.BadSqlGrammarException:
StatementCallback; bad SQL grammar [SELECT myschema.MY_SEQ.NEXTVAL FROM DUAL];
nested exception is java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
Transaction Name: [TransactionWriteDataTransaction]
Error code: [0] [An unknown exception occurred.]
Error code (extended): [0]
Description: [org.springframework.jdbc.BadSqlGrammarException:
StatementCallback; bad SQL grammar [SELECT myschema.MY_SEQ.NEXTVAL FROM DUAL];
nested exception is java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist]
在SQL开发人员中运行SELECT myschema.MY_SEQ.NEXTVAL FROM DUAL
会返回一条记录,所以我不明白为什么例外是ORA-00942: table or view does not exist