Site icon IT Tutorial

ORA-12704 character set mismatch

I got “ORA-12704 character set mismatch ”  error in Oracle database.

 

ORA-12704 character set mismatch

 

Details of error are as follows.

ORA-12704 character set mismatch

Cause: One of the following:
Action: Strings declared with NCHAR or NCHAR VARYING do not interoperate with strings declared with CHAR or VARCHAR2. Use TRANSLATE() function to explicitly convert one to the other.



 

 

character set mismatch

This ORA-12704 errors are related with the One of the following:

 

 

To solve this error, Strings declared with NCHAR or NCHAR VARYING do not interoperate with strings declared with CHAR or VARCHAR2. Use TRANSLATE() function to explicitly convert one to the other.

 

You can use the conversion function ( NCHAR, VARCHAR2  ) to change the type of the two columns to be consistent.

 

You can use to_char Function to do character conversion between nvarchar2 to varchar2

You can use to_nchar to do character conversion between varchar2 to nvarchar2.

You can use cast Function to do character conversion between varchar2 to nvarchar2

You can use translate…using Function converts varchar2 to nvarchar2

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version