Home » RDBMS Server » Server Administration » Nvarchar(4000) with setting chararterset to UTF8. (Aix)
Nvarchar(4000) with setting chararterset to UTF8. [message #452553] Thu, 22 April 2010 10:04 Go to next message
it_me24
Messages: 167
Registered: March 2006
Location: delhi
Senior Member
Hi,

Pls suggest on the scenario.

Users are repoting that are unable to use the NVARCHAR(4000) due to the characterset which is set in the database.

Currently NLS_CHARACTERSET is set to AL32UTF8
and NLS_NCHAR_CHARACTERSET from AL16UTF16

They want me to change both the character set to UTF8, so that they can use the NVARCHAR2(4000) datatype in their tables.

As UTF8 is the subset characterset and I did the csscan and this found characterset cannt be modified to UTF8 and there may be the datadictionary corruption.

Pls suggest, Is there any other way so that users can use the NVARCHAR(4000) as datatype.
And the reason why NVARCHAR2 is required is, users are trying to import the data from other database which is using NVARCHAR(4000) as one of the field.


your suggsestions are much appreciated.
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452555 is a reply to message #452553] Thu, 22 April 2010 10:13 Go to previous messageGo to next message
it_me24
Messages: 167
Registered: March 2006
Location: delhi
Senior Member
Oracle version is 10.2.0.4
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452556 is a reply to message #452553] Thu, 22 April 2010 10:14 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>your suggsestions are much appreciated.
You need to install a new DB configured with UTF-8 & move existing data into it.
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452558 is a reply to message #452553] Thu, 22 April 2010 10:26 Go to previous messageGo to next message
it_me24
Messages: 167
Registered: March 2006
Location: delhi
Senior Member
Yes, that is the last resort, I was looking for the way out wherein I could do something in the current database only.
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452559 is a reply to message #452553] Thu, 22 April 2010 10:27 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I wonder why they can't use NVARCHAR2 because of AL16UTF16 character set.
I think they made errors or assume wrong stuff as I don't see any reason for this.

Regards
Michel
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452562 is a reply to message #452553] Thu, 22 April 2010 10:36 Go to previous messageGo to next message
it_me24
Messages: 167
Registered: March 2006
Location: delhi
Senior Member
Hi,

Actually users are importing data, and source DB is using characterset UTF-8 and destination DB is using NLS_CHARACTERSET as AL32UTF8 and NLS_NCHAR_CHARACTERSET as AL16UTF16 and while importing data oracle throws characterset error.

Thanks for your preciuos time.
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452564 is a reply to message #452562] Thu, 22 April 2010 10:43 Go to previous messageGo to next message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Are you sure these are errors and not just an information?
You should better post them.

What is the NLS_NCHAR_CHARACTERSET of the source database?

Regards
Michel
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452567 is a reply to message #452553] Thu, 22 April 2010 11:09 Go to previous messageGo to next message
it_me24
Messages: 167
Registered: March 2006
Location: delhi
Senior Member
Source database
NLS_NCHAR_CHARACTERSET is UTF8

Destination database
NLS_NCHAR_CHARACTERSET is AL16UTF16


thank you
Re: Nvarchar(4000) with setting chararterset to UTF8. [message #452569 is a reply to message #452567] Thu, 22 April 2010 11:48 Go to previous message
Michel Cadot
Messages: 68665
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
Are you sure these are errors and not just an information?
You should better post them.
Previous Topic: DeInstall Oracle 11g
Next Topic: Help on creating user & schema
Goto Forum:
  


Current Time: Mon Jul 01 11:03:50 CDT 2024