PL/SQL Developer displays does not display Hebrew characters properly

烂漫一生 提交于 2019-12-20 05:11:31

问题


Hi all, I've uploaded a photo of the way I see dates in PL/SQL Developer, I see question marks instead of the full date (need to look like "02-Aug-2013 13:50:21.663" for instance, as seen on other computers)...

If someone have any idea what on my preferences makes it look like this - I'd love to know... Thanks!

UPDATE: NLS Parameters:

NLS DB Parameters:


回答1:


The issue seems to be due to mismatch between NLS parameters in client and database. For such questions, always remember to post the OS details, DB version up to 4 decimals.

To check the the parameter values:

SELECT * FROM v$nls_parameters;
SELECT * FROM nls_database_parameters;
  1. Set the NLS_DATE_LANGUAGE in client exactly same as that of Database. In your case, NLS_DATE_LANGUAGE in database is AMERICAN.

  2. Set the environment variable for NLS_LANG as :

[NLS_LANGUAGE]_[NLS_TERRITORY].[NLS_CHARACTERSET]

so, set it as AMERICAN_AMERICA.WE8MSWIN1252

  1. Another observation is that, your other NLS parameters also needs to be changed in client to match with that of Database. Else, you will find similar issues every now and then, just not with DATE.



回答2:


I would like to leave here a solution that has nothing to do with the national language settings, and, as the post that lead me to this itself states, 9 out of 10 cases of problems like yours (I was having just the same) - are fixed following this solution, instead.

I have been messing with the NLS for a while to no avail. I then just ended up in this post and this was what solved my problem.

In a short, if the font chosen to display SQL results is one that does not support the language you are trying to display in, then it will not work. In my case, needing to display Hebrew, I was able to do so simply by picking Tahoma as the display font, as suggested, again, by the post aforementioned.

Here is a screenshot showing the procedure:

Preferences -> User Interface -> Fonts -> Grid -> Select




回答3:


You may try changing 'Date Format', 'Timestamp Format', 'Timestamp TZ Format' to "DD-MON-YYYY HH24:MI:SS" (minus quotes) or in the format you want.

Access the preferences from Tools->Preferences->Database->NLS



来源:https://stackoverflow.com/questions/25637449/pl-sql-developer-displays-does-not-display-hebrew-characters-properly

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