I am using Oracle9i v2 on NT, but my problem is following:
When I enter the following command on SQL*PLUS, it executes correctly:
Alter session set nls_language=GERMAN; select hiredate from emp;But when I change nls_laguage to "BENGALI" or "HINDI", the output of
select hiredate from emp;displays like the following:
HIREDATE ------------ 17-???? -80 20-????? -81 22-????? -81 02-????? -81 28-????? -81 01-?? -81 09-??? -81 19-????? -87Why it is displying "?" marks? And how can I resolve this problem?
The reason that the question marks are displayed is that you are displaying certain characters that the current character set does not have a mapping for. Since this is a DATE datatype, make sure that you also set your NLS_DATE_FORMAT after you set your session's character set.
Another thing to be mindful of with character sets is that you can see results such as the above when you change from one character set to a different character set which is not a subset of the first. The Oracle docs for National Languages has more information.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.