我正在运行 springboot 应用程序(在本地计算机上运行良好),并在 ec2 实例上收到 ORA-01882: timezoneregion notfound
错误。它看起来像是一个配置问题,但不确定如何修复它。
堆栈跟踪如下
Caused by: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
我使用的是ojdbc8版本12.2.0.1
最佳答案
您可以传递命令行参数-Duser.timezone=<Database Time Zone>
启动应用程序。
示例:
Maven 命令行:mvn springboot:run -Duser.timezone=PST
Java 命令行:java -Duser.timezone=PST -jar application.jar
这是时区列表。
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
关于oracle - 在 aws ec2 实例上获取 ORA-01882 : timezone region not found with Oracle UCP,?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49492093/