Oracle 10g NLS 参数
如果在数据库级别设置 Oracle 10g NLS 参数(特别是我所在国家/地区的 NLS_TERRITORY 以及将时区设置为 UTC)有任何问题,请告诉我。
当我们的 NLS_TERRITORY 设置为 AMERICA (不正确)时,是否会出现任何冲突?
谢谢。
Could people please let me know if there are any issues with setting Oracle 10g NLS Parameters at database level, specifically the NLS_TERRITORY to the country I am in together with setting the timezone to UTC.
Will there be any conflicts b/c as the moment, our NLS_TERRITORY is set to AMERICA which is not correct?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 Oracle,您通常必须谨慎对待 NLS 参数。文档总是一个好主意:
NLS / 全球化stuff
请注意,NLS_TERRITORY 参数源自 NLS_LANG。因此,您应该能够通过更改 NLS_LANG 来影响 NLS_TERRITORY 参数。 (无论如何,这都应该同步。)
读完之后(请务必阅读),您可能会想“嘿,我们有现有数据,在更改参数后我们需要对其执行任何转换吗? ”
参数。 请
另请记住,使用此数据库的任何客户端软件都应将其 NLS_LANG(尤其是其字符集部分)设置为与数据库相同 - 否则数据可能被破坏。
With Oracle, you must be cautious with the NLS parameters in general. Documentation is always a good idea:
NLS / Globalization stuff
Note that the NLS_TERRITORY parameter is derived from NLS_LANG. So, you should be able to affect the NLS_TERRITORY parameter by changing NLS_LANG. (This should be synched up in any case.)
After you get through that (please do read it), you will probably be thinking "Hey, we have existing data, will we need to perform any conversions on it after changing the parameter?"
THE PARAMETER. PLEASE
Also keep in mind that any client software that uses this database should have its NLS_LANG (especially the characterset portion of it) set the same as the database - otherwise data can get mangled.
“数据库级别的 NLS 参数,特别是 NLS_TERRITORY”是什么意思?
如果您指的是 NLS_DATABASE_PARAMETERS 中显示的参数,那么一旦创建数据库,这些参数就无法更改。然而,这些特定参数(NLS_[NCHAR]_CHARACTERSET 除外)仅用于 CHECK 约束和一些需要在数据库的整个生命周期中保持不变的其他表达式(例如 VPD)。因此,NLS_DATABASE_PARAMETERS 中的 NLS_TERRITORY 设置为什么并不重要。
What do you mean by "NLS Parameters at database level, specifically the NLS_TERRITORY"?
If you mean the parameters showing up in NLS_DATABASE_PARAMETERS, then these cannot be changed once the database is created. However, these particular parameters (except NLS_[NCHAR]_CHARACTERSET) are used only in CHECK constraints and a few other expressions that need to remain constant throughout the life of a database (e.g. VPD). Hence, it seldom matters to what NLS_TERRITORY in NLS_DATABASE_PARAMETERS is set to.