重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 914|回复: 0
打印 上一主题 下一主题

[Oracle] Not Able To Create A Database With Required NLS_LANGUAGE and NLS_TERRITORY Wi...

[复制链接]
跳转到指定楼层
楼主
发表于 2023-7-16 17:32:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
SYMPTOMS
Can't create a new database with NLS_TERITORY=SWEDEN and NLS_LANGUAGE=SWEDISH at database level. (This note also applies for other TERITORY & LANGUAGE)

Below Options are used in DBCA when creating database:

Invoke DBCA >>>Create database >>Advanced mode(Radio button seleted)>> General purpose or Transaction processing (radio button selected)

In Step 10 (this number could be vary depending on the DB version) of DBCA under Character Sets tab

Use Unicode (AL32UTF8)

Default Language: Swedish (This is the intended requirement)

Deafult Territory: Sweden (This is the intended requirement)

Verified in the "All initialization parameters" tab: All looks correct as per the requirement - NLS_TERITORY=SWEDEN and NLS_LANGUAGE=SWEDISH

Once DBCA completed and database created, NLS_LANGUAGE and NLS_TERRITORY is going back to default values even we've selected NLS_TERITORY=SWEDEN and NLS_LANGUAGE=SWEDISH in DBCA while creating the database.

SQL> select * from NLS_DATABASE_PARAMETERS;

PARAMETER VALUE
------------------------------ ----------------------------------------
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA


CAUSE
When creating a database like above steps, the new database always inherits the NLS setting from the seed database (of the template), since this is actually a clone operation of a existing database (who is using AMERICAN AMERICA), that's why the NLS_TERITORY=SWEDEN and NLS_LANGUAGE=SWEDISH didn't take effect.


SOLUTION

To define the NLS_DATABASE_PARAMETERS using DBCA, choose a template that has "includes datafiles" set to NO in page 2 (step number could be vary in different db version) of the DBCA; and in step 9 (step number could be vary in different db version) click on "all initialization parameters" and then "show advanced parameters", then you can set NLS_LANGUAGE etc etc for the NLS DATABASE PARAMETERS
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-16 19:16 , Processed in 0.098984 second(s), 23 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表