当前位置:网站首页>Oracle问题: ORA-01882: 未找到时区
Oracle问题: ORA-01882: 未找到时区
2022-07-29 20:03:00 【若苗瞬】
(一)现象
在一台Ubuntu20主机上执行Java程序,访问Oracle11g数据库并执行操作。️
出现:ORA-00604: 递归 SQL 级别 1 出现错误 ORA-01882: 未找到时区
(二)分析
因为其它主机同一个程序是正常的,所以认为原因不是数据库,而在主机。
因为其它主机也出现过同样问题,所以即便不懂原理……
让我们选择时区吧:
执行:tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
1) Africa 7) Europe
2) Americas 8) Indian Ocean
3) Antarctica 9) Pacific Ocean
4) Asia 10) coord - I want to use geographical coordinates.
5) Atlantic Ocean 11) TZ - I want to specify the timezone using the Posix TZ format.
6) Australia
#? 4
Please select a country whose clocks agree with yours.
1) Afghanistan 9) Cambodia 17) Iran 25) Kuwait 33) Nepal 41) Singapore 49) Uzbekistan
2) Antarctica 10) China 18) Iraq 26) Kyrgyzstan 34) Oman 42) Sri Lanka 50) Vietnam
3) Armenia 11) Cyprus 19) Israel 27) Laos 35) Pakistan 43) Syria 51) Yemen
4) Azerbaijan 12) East Timor 20) Japan 28) Lebanon 36) Palestine 44) Taiwan
5) Bahrain 13) Georgia 21) Jordan 29) Macau 37) Philippines 45) Tajikistan
6) Bangladesh 14) Hong Kong 22) Kazakhstan 30) Malaysia 38) Qatar 46) Thailand
7) Bhutan 15) India 23) Korea (North) 31) Mongolia 39) Russia 47) Turkmenistan
8) Brunei 16) Indonesia 24) Korea (South) 32) Myanmar (Burma) 40) Saudi Arabia 48) United Arab Emirates
#? 10
Please select one of the following timezones.
1) Beijing Time
2) Xinjiang Time
#? 1
The following information has been given:
China
Beijing Time
Therefore TZ='Asia/Shanghai' will be used.
Selected time is now: Fri Jul 29 09:43:24 CST 2022.
Universal Time is now: Fri Jul 29 01:43:24 UTC 2022.
Is the above information OK?
1) Yes
2) No
#? 1
You can make this change permanent for yourself by appending the line
TZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.
Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Asia/Shanghai
(三)解决
根据上面提示的内容。
如果需要对用户永久生效(时区为亚洲/上海),
则在用户.profile文件最后加入一行:
export TZ='Asia/Shanghai'
但始终不明白:为什么过去是正常的?中途发生了什么导致了无时区问题?
边栏推荐
猜你喜欢

通过观测云监控器监控基础资源,自动报警

JUC Concurrent Programming Basics AQS

EasyExce template filling generation of Excel of actual operation, many processing sheet page

4D Summary: 38 Knowledge Points of Distributed Systems

使用IDEA连接mysql

PEG-siRNA-PCL|siRNA-PEG-LHRH|MPEG-siRNA 甲氧基聚乙二醇修饰核酸

Kubernetes: (4) Common commands

常用电源符号含义分享

Common power symbols meaning sharing

数据可视化----网页显示温湿度
随机推荐
conda virtual environment | install and list problems
regular expression
单壁碳纳米管-DNA复合物(SWCNT-DNA)|作用机理
Data visualization ---- web page displays temperature and humidity
sad rock
Samba服务器配置(什么情况下需要服务器)
简单说说K均值聚类
Verilog的时间格式系统任务----$printtimescale、$timeformat
siRNA-S-S-PEG-LMWP|M-MSN-siRNA介孔二氧化硅修饰RNA(齐岳RNA功能化修饰)
叶酸&适配体修饰DNA纳米载体|CdS纳米颗粒修饰DNA|科研试剂
从专业角度分析国内创客教育发展
探索创客教育在线管理实施体系
ESP8266-Arduino编程实例-I2C设备地址扫描
点击返回顶部
Huawei laptop keyboard locked (how does the laptop keyboard light up)
华为笔记本键盘锁住了(笔记本电脑键盘怎么亮起来)
[GXYCTF2019] ban dolls
回归——岭回归
Briefly talk about K-means clustering
webUI测试框架设计思路详解