NLS_LANG parameter setting

文章详细介绍了在Linux环境下通过设置环境变量NLS_LANG和Oracle SQL Developer客户端偏好设置来解决编译过程中出现的问题。重点强调了NLS_LANG参数的作用及其在不同操作系统中的设置方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    最近改了一个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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值