ORA-56923: database properties related to time zone version are not set up properly ORACLE 报错 故障修复 远程处理

文档解释

ORA-56923: DATABASE properties related to time zone version are not set up properly

Cause: There were no database properties related to time zone version in dictionary table sys.props$.

Action: Contact Oracle Support Services.

ORA-56923: database properties related to time zone version are not set up properly

错误说明

ORACLE56923是个错误号,表示ORACLE数据库的时区相关属性没有被正确设置。发生这种错误的原因是,在运行数据库时,时区不匹配或被破坏了,或者设置数据库时区时没有更新成功。

常见案例

这种错误经常出现在将数据库从一个时区迁移到另一个时区的过程中,由于目标环境的时区与原环境的时区不一致,而没有更新时区属性导致出现,同时,也可能是由于系统没有定期更新时区表导致的。

解决方法

一般处理方法及步骤

(1)执行命令 “alter system set time_zone=” scope=spfile;” 进行永久性设置,

(2)然后使用命令 “alter system set time_zone=”;” 进行定时设置,

(3)最后,使用“alter database set time_zone=”;” 命令将正确的时区设置到数据库中。

更新时区表也是一个常用的解决办法。要更新时区表,需要使用alter session set time_zone=’’语句来完成,但是,不同的数据库有不同的更新时区表方法。更新完成后一定要重启数据库,以便在新的环境中载入最新的时区表。

香港美国云服务器首选后浪云,2H2G首月10元开通。
后浪云(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。

THE END