未分类 SQL SQL [SELECT * FROM AH_PATIENT] 的异常; SQL状态[60000];错误代码[604]; ORA-00604: 递归 SQL 级别 1 发生错误
uncategorized SQLException for SQL [SELECT * FROM AH_PATIENT]; SQL state [60000]; error code [604]; ORA-00604: error occurred at recursive SQL level 1
我正在 PCF DEV 环境中部署 Spring Boot - Spring Batch 代码,批处理代码将连接到 Oracle Dev 并加载所有数据进入 mongo 开发。但是在 >cf push
时,我遇到了以下错误。
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] Caused by: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] ... 45 common frames omitted
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:149) ~[spring-batch-infrastructure-4.1.1.RELEASE.jar!/:4.1.1.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.batch.item.database.AbstractCursorItemReader.doOpen(AbstractCursorItemReader.java:427) ~[spring-batch-infrastructure-4.1.1.RELEASE.jar!/:4.1.1.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.batch.item.database.AbstractCursorItemReader.initializeConnection(AbstractCursorItemReader.java:458) ~[spring-batch-infrastructure-4.1.1.RELEASE.jar!/:4.1.1.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:89) ~[spring-jdbc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] ; nested exception is java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] Caused by: org.springframework.jdbc.UncategorizedSQLException: Executing query; uncategorized SQLException for SQL [SELECT * FROM AH_PATIENT]; SQL state [60000]; error code [604]; ORA-00604: error occurred at recursive SQL level 1
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_202]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_202]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_202]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202]
我关注了link:ORA-01882: timezone region not found,但我不知道到底在哪里改变了。
我使用 link 解决了这个问题:ORA-01882: timezone region not found。
我刚刚在 manifest.yml
文件中设置了 -Doracle.jdbc.timezoneAsRegion=false
。您也可以在 PCF 中手动添加用户定义的环境变量。
我正在 PCF DEV 环境中部署 Spring Boot - Spring Batch 代码,批处理代码将连接到 Oracle Dev 并加载所有数据进入 mongo 开发。但是在 >cf push
时,我遇到了以下错误。
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] Caused by: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] ... 45 common frames omitted
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.open(AbstractItemCountingItemStreamItemReader.java:149) ~[spring-batch-infrastructure-4.1.1.RELEASE.jar!/:4.1.1.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.batch.item.database.AbstractCursorItemReader.doOpen(AbstractCursorItemReader.java:427) ~[spring-batch-infrastructure-4.1.1.RELEASE.jar!/:4.1.1.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.batch.item.database.AbstractCursorItemReader.initializeConnection(AbstractCursorItemReader.java:458) ~[spring-batch-infrastructure-4.1.1.RELEASE.jar!/:4.1.1.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:89) ~[spring-jdbc-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] ; nested exception is java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] Caused by: org.springframework.jdbc.UncategorizedSQLException: Executing query; uncategorized SQLException for SQL [SELECT * FROM AH_PATIENT]; SQL state [60000]; error code [604]; ORA-00604: error occurred at recursive SQL level 1
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [app/:na]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_202]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_202]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_202]
2019-06-04T10:12:43.319+05:30 [APP/PROC/WEB/0] [OUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_202]
我关注了link:ORA-01882: timezone region not found,但我不知道到底在哪里改变了。
我使用 link 解决了这个问题:ORA-01882: timezone region not found。
我刚刚在 manifest.yml
文件中设置了 -Doracle.jdbc.timezoneAsRegion=false
。您也可以在 PCF 中手动添加用户定义的环境变量。