How to change the timezone of Oracle SQL Developer / Oracle Data Modeler?

核能气质少年 提交于 2019-11-26 20:40:47

问题


Each time I run Oracle SQL Developer or Oracle Data Modeler I receive this error message:

ora-01882 "timezone region not found"

Digging a this issue, I found that both Oracle SQL Developer and Oracle Data Modeler says that my timezone is Europe/Berlin, which is not listed into the Oracle's system view V$TIMEZONE_NAMES.

So, I need to change the timezone in Oracle SQL Developer (not the database) to match the most similar timezone found in V$TIMEZONE_NAMES.


回答1:


If you need to change the time zone of Oracle SQL Developer (or Oracle Data Modeler), then this is how to do it:

  1. Go to the installation directory of Oracle SQL Developer.
  2. Open the file located at: sqldeveloper/bin/sqldeveloper.conf.
  3. At the end of file, add the following line: AddVMOption -Duser.timezone=GMT-4.

You will need to change the value GMT-4 to one that match one of the timezones in V$TIMEZONE_NAMES.

And that’s it!




回答2:


This worked for me

AddVMOption -Duser.timezone=GMT+5



回答3:


Try:

  • Oracle Sql Developer 4.1.3
  • Open config file.
  • sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
  • Add end of the file.
  • AddVMOption -Duser.timezone=GMT
  • Restart your Oracle Sql Developer.



回答4:


For me this worked:

1)

When in Windows 8, make sure you have authorization/rights over the sqldeveloper folder (for me this is C:\Program Files\sqldeveloper, do a right-mouse click here and choose "Properties..." and then "Security" tab and on that tab press the "Edit" button and give yourself all the rights. [I have to guess these names in English because my Windows is not English)]

2) then follow the steps from Rubens Mariuzzo above, except the last one

3) AddVMOption -Duser.timezone=GMT+1

SELECT * FROM v$timezone_names gave me both Europe/Amsterdam and Europe/Berlin as options (both are GMT+1 but my location is Europe/Amsterdam). However using either of these names stil gave the ora-01882 "timezone region not found", only after changing to "timezone=GMT+1" did the bug disappear




回答5:


This worked for me

AddVMOption -Duser.timezone=GMT+7

Tq



来源:https://stackoverflow.com/questions/14864015/how-to-change-the-timezone-of-oracle-sql-developer-oracle-data-modeler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!