NLS_LANG parameter setting

    最近改了一个Procedure 里面含有葡萄牙语,结果compile procedure后库中总是显示不对。这是因为我们有一个环境变量NLS_LANG没有设置对的缘故。

   solution:

   在linux端设置:setenv  NLS_LANG PORTUGUESE_PORTUGAL.WE8MSWIN1252

    同时在oracle sqldeveloper client端要设置:tools->preference->Database->NLS->PORTUGUESE


  After the above steps, compile the procedure then you will find out that the procedure display correctly.  

About NLS_LANG Parameters
Oracle provides Globalization Support that enables users to interact with a database in their own language, as defined by the NLS_LANG parameter. When you install Oracle Database Client components, Oracle Universal Installer sets the NLS_LANG parameter in the registry.
The locale setting of your operating system determines the value of the NLS_LANG parameter at installation. Table B-1 lists the operating system locale and NLS_LANG value mappings.
The NLS_LANG parameter is stored in the registry under the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID\NLS_LANG subkey, where ID is the unique number identifying the Oracle home.
The NLS_LANG parameter uses the following format:
NLS_LANG = LANGUAGE_TERRITORY.CHARACTER_SET

for the NLS_LANG parameters values you can refer to below link

Commonly Used Values for NLS_LANG


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
"failed to get local nls_lang"是一个错误信息,通常在使用数据库或运行某些程序时出现。这个错误信息通常表示系统无法获取本地的"NLS_LANG"(National Language Support)设置。 "NLS_LANG"是一个环境变量,用于指定数据库和程序的字符集。它决定了如何在系统中处理不同语言和字符编码。当系统无法获取本地"NLS_LANG"设置时,会出现"failed to get local nls_lang"错误。 解决此错误的方法是按照以下步骤操作: 1. 检查系统环境变量设置:确保"NLS_LANG"环境变量已正确设置。您可以在操作系统的环境变量设置中查看或编辑此设置。确保"NLS_LANG"的值与您需要的字符集匹配。 2. 检查数据库配置:如果您在使用数据库时遇到此错误,请确保数据库配置文件中的"NLS_LANG"参数正确设置。您可能需要联系数据库管理员或查看数据库相关文档来进行正确配置。 3. 检查程序设置:如果此错误是在运行某个程序时出现的,请检查程序的配置文件或代码中是否有"NLS_LANG"设置。将其设置为正确的值。 4. 重新启动系统:在进行上述更改后,重新启动系统以确保环境变量和配置生效。 需要注意的是,对于不同的操作系统和应用程序,解决此错误的具体步骤可能会有所不同。您可以参考相关的操作系统和应用程序文档来获取更详细的解决方案。 总之,"failed to get local nls_lang"错误表示系统无法获取本地的"NLS_LANG"设置,通过正确设置环境变量和配置,可以解决此问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值