nls-lang

Why Oracle displays ??? for special characters like åäö

拟墨画扇 提交于 2020-01-10 05:29:06
问题 Some time ago my PL/SQL stopped showing characters åäö . I've tried reinstalling oracle_home_11g, PL/SQL cleaned the registry but the problem remains. Anyone know why? 回答1: Most probably it is due to the mismatch between the locale-specific NLS characterset and the database characterset . Or else, the NLS_LANG value is not correctly set in the OS environmental variable . Have a look at Why are junk values/special characters/question marks displayed on my client? Your client charaterset doesn

Load text files as clob to database

我与影子孤独终老i 提交于 2019-12-30 10:07:07
问题 Having problem loading text files into database as clob. Oracle version: Oracle Database 11g EE Release 11.2.0.2.0 NLS_LANG: RUSSIAN_RUSSIA.CL8MSWIN1251 NLS_CHARACTERSET: AL32UTF8 code to load text files: DECLARE L_BFILE BFILE; L_CLOB CLOB; file_name VARCHAR2(300); BEGIN file_name := 'test.txt'; L_BFILE := BFILENAME('DIR', file_name); if (dbms_lob.fileexists(l_bfile) = 1) then INSERT INTO TEST T VALUES (SEQ_TEST.NEXTVAL, EMPTY_CLOB(),file_name) return r_data into l_clob; L_BFILE := BFILENAME(

Oracle CLOB to XMLTYPE Errors

无人久伴 提交于 2019-12-24 09:59:06
问题 We are running an older Oracle Server, 10.1.0.5... yes, we will upgrade soon. Some relevant NLS Settings are as follows... NLS_CHARACTERSET IS 'US7ASCII' NLS_LENGTH_SEMANTICS IS 'BYTE' Onto the question... We have well formed XML stored in CLOB columns. When trying to pull XML Element data I am using syntax like select XMLTYPE(I.CLOBFIELD).EXTRACT('/Record/RecordID/text()') as Record_ID from iTable I Where I.CLOBFIELD is the CLOB containing some XML. This works great, usually . We sometimes

ORA-12705 NLS_LANG error when deploying Oracle as database for WSO2 APIM

元气小坏坏 提交于 2019-12-13 03:45:33
问题 I'm facing an issue when setting WSO2 APIM databases with Oracle. When I launch the WSO2 APIM server, I get the fllowing error : ORA-12705: Cannot access NLS data files or invalid environment specified I don't know how to solve this. My environment is Oracle Database 11g R2 WSO2 APIM ojdbc6 ojdbc14 (I tried both) Here's what I've tried 1. select userenv('LANGUAGE') from dual; The result is : FRENCH_FRANCE.AL32UTF8 I changed the Windows registry value of NLS_LANG to the above value In

Oracle specific timestamp format 'DD-MON-RR HH.MI.SSXFF AM'

廉价感情. 提交于 2019-12-06 05:54:20
问题 I have a problem with Oracle 11g specific timestamp format. This is what I have: select to_timestamp('21-OCT-15 08.24.30.000000000 PM','DD-MON-RR HH.MI.SSXFF AM') from dual; Response from database: ORA-01855: AM/A.M. or PM/P.M. required 01855. 00000 - "AM/A.M. or PM/P.M. required" I have also tried to alter session settings with several commands and still nothing. alter session set NLS_LANGUAGE='ENGLISH'; alter session set NLS_DATE_LANGUAGE='ENGLISH'; alter session set NLS_TIMESTAMP_FORMAT =

Oracle specific timestamp format 'DD-MON-RR HH.MI.SSXFF AM'

蓝咒 提交于 2019-12-04 10:20:29
I have a problem with Oracle 11g specific timestamp format. This is what I have: select to_timestamp('21-OCT-15 08.24.30.000000000 PM','DD-MON-RR HH.MI.SSXFF AM') from dual; Response from database: ORA-01855: AM/A.M. or PM/P.M. required 01855. 00000 - "AM/A.M. or PM/P.M. required" I have also tried to alter session settings with several commands and still nothing. alter session set NLS_LANGUAGE='ENGLISH'; alter session set NLS_DATE_LANGUAGE='ENGLISH'; alter session set NLS_TIMESTAMP_FORMAT = 'DD-MON-RR HH.MI.SSXFF AM'; alter session set NLS_TIMESTAMP_TZ_FORMAT='DD-MON-RR HH.MI.SSXFF AM'; I can

ORA-01855: AM/A.M. or PM/P.M. required

跟風遠走 提交于 2019-12-02 05:09:11
问题 I get the error: ORA-01855: AM/A.M. or PM/P.M. required when I try to execute following query. INSERT INTO TBL(ID,START_DATE) values (123, TO_DATE ('3/13/2012 9:22:00 AM', 'MM/DD/YYYY HH:MI AM')) Where my START_DATE column is of type "Date". I have executed following query and it gave no errors, still not success yet in above issue: ALTER SESSION SET NLS_DATE_FORMAT = "MM/DD/YYYY HH:MI AM"; 回答1: Your format mask must match the format of the string you are converting. So you would either want

ORA-01855: AM/A.M. or PM/P.M. required

不羁的心 提交于 2019-12-02 01:55:53
I get the error: ORA-01855: AM/A.M. or PM/P.M. required when I try to execute following query. INSERT INTO TBL(ID,START_DATE) values (123, TO_DATE ('3/13/2012 9:22:00 AM', 'MM/DD/YYYY HH:MI AM')) Where my START_DATE column is of type "Date". I have executed following query and it gave no errors, still not success yet in above issue: ALTER SESSION SET NLS_DATE_FORMAT = "MM/DD/YYYY HH:MI AM"; Your format mask must match the format of the string you are converting. So you would either want to add SS to the format mask or remove the seconds from the string INSERT INTO TBL(ID,START_DATE) values

Why Oracle displays ??? for special characters like åäö

末鹿安然 提交于 2019-11-29 16:09:51
Some time ago my PL/SQL stopped showing characters åäö . I've tried reinstalling oracle_home_11g, PL/SQL cleaned the registry but the problem remains. Anyone know why? Most probably it is due to the mismatch between the locale-specific NLS characterset and the database characterset . Or else, the NLS_LANG value is not correctly set in the OS environmental variable . Have a look at Why are junk values/special characters/question marks displayed on my client? Your client charaterset doesn't match with database characterset. You can compare between : -- locale-specific characterset select value

How do I check the NLS_LANG of the client?

匆匆过客 提交于 2019-11-29 01:43:01
I'm working on Windows OS, I know that this setting is stored in the registry. The problem is that the registry path changes from version to version, browsing though that bunch of registry keys is definitly not a good idea. I can get the NLS_LANG of the server with SELECT USERENV ('language') FROM DUAL . I'd like to compare that with the client setting and show a warning when they don't match, just like Pl/Sql Developer does. Jérôme According to Jocke's answer (thanks Jocke), I tested the following query: SELECT DISTINCT client_charset FROM v$session_connect_info WHERE sid = sys_context(