DB의 nls_language,nls_territory 값

Unix 환경 변수 : NLS_LANG=KOREAN_KOREA.KO16KSC5601 로 셋업되어 있는데, 데이터베이스의 lanuage와 territory는
AMERICAN, AMERICA 로 되어 있습니다.
CHARACTER SET 만 한글이 들어갈 수 있게 셋업되어 있으면 해당 값은 크게 의미가 없나요?
그리고 show parameter 시 나오는 값과 nls_database_parameters 에서 조회되는 값이 다른데 같게 맞춰줘야 하는지, 그렇다면 어떻게 해야 하는지 알려주세요~
show parameter 시
-. nls_language : AMERICAN
-. nls_territory : AMERICA
select * from nls_database_parameters;
-. nls_lanuage : KOREAN
-. nls_territory : KOREA
-. nls_characterset : AL32UTF8
입니다.
글 수정: user10795508

SQL> select * from nls_instance_parameters;
PARAMETER VALUE
NLS_LANGUAGE GERMAN
NLS_TERRITORY GERMANY
Sorry :-)
Now i found an interesting metalink-doc (ID 241047.1), which says:
"You really need to do a "create database", if you use the DBCA and use a "seed" database (= included datafiles in page 2) then the NLS_DATABASE_PARAMETERS will be AMERICAN AMERICA seen this is actually a clone operation of a existing database (who is using AMERICAN AMERICA), not a real "create database". Seen NLS_INSTANCE_PARAMTERS take precedence this is not a problem at all and simply irrelvant."
What does this mean? How can i avoid to clone a database and really do a new "create database" over the dbca gui?
Edited by: user1435412 on 12.08.2009 05:21

Similar Messages

  • Is nls_lang=nls_language+nls_territory+nls_sort

    Hi,
    please clarify : To change the logon-user's locale preferences and language settings should i give like
    "alter session set nls_lang=a_b.c"
    or
    "alter session set nls_lang=a nls_territory b nls_sort=binary"
    does both are same ?
    If YES then what how should i define the characterset for new session.
    If NO then what should i give in alter session to change
    a. characterset of new session
    b. language of new session
    c. territory of new session
    d. sort method for new session
    thanks n regards
    anurag vidyarthi
    mail me at [email protected]

    'NLS_LANG' is an environment variable. You cannot use an 'ALTER SESSION' command to change it.
    Check the following link for further details.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96529/ch3.htm#49560

  • What is my nls_language ?

    Hi all,
    These 3 selects below give me differents things! I'd like to know what is the language used in my database ?
    select * from nls_database_parameters where parameter in ('NLS_LANGUAGE','NLS_TERRITORY','NLS_CHARACTERSET');
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CHARACTERSET US7ASCII
    select * from v$nls_parameters where PARAMETER like '%LANGU%';
    PARAMETER
    VALUE
    NLS_LANGUAGE
    FRENCH
    NLS_DATE_LANGUAGE
    FRENCH
    SELECT * FROM DATABASE_PROPERTIES WHERE PROPERTY_NAME LIKE '%LANG%';
    PROPERTY_NAME
    PROPERTY_VALUE
    DESCRIPTION
    NLS_LANGUAGE
    AMERICAN
    Language
    NLS_DATE_LANGUAGE
    AMERICAN
    Date language
    Thanks a lot!

    to work in French languageWhat did you mean by "work in french" ?
    Is this the output like below :
    SQL> select * from toto;
    select * from toto
    ERREUR à la ligne 1 :
    ORA-00942: Table ou vue inexistante
    SQL> What is your OS ?
    For Windows, run regedit, go to \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0 (or you HOME)
    Then edit NLS_LANG parameter, and type :
    FRENCH_FRANCE.xxxx
    For Unix, more simple :
    export NLS_LANG=FRENCH_FRANCE.xxxx
    Just replace xxxx by your character set.
    Nicolas.

  • Unable to show Unicode Data in Oracle RESTful Service JSON

    Hi Everyone.
    I have stored unicode data in Oracle database and when i retrieve in sql query it is showing the same. But when i retrieve the data in json using oracle RESTful web service (GET), it bringing with unknown character as shown below.
    next: {},$ref: "http://000.00.00.00:8085/ords/mobile/sch/loginm/?user=SURESH&pwd=123&page=1"
    items: [
    uri: {},$ref: "http://000.00.00.00:8085/ords/mobile/sch/loginm/41"
    stud_id: 41,
    stud_code: "1001",
    stud_name: "அப்துல் ஜப்பார்"
    My Database Setup as below:
    SQL> SELECT name,value$ FROM sys.props$;
    NAME                                                          VALUE$
    DICT.BASE                                                  2
    DEFAULT_TEMP_TABLESPACE               TEMP
    DEFAULT_PERMANENT_TABLESPACE     USERS
    DEFAULT_EDITION                                   ORA$BASE
    Flashback Timestamp TimeZone                    GMT
    TDE_MASTER_KEY_ID
    DBTIMEZONE                                        -07:00
    DST_UPGRADE_STATE                         NONE
    DST_PRIMARY_TT_VERSION               11
    DST_SECONDARY_TT_VERSION          0
    DEFAULT_TBS_TYPE                              SMALLFILE
    NLS_LANGUAGE                              AMERICAN
    NLS_TERRITORY                                   AMERICA
    NLS_CURRENCY                                   $
    NLS_ISO_CURRENCY                         AMERICA
    NLS_NUMERIC_CHARACTERS               .,
    NLS_CHARACTERSET                         AL32UTF8
    NLS_CALENDAR                                   GREGORIAN
    NLS_DATE_FORMAT                              DD-MON-RR
    NLS_DATE_LANGUAGE                         AMERICAN
    NLS_SORT                                        BINARY
    NLS_TIME_FORMAT                         HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT               DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT               HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT          DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY                    $
    NLS_COMP                                   BINARY
    NLS_LENGTH_SEMANTICS          BYTE
    NLS_NCHAR_CONV_EXCP          FALSE
    NLS_NCHAR_CHARACTERSET          AL16UTF16
    NLS_RDBMS_VERSION               11.2.0.1.0
    GLOBAL_DB_NAME                    MOBILE
    EXPORT_VIEWS_VERSION   
    SQL> select DECODE(parameter, 'NLS_CHARACTERSET', 'CHARACTER SET',
      2  'NLS_LANGUAGE', 'LANGUAGE',
      3  'NLS_TERRITORY', 'TERRITORY') name,
      4  value from v$nls_parameters
      5  WHERE parameter IN ( 'NLS_CHARACTERSET', 'NLS_LANGUAGE', 'NLS_TERRITORY');
    NAME          VALUE
    LANGUAGE      AMERICAN
    TERRITORY     AMERICA
    CHARACTER SET AL32UTF8
              8
    WORKLOAD_CAPTURE_MODE    
    WORKLOAD_REPLAY_MODE
    Awaiting you solution.
    -- Abdul Jabbar

    Kumar,
    Ftping the PG.xml to mds folder will not help the page to goto MDS directory
    You have to import the file using xmlimporter
    I understand you have done the import, but it is not success.
    Could you please post what is the script you used to import the PG.xml
    and once you run what was the output you have got.
    May be you can refer the URL for the scripts
    http://apps2fusion.com/at/61-kv/331-oa-framework-scripts
    With regards,
    Kali.
    OSSI.

  • Log on to remote server and start database -error while installing CI in HA

    Hello All,
    We are installing ECC 6.0 with High Availability using HP-UX. We have completed installation in ASCS and Database Instance. Now when were trying to install in Central Instance, we encountered an error at Start Instance which informed us to Log on to remote server and start database. However the database is already running in DB node.  Please find the log below.
    TRACE      2011-06-10 16:31:45.825 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25742
    INFO       2011-06-10 16:31:45.835
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001 is written to the logfile start_PE2_DVEBMGS01.log.
    WARNING    2011-06-10 16:31:46.345
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/PE2/SYS/exe/run/startsap all DVEBMGS01 DBMCI001" finished with return code 6. Output:
    Database PE2 must be started on remote server
    Log on to remote server and start database
    WARNING[E] 2011-06-10 16:31:46.355
               CJSlibModule::writeError_impl()
    CJS-20022  Could not start instance 'DVEBMGS01' of SAP system PE2.
    TRACE      2011-06-10 16:31:46.355 [iaxxejsbas.hpp:408]
               handleException<ESAPinstJSError>()
    Converting exception into JS Exception EJSException.
    TRACE      2011-06-10 16:31:46.355
    Function setMessageIdOfExceptionMessage: ind-rel.ind-os.ind-db.webas.startInstanceFailed
    WARNING[E] 2011-06-10 16:31:46.355
               CJSlibModule::writeError_impl()
    CJS-20022  Could not start instance 'DVEBMGS01' of SAP system PE2.
    TRACE      2011-06-10 16:31:46.355 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2011-06-10 16:31:46.405 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25793
    ERROR      2011-06-10 16:31:46.525 [sixxcstepexecute.cpp:950]
    FCO-00011  The step start with step key |NW_ABAP_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|10|0|NW_CI_Instance_Start|ind|ind|ind|ind|2|0|start was executed with status ERROR .
    TRACE      2011-06-10 16:31:46.555 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    <html> <head> </head> <body> <p> An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > SAP Application Server ABAP > Oracle > High-Availability System > Central Instance . You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/ORA/HA/CI. </p> </body></html>
    TRACE      2011-06-10 16:31:46.555 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    Kindly let us know how to rectify the error and prroceed further with the instalaltion.
    Thanks
    Rishi

    Dear Guys,
    we didnt change the date and time but i m very sure it is same trans.log file.
    for your kind information please note SID and Nodes details
    Sid (PE2)
    DB Node : DBMDB001
    CI Node :   DBMCI001
    also i am attaching starting part of the file.
    4 ETW000 R3trans version 6.14 (release 701 - 26.01.09 - 12:46:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 07.11.2010 - 03:44:06
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Sun Nov  7 03:44:06 2010                             295  0.000295
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    22  0.000317
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                            116  0.000433
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' ...
    4 ETW000                                                                              64  0.000497
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/PC1/SYS/exe/run/dboraslib.so), hdl 0
    4 ETW000                                                                           32161  0.032658
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/PC1/SYS/exe/run/dboraslib.so' loaded
    4 ETW000                                                                              39  0.032697
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library
    /usr/sap/PC1/SYS/exe/run/dboraslib.so
    4 ETW000                                                                             111  0.032808
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/PC1/SYS/exe/run/dboraslib.so' is "700.08",
    patchlevel (0.25)
    4 ETW000                                                                             265  0.033073
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library
    /usr/sap/PC1/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              41  0.033114
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library
    /usr/sap/PC1/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              82  0.033196
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              52  0.033248
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES,
    reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              41  0.033289
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         84  0.033373
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              31  0.033404
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES,
    reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              37  0.033441
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.4.0'                  601  0.034042
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         25  0.034067
    4 ETW000  [dev trc     ,00000]  Client character set UTF16 -> UTF8                 35674  0.069741
    4 ETW000  [dev trc     ,00000]  Client NLS setting (OCINlsGetInfo): 'AMERICAN_AMERICA.UTF8'
    4 ETW000                                                                              57  0.069798
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password           55  0.069853
    4 ETW000  [dev trc     ,00000]  Connecting as /@PC1 on connection 0 (nls_hdl 0) ... (dbsl 700
    151208)
    4 ETW000                                                                              34  0.069887
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C     
    EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              52  0.069939
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      0
    0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
    4 ETW000                                                                              58  0.069997
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       40  0.070037
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      27  0.070064
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server PC1
    (con_hdl=0,svchp=0x600000000106aa68,srvhp=0x600000000106de78)
    4 ETW000                                                                              63  0.070127
    4 ETW000  [dev trc     ,00000]  Assigning server context 0x600000000106de78 to service context
    0x600000000106aa68
    4 ETW000                                                                           60612  0.130739
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        97  0.130836
    4 ETW000  [dev trc     ,00000]  Starting user session: OCISessionBegin(con_hdl=0,
    usr='/',svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
    4 ETW000                                                                              64  0.130900
    4 ETW000  [dev trc     ,00000]  Assigning user session 0x60000000010fc940 to service context
    0x600000000106aa68
    4 ETW000                                                                            9302  0.140202
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=53, stmth_p=0x6000000001077608)
    4 ETW000                                                                             198  0.140400
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_MODULE(:A0,:A1); END;        
    4 ETW000                                                                              38  0.140438
    4 ETW000  [dev trc     ,00000]  CbApplInfoGet() failed! Ignore, but uninstall callback to avoid more
    erroneous calls
    4 ETW000                                                                             291  0.140729
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001078660)
    4 ETW000                                                                              33  0.140762
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;       
    4 ETW000                                                                              35  0.140797
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
    4 ETW000                                                                             937  0.141734
    4 ETW000  [dev trc     ,00000]         SELECT SID FROM V$MYSTAT WHERE ROWNUM<2                                                                               
    4 ETW000                                                                              36  0.141770
    4 ETW000  [dev trc     ,00000]  Connected to session 297.                            639  0.142409
    4 ETW000  [dev trc     ,00000]  Now '/@PC1' is connected: con_hdl=0, nls_hdl=0, session_id=297.
    4 ETW000                                                                              38  0.142447
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
    4 ETW000                                                                              37  0.142484
    4 ETW000  [dev trc     ,00000]         ALTER SESSION SET NLS_SORT = BINARY                                                                               
    4 ETW000                                                                              36  0.142520
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001078660)
    4 ETW000                                                                             327  0.142847
    4 ETW000  [dev trc     ,00000]         SELECT USERID, PASSWD FROM SAPUSER WHERE USERID IN (:A0, :A1)
    4 ETW000                                                                              36  0.142883
    4 ETW000  [dev trc     ,00000]  Got SAPSR3's password from OPS$-user                 728  0.143611
    4 ETW000  [dev trc     ,00000]  Disconnecting from connection 0 ...                   38  0.143649
    4 ETW000  [dev trc     ,00000]  Rolling back transaction ...                          31  0.143680
    4 ETW000  [dev trc     ,00000]  Closing user session
    (con_hdl=0,svchp=0x600000000106aa68,usrhp=0x60000000010fc940)
    4 ETW000                                                                             210  0.143890
    4 ETW000  [dev trc     ,00000]  Now I'm disconnected from ORACLE                     721  0.144611
    4 ETW000  [dev trc     ,00000]  Connecting as SAPSR3/<pwd>@PC1 on connection 0 (nls_hdl 0) ... (dbsl
    700 151208)
    4 ETW000                                                                              40  0.144651
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C     
    EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              37  0.144688
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      0
    0x6000000001052910 0x600000000105a3c0 0x600000000106ab38
    4 ETW000                                                                              37  0.144725
    4 ETW000  [dev trc     ,00000]  Assigning username to user session: con_hdl=0,
    usrhp=0x60000000010fc940
    4 ETW000                                                                              35  0.144760
    4 ETW000  [dev trc     ,00000]  Assigning password to user session: con_hdl=0,
    usrhp=0x60000000010fc940
    4 ETW000                                                                              40  0.144800
    4 ETW000  [dev trc     ,00000]  Starting user session: OCISessionBegin(con_hdl=0, usr=SAPSR3/<pwd>,
    svchp=0x600000000106aa68, srvhp=0x600000000106de78, usrhp=0x60000000010fc940)
    4 ETW000                                                                             337  0.145137
    4 ETW000  [dev trc     ,00000]  Assigning user session 0x60000000010fc940 to service context
    0x600000000106aa68
    4 ETW000                                                                            4085  0.149222
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=54, stmth_p=0x6000000001077608)
    4 ETW000                                                                              63  0.149285
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO(:A0); END;       
    4 ETW000                                                                              37  0.149322
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                             585  0.149907
    4 ETW000  [dev trc     ,00000]         SELECT SID FROM V$MYSTAT WHERE ROWNUM<2                                                                               
    4 ETW000                                                                              36  0.149943
    4 ETW000  [dev trc     ,00000]  Connected to session 297.                            350  0.150293
    4 ETW000  [dev trc     ,00000]  Now 'SAPSR3/<pwd>@PC1' is connected: con_hdl=0, nls_hdl=0,
    session_id=297.
    4 ETW000                                                                              38  0.150331
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                              38  0.150369
    4 ETW000  [dev trc     ,00000]         ALTER SESSION SET NLS_SORT = BINARY                                                                               
    4 ETW000                                                                              34  0.150403
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                             294  0.150697
    4 ETW000  [dev trc     ,00000]         SELECT VALUE FROM V$NLS_PARAMETERS WHERE PARAMETER IN
    ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET') ORDER BY PARAM
    4 ETW000                                                                              66  0.150763
    4 ETW000  [dev trc     ,00000]         ETER                                                                               
    4 ETW000                                                                              34  0.150797
    4 ETW000  [dev trc     ,00000]  Database NLS settings: AMERICAN_AMERICA.UTF8         329  0.151126
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                             856  0.151982
    4 ETW000  [dev trc     ,00000]         SELECT UPPER(INSTANCE_NAME),HOST_NAME,VERSION,TO_CHAR
    (STARTUP_TIME,'MON DD, YYYY, HH24:MI:SS') FROM V$INSTANCE           
    4 ETW000                                                                              36  0.152018
    4 ETW000  [dev trc     ,00000]  DB instance PC1 is running on scmdb001 with ORACLE version
    10.2.0.4.0 since NOV 07, 2010, 03:23:10
    4 ETW000                                                                             349  0.152367
    4 ETW000  [dev trc     ,00000]  -->oci_prepare_stmt(con_hdl=0, len=0, stmth_p=0x6000000001077608)
    4 ETW000                                                                              38  0.152405
    4 ETW000  [dev trc     ,00000]         SELECT SUBSTR(NAME,1,3), TO_CHAR(CREATED,'YYYYMMDDHHMMSS')
    FROM V$DATABASE

  • Problem with application language

    Hi.
    I have a smal problem. I've followed the sted for translating and publishing an application but I can't seem to set FSP_LANGUAGE_PREFERENCE at connection. I have created 2 application items, ID_LANG, LANGUAGE. The I've created 2 computation processes, one for the first and one for second. I get in LANGUAGE ro for romanian wich is application primary language, and if I change it and obtain en-us nothing seems to happen. I mantion that I've also created a process that is BEGIN
    HTMLDB_UTIL.SET_PREFERENCE('FSP_LANGUAGE_PREFERENCE',:LANGUAGE,:APP_USER);
    END;
    In debug mode maplang , nls_language, nls_territory they all change when I make the language switch from ro <->en-us but the application does not show translated!!!
    What am I doing wrong?
    Pls help.
    Flo
    Problem solved, now it works!
    Message was edited by:
    user449865

    I dont get your line mate,
    At least what you meant in these lines ..
    walid_s wrote:
    but it stand on the same language not changed
    the problem why it not changed !!!!

  • Characterset mismatch error while export

    Hi,
    I am getting characterset mismatch error while exporting a schema.
    select * from nls_database_parameters where parameter in('NLS_LANGUAGE','NLS_TERRITORY','NLS_CHARACTERSET')
    PARAMETER
    VALUE
    NLS_LANGUAGE
    AMERICAN
    NLS_TERRITORY
    AMERICA
    NLS_CHARACTERSET
    AL32UTF8
    i have set nls_lang on OS level
    NLS_LANG = AMERICAN_AMERICA.AL32UTF8
    C:\oracle\ora92\bin>
    C:\oracle\ora92\bin>
    C:\oracle\ora92\bin>exp hrtemp_v6/hrtemp_v6@testdb file=c:\hrtemp_v6 statistics=
    none
    Export: Release 9.2.0.1.0 - Production on Mon May 14 11:55:58 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user HRTEMP_V6
    . exporting PUBLIC type synonyms
    EXP-00008: ORACLE error 6552 encountered
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-553: character set name is not recognized
    EXP-00000: Export terminated unsuccessfully
    please suggest , whats wrong here
    thanks & regards

    i have set nls_lang on OS level
    NLS_LANG = AMERICAN_AMERICA.AL32UTF8How and where?
    C:\oracle\ora92\bin>At this command prompt, what do you get back from "set nls"
    You can use
    c:\> set nls_lang=.al32utf8
    ...right before you issue exp command.

  • Changing database character set

    Can anyone help with the way to change the database character set.
    I am runn into problem while exporting with error message exp-00091
    Thanks

    You don't need to change the database character set. You have only to set the correct character set at
    OS level before doing the export. Execute the following at Sql prompt as DBA :
    SQL> select * from v$nls_parameters
      2* where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET')
    SQL> /
    PARAMETER            VALUE
    NLS_LANGUAGE         AMERICAN
    NLS_TERRITORY        AMERICA
    NLS_CHARACTERSET     WE8ISO8859P15
    SQL>then at OS prompt :
    $ export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
    $ exp ..............
    Of course you have to use your values.

  • Error in BI publisher report for OIM

    Hi all!
    Can u help me?
    I know that this error is quite common, but I`ve tried out all the soultions and still can`t get the result.
    I`ve installed BI publisher and attached OIM reports there. All the reports work properly except those, which have date properties. For example, Account Activity in Resource. All of them return ora-08143 error ("not a valid month").
    Let me explain situation more clear.
    There are two fields using date in the report creation menu.
    Date Range From:
    Date Range To;
    They automatically get value like "12/06/2011 05:05:05" using their default values ({$SYSDATE()$}).
    But if I use these values, I get an error.
    I`ve found two ways of solving a problem: 1.) Changing the date to something like "12/Jan/2011" manually (note, that by default month stands first, and to solve the problem I should write it second and NOT in digits). 2.) Changing the date mask in report properties to dd/MMM/yyyy.
    But it`s not the best way to solve the problem. In this case I should change these properties everythere. Or user should (and this is bad :) ). I`m sure, that these reports should work without such modifications, so, error borns on my side.
    What I`ve done:
    1.) I tried to change nls_date_format, nls_language, nls_territory, timestamp_format in database session to different formats.
    2.) I`ve tried to manage all the changes that I`ve told about above.
    3.) I`ve tried to change UI language and report locales (if it`s important, I use russian language and russian report locale). xlf files are all ok.
    What shall I do to fix this error?
    My db is: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    My BI publisher is: 10.1.3.4 (may be everything is bad because of version, but it doesn`t seem to be so, because every report except date reports work nice).
    Thank u very muck and looking forward for hearing from u.

    Dewan.Rajiv wrote:
    I don know what issue you are facing due to language.
    Have you tried with changing the query of the report ?Yes, I have.
    By the way, I`ve discovered, that the error appears in line:
    AND myvariablewithdate BETWEEN :p_date_DateFromRange AND :p_date_DateToRange
    If I comment such a lines in the query, everthing works OK.
    But as you understand, that`s not the point :(
    Even if i put to data forms information from sql database (just copy timestamp data), the error continues to appear.
    If i make something like that in sqldeveloper, everything is ok:
    select upa_resource.upa_res_eff_from_date from upa_resource where upa_res_eff_from_date between (select sysdate - 30 from dual) and (select sysdate from dual)
    this statement returns right values.
    So, the problem is somethere in such a chain:
    - select sysdate from dual (it`s ok)
    - put sysdate to form (does it make any type of convert?)
    - take variable (former sysdate) from form.

  • Error in BI publisher report

    Hi all!
    Can u help me?
    I know that this error is quite common, but I`ve tried out all the soultions and still can`t get the result.
    I`ve installed BI publisher and attached OIM reports there. All the reports work properly except those, which have date properties. For example, Account Activity in Resource. All of them return ora-08143 error ("not a valid month").
    Let me explain situation more clear.
    There are two fields using date in the report creation menu.
    Date Range From:
    Date Range To;
    They automatically get value like "12/06/2011 05:05:05" using their default values ({$SYSDATE()$}).
    But if I use these values, I get an error.
    I`ve found two ways of solving a problem: 1.) Changing the date to something like "12/Jan/2011" manually (note, that by default month stands first, and to solve the problem I should write it second and NOT in digits). 2.) Changing the date mask in report properties to dd/MMM/yyyy.
    But it`s not the best way to solve the problem. In this case I should change these properties everythere. Or user should (and this is bad :) ). I`m sure, that these reports should work without such modifications, so, error borns on my side.
    What I`ve done:
    1.) I tried to change nls_date_format, nls_language, nls_territory, timestamp_format in database session to different formats.
    2.) I`ve tried to manage all the changes that I`ve told about above.
    3.) I`ve tried to change UI language and report locales (if it`s important, I use russian language and russian report locale). xlf files are all ok.
    What shall I do to fix this error?
    My db is: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    My BI publisher is: 10.1.3.4 (may be everything is bad because of version, but it doesn`t seem to be so, because every report except date reports work nice).
    Thank u very muck and looking forward for hearing from u.

    Dewan.Rajiv wrote:
    I don know what issue you are facing due to language.
    Have you tried with changing the query of the report ?Yes, I have.
    By the way, I`ve discovered, that the error appears in line:
    AND myvariablewithdate BETWEEN :p_date_DateFromRange AND :p_date_DateToRange
    If I comment such a lines in the query, everthing works OK.
    But as you understand, that`s not the point :(
    Even if i put to data forms information from sql database (just copy timestamp data), the error continues to appear.
    If i make something like that in sqldeveloper, everything is ok:
    select upa_resource.upa_res_eff_from_date from upa_resource where upa_res_eff_from_date between (select sysdate - 30 from dual) and (select sysdate from dual)
    this statement returns right values.
    So, the problem is somethere in such a chain:
    - select sysdate from dual (it`s ok)
    - put sysdate to form (does it make any type of convert?)
    - take variable (former sysdate) from form.

  • NLS-Setting in APEX 3.2.1

    Hi all
    I have installed XE-Universal 10.2 on a XP-Pro.
    I have installed Apex 3.2.1 successfully in the same database.
    in the registry, the value in oracle->key-xe->nls_lang as well as in all other ORACLE is AMERICAN_AMERICA.WE8ISO8859P1.
    The query
    select parameter,value from nls_database_parameters
    where parameter in ('NLS_CHARACTERSET','NLS_LANGUAGE','NLS_TERRITORY');
    shows American_America.AL32UTFS
    In the Explorer-Pages of APEX, it shows "Language: de-ch"
    The windows-regional-settings are German-Switzerland. But even when I change the settings to American-America the APEX still shows
    (bottom left corner) "Language: de-ch".
    Where is apex getting this info from and how to change?
    When I try to import the OEHR-Sample-Application, it first shows "The export file has been imported successfully"
    After some time with the screen showing "Installing application", it aborts with the message
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-01756: Anführungsstrich fehlt bei Zeichenfolge &lt;pre&gt;
    begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||''''; end; &lt;/pre&gt;
    I had the same problem first with the installation of apex 3.2. It turned out that the problem is, that in Switzerland the Numeric
    Group Separator is "'" which seems not to work, therefore i changed nls to GERMAN_GERMANY, where the group separator is ','. This worked fine.
    Any help is very much appreciated.
    Regards
    Urs
    Latest update: the same error applies when trying to install OEHR - sample application in the hosted demo environment
    Edited by: user1131151 on 06.10.2009 02:04

    Urs,
    This has been logged with development as the following bug.
    BUG 9081503 - ORA-20001 & ORA-01756 : WHEN TRYING TO IMPORT APPLICATION WITH DE-CH BROWSER
    Currently there is no fix as it is being worked on. However, the workaround of setting the browser to something else other than DE-CH will be just fine to get the application imported.
    Regards,
    Sunny Patel.

  • Error ERR-1802 Unable to find item

    I was using HTML DB to execute a query. The region expected an item and based on
    that item to retrieve a Clob and output to the GUI. Here is the PL/SQL code:
    begin
    if :P11_X_ID is null then
    return;
    end if;
    for x in (
    select column_value
    from table( query_cfile( cursor( select theClob from demo where id =
    TO_NUMBER(:P11_X_ID) )
    ) ))loop
    htp.prn(x.column_value);
    end loop;
    end;
    When I first time ran a page I was able to get the page back without any issue;
    however when I entered the second ID, I got "Error ERR-1802 Unable to find item
    id "187846523855309166"
    OK
    Unexpected error". Then I tried running the same page on different browser
    (switch from firefox to IE ) and entered the second ID I was able to get the
    page back. The same problem happened for the second browser, that is, if I
    entered another ID to search, I got the same error.
    And I turned on the trace using p_trace=YES
    grep -in err stra_ora_10201.trc
    83: error_template,
    205: where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY',
    'NLS_SORT')
    221:alter session set NLS_TERRITORY = "AMERICA"
    600: process_error_message,
    634: process_error_message,
    873:ERROR #34:err=1 tim=2122883685
    968: value="wwv_flow.find_item_err2"
    979: value="wwv_flow.unexpected_err"
    1038:select error_page_template
    1102: value="wwv_flow.err"
    1113: value="wwv_flow.err"
    1304: value="wwv_flow.find_item_err2"
    1315: value="wwv_flow.unexpected_err"
    1358: value="wwv_flow.err"
    1369: value="wwv_flow.err"
    1549: value="wwv_flow.find_item_err2"
    1560: value="wwv_flow.unexpected_err"
    1603: value="wwv_flow.err"
    1614: value="wwv_flow.err"
    1818:ERROR #34:err=1 tim=2122883705
    1874: value="wwv_flow.find_item_err2"
    1885: value="wwv_flow.unexpected_err"
    1928: value="wwv_flow.err"
    1939: value="wwv_flow.err"
    2143:ERROR #34:err=1 tim=2122883713
    2199: value="wwv_flow.find_item_err2"
    2210: value="wwv_flow.unexpected_err"
    2253: value="wwv_flow.err"
    2264: value="wwv_flow.err"
    2757: error_template,
    2879: where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY',
    'NLS_SORT')
    2895:alter session set NLS_TERRITORY = "AMERICA"
    3274: process_error_message,
    3308: process_error_message,
    3575: error_message,
    3582: nvl(error_display_location,'ON_ERROR_PAGE')
    error_display_location
    3640: value="wwv_flow.no_page_to_branch_err"
    Since the error happened on Cursor #34, here I retrieved the #34 from the trace
    file:
    =====================
    PARSING IN CURSOR #34 len=461 dep=1 uid=63 oct=2 lid=63 tim=1069307285981395
    hv=698873200 ad='5bdf916c'
    INSERT into wwv_flow_data (
    flow_instance,
    item_id,
    item_element_id,
    item_name,
    name_length,
    item_value,
    session_state_status,
    flow_id
    ) values (
    :b6,
    :b5,
    :b4,
    :b3,
    length(:b3),
    :b2,
    'I',
    :b1)
    END OF STMT
    PARSE #34:c=0,e=132,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=4,tim=1069307285981373
    BINDS #34:
    bind 0: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=03 oacfl2=1 size=24
    offset=0
    bfp=4063ffe8 bln=22 avl=11 flg=05
    value=3707546874081609208
    bind 1: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=24
    offset=0
    bfp=0ae3d23c bln=22 avl=09 flg=09
    value=1486322312855973
    bind 2: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=24
    offset=0
    bfp=0ae3e0d0 bln=22 avl=02 flg=09
    value=1
    bind 3: dty=1 mxl=32(08) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=32
    offset=0
    bfp=0ae3e13c bln=32 avl=08 flg=09
    value="P11_X_ID"
    bind 4: dty=1 mxl=32(08) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=32
    offset=0
    bfp=0ae3e13c bln=32 avl=08 flg=09
    value="P11_X_ID"
    bind 5: dty=1 mxl=128(02) mal=00 scl=00 pre=00 oacflg=13 oacfl2=1 size=128
    offset=0
    bfp=0adbb4e0 bln=128 avl=02 flg=09
    value="57"
    bind 6: dty=2 mxl=22(21) mal=00 scl=00 pre=00 oacflg=03 oacfl2=1 size=24
    offset=0
    bfp=4063ffc4 bln=22 avl=03 flg=05
    value=105
    =====================
    PARSING IN CURSOR #35 len=119 dep=2 uid=0 oct=3 lid=0 tim=1069307285985274
    hv=3286148528 ad='5bfee648'
    select c.name, u.name from con$ c, cdef$ cd, user$ u where c.con# = cd.con# and
    cd.enabled = :1 and c.owner# = u.user#
    END OF STMT
    PARSE #35:c=0,e=176,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285985249
    BINDS #35:
    bind 0: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24
    offset=0
    bfp=407975e0 bln=22 avl=04 flg=05
    value=32720
    EXEC #35:c=0,e=514,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285986292
    FETCH #35:c=0,e=88,p=0,cr=2,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285986517
    STAT #35 id=1 cnt=0 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=2 r=0 w=0 time=78
    us)'
    STAT #35 id=2 cnt=0 pid=1 pos=1 obj=0 op='NESTED LOOPS (cr=2 r=0 w=0 time=74
    us)'
    STAT #35 id=3 cnt=0 pid=2 pos=1 obj=31 op='TABLE ACCESS BY INDEX ROWID CDEF$
    (cr=2 r=0 w=0 time=70 us)'
    STAT #35 id=4 cnt=0 pid=3 pos=1 obj=53 op='INDEX RANGE SCAN I_CDEF4 (cr=2 r=0
    w=0 time=62 us)'
    STAT #35 id=5 cnt=0 pid=2 pos=2 obj=28 op='TABLE ACCESS BY INDEX ROWID CON$
    (cr=0 r=0 w=0 time=0 us)'
    STAT #35 id=6 cnt=0 pid=5 pos=1 obj=49 op='INDEX UNIQUE SCAN I_CON2 (cr=0 r=0
    w=0 time=0 us)'
    STAT #35 id=7 cnt=0 pid=1 pos=2 obj=22 op='TABLE ACCESS CLUSTER USER$ (cr=0 r=0
    w=0 time=0 us)'
    STAT #35 id=8 cnt=0 pid=7 pos=1 obj=11 op='INDEX UNIQUE SCAN I_USER# (cr=0 r=0
    w=0 time=0 us)'
    =====================
    PARSING IN CURSOR #35 len=84 dep=2 uid=0 oct=3 lid=0 tim=1069307285988552
    hv=2458412332 ad='5b779008'
    select o.name, u.name from obj$ o, user$ u where o.obj# = :1 and o.owner# =
    u.user#
    END OF STMT
    PARSE #35:c=0,e=142,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285988532
    BINDS #35:
    bind 0: dty=2 mxl=22(22) mal=00 scl=00 pre=00 oacflg=08 oacfl2=1 size=24
    offset=0
    bfp=407975e0 bln=22 avl=04 flg=05
    value=32720
    EXEC #35:c=0,e=431,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=1069307285989485
    FETCH #35:c=0,e=187,p=0,cr=5,cu=0,mis=0,r=1,dep=2,og=4,tim=1069307285989805
    STAT #35 id=1 cnt=1 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=5 r=0 w=0 time=169
    us)'
    STAT #35 id=2 cnt=1 pid=1 pos=1 obj=18 op='TABLE ACCESS BY INDEX ROWID OBJ$
    (cr=3 r=0 w=0 time=74 us)'
    STAT #35 id=3 cnt=1 pid=2 pos=1 obj=36 op='INDEX UNIQUE SCAN I_OBJ1 (cr=2 r=0
    w=0 time=37 us)'
    STAT #35 id=4 cnt=1 pid=1 pos=2 obj=22 op='TABLE ACCESS CLUSTER USER$ (cr=2 r=0
    w=0 time=75 us)'
    STAT #35 id=5 cnt=1 pid=4 pos=1 obj=11 op='INDEX UNIQUE SCAN I_USER# (cr=1 r=0
    w=0 time=16 us)'
    EXEC #34:c=0,e=8619,p=0,cr=8,cu=10,mis=0,r=0,dep=1,og=4,tim=1069307285991108
    ERROR #34:err=1 tim=2122883685
    =====================
    Here is the version:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for Linux: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    My page is very simple, it contains one region, one item, one
    button (click to search).
    Would you please advise what next step should be?
    Thanks in advance,

    SQL> desc demo;
    Name Null? Type
    ID NOT NULL NUMBER(38)
    THECLOB CLOB
    The query just took the CLOB content and divided it into table of varchar2(4000) base on chr(10). The query worked well in PL/SQL when I replaced htp with dbms_output.
    The branching was the default one, "Redirect To Page 11 (the same page)". I only created one region, one item and one button. That branching was automatically created.
    Below was the output when I turned on the debug mode.
    0.00: A C C E P T: Request=""
    0.01: Fetch flow info
    0.01: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: ...Setting NLS Decimal separator="."
    0.02: Fetch session state from database
    0.03: ...Check instance 936431675924660583 owner
    0.03: ...Fetch iconbar, page, computation, process, ...
    0.03: Fetch session header information
    0.03: ...fetch page attributes: f105, p11
    0.04: ...Check security schemes
    0.04: Save form items and p_arg_values
    0.05: Saved session state: 1486322312855973 "P11_X_ID" changedValue="49"
    0.05: Show ERROR page...
    0.06: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "26896009627"
    OK      
    0.07: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.08: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.09: Saved session state: 26896009627 "" newValue=""
    0.09: Show ERROR page...
    0.10: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "27133775492"
    OK      
    0.11: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.11: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.13: Saved session state: 27133775492 "" newValue="N"
    0.13: Show ERROR page...
    0.14: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "17708687878"
    OK      
    0.15: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.15: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.16: Saved session state: 17708687878 "" newValue=" "processing of sql statements""
    0.17: Show ERROR page...
    0.18: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "79615715229400664"
    OK      
    0.19: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.19: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.20: Saved session state: 79615715229400664 "" newValue="22467871247389"
    0.21: Show ERROR page...
    0.22: Processing point: AFTER_ERROR_HEADER Home
         Error      ERR-1802 Unable to find item id "187846523855309166"
    OK      
    0.22: Processing point: BEFORE_ERROR_FOOTER
    Unexpected error
    0.23: ...Determine if user ADMIN with SGID 504322868864112 can develop application 105 in workspace 504322868864112
    Edit ApplicationEdit Page 11NewSessionNo DebugHide Edit LinksShow Edit Links
    0.24: Saved session state: 187846523855309166 "" newValue=""

  • Oracle and PHP - insert special characters problem

    I have computer with these software:
    Fedora Core 4
    Apache 2.0.54
    PHP 5.0.4
    Oracle 10.2.0
    Firefox (character set: UTF8)
    System environment:
    [oracle@computer /] echo $ORACLE_HOME
    /db/u01/app/oracle/product/10.2.0/db_1
    [oracle@computer /] echo $NLS_LANG
    SLOVENIAN_SLOVENIA.AL32UTF8
    I get this for every user, because I have in /etc/profiles:
    NLS_LANG=SLOVENIAN_SLOVENIA.AL32UTF8; export NLS_LANG;
    ORACLE_HOME=/db/u01/app/oracle/product/10.2.0/db_1; export ORACLE_HOME;
    Oracle NLS parameters:
    SQL> SELECT NLS_LANGUAGE, NLS_TERRITORY, NLS_CHARACTERSET FROM NLS_DATABASE_PARAMETERS;
    SLOVENIAN, SLOVENIA, AL32UTF8
    And similar for NLS_INSTANCE_PARAMETERS and NLS_SESSION_PARAMETERS.
    phpinfo() returns:
    Apache Environment
    Variable     Value
    NLS_LANG      SLOVENIAN_SLOVENIA.AL32UTF8
    In /etc/php.ini I have:
    default_charset = "UTF-8"
    mbstring.internal_encoding = UTF-8
    In /etc/httpd/conf/httpd.conf:
    SetEnv NLS_LANG SLOVENIAN_SLOVENIA.AL32UTF8
    In my PHP script "oracle.php" (file encoding is UTF-8) I have:
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
    putenv("NLS_LANG=SLOVENIAN_SLOVENIA.AL32UTF8");
    And then code similar to Example 2 in: http://www.php.net/manual/en/ref.oci8.php
    Problem
    When I am trying with PHP insert character "š" ( http://www.fileformat.info/info/unicode/char/0161/index.htm ) or some other special character into Oracle table and then do SELECT from this table I get value "??" which is wrong.
    There is no problem for example with char "a". There is no problem inserting data with SQLPlus or Toad for Oracle - inserted data is always correct. There is no problem for example with echo("some_special_sharacters"); in PHP. I have no problems inserting data with PHP to MySQL database.
    I have read this, but problem still exists:
    http://www.oracle.com/technology/tech/php/pdf/globalizing_oracle_php_applications.pdf
    Plese help.
    Thanks!

    How do you insert it? How do you select it? Where are you viewing the character? What is in the database after the INSERT?
    (SELECT DUMP(col,1016) FROM tab)
    -- Sergiusz

  • IsSchemaValid does chang the xml-encoding header from UTF-8 to WINDOWS-1252

    I found the following effect:
    isSchemaValid does changing the encoding - entry of the xml-file-header
    generating xml-file by using DBMS_XMLGEN :
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    with the header of the file is
    <?xml version="1.0" encoding="UTF-8"?>
    change the xmldoc to a xmlType
    and validate it against the schema
    xmldoc_xmlType:=(xmltype(xmldoc)) ;
    xmldoc_xmlType.isSchemaValid ( bSchemalocation)
    after this the header of the file is
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    my DB:
    R11_2_0_2 / Windows 64
    the same in
    R11_2_0_1 / Windows 32
    select name, value from v$parameter where upper(name) like '%NLS%'
    nls_calendar     
    nls_comp          BINARY
    nls_currency     
    nls_date_format     
    nls_date_language     
    nls_dual_currency     
    nls_iso_currency     
    nls_language          AMERICAN
    nls_length_semantics     BYTE
    nls_nchar_conv_excp     FALSE
    nls_numeric_characters     
    nls_sort     
    nls_territory          AMERICA
    nls_time_format     
    nls_timestamp_format     
    nls_timestamp_tz_format     
    nls_time_tz_format     
    register my schema by:
    dbms_xmlschema.registerSchema(
    schemaurl => vschemaurl,
    schemadoc => xsd_file,
    local      => FALSE,      
    gentypes      => TRUE,      
    genbean      => FALSE,      
    gentables      => TRUE,      
    force      => FALSE,
    owner      => dbuser
    ,CSID      => nls_charset_id('AL32UTF8')
    How can I let or change back the xml-encoding entry to UTF-8 ?
    regards

    Your solution should not be relied upon...
    C:\Temp>sqlplus /nolog @t1 %CD%
    SQL*Plus: Release 11.2.0.2.0 Production on Fri Mar 4 09:41:32 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    SQL> spool testcase.log
    SQL> --
    SQL> connect sys/oracle as sysdba
    Connected.
    SQL> --
    SQL> set define on
    SQL> set timing on
    SQL> --
    SQL> def XMLDIR = &1
    SQL> --
    SQL> def USERNAME = XDBTEST
    SQL> --
    SQL> def PASSWORD = &USERNAME
    SQL> --
    SQL> def USER_TABLESPACE = USERS
    SQL> --
    SQL> def TEMP_TABLESPACE = TEMP
    SQL> --
    SQL> drop user &USERNAME cascade
      2  /
    old   1: drop user &USERNAME cascade
    new   1: drop user XDBTEST cascade
    User dropped.
    Elapsed: 00:00:00.24
    SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
      2  /
    old   1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
    new   1: grant create any directory, drop any directory, connect, resource, alter session, create view to XDBTEST identified by XDBTEST
    Grant succeeded.
    Elapsed: 00:00:00.07
    SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
      2  /
    old   1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
    new   1: alter user XDBTEST default tablespace USERS temporary tablespace TEMP
    User altered.
    Elapsed: 00:00:00.00
    SQL> set long 100000 pages 0 lines 256 trimspool on timing on
    SQL> --
    SQL> connect &USERNAME/&PASSWORD
    Connected.
    SQL> --
    SQL> create or replace directory XMLDIR as '&XMLDIR'
      2  /
    old   1: create or replace directory XMLDIR as '&XMLDIR'
    new   1: create or replace directory XMLDIR as 'C:\Temp'
    Directory created.
    Elapsed: 00:00:00.00
    SQL> create table XML_DEFAULT of XMLTYPE
      2  /
    Table created.
    Elapsed: 00:00:00.11
    SQL> create table XML_CLOB of XMLTYPE
      2  XMLTYPE store as CLOB
      3  /
    Table created.
    Elapsed: 00:00:00.01
    SQL> select *
      2    from nls_database_parameters
      3   where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET')
      4  /
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CHARACTERSET               AL32UTF8
    Elapsed: 00:00:00.02
    SQL> declare
      2    XML_DEFAULT XMLType := xmltype('<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>') ;
      3    XML_CLOB    XMLType := xmltype('<?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>') ;
      4  begin
      5    delete XML_DEFAULT;
      6    delete XML_CLOB;
      7    insert into XML_DEFAULT values (XML_DEFAULT);
      8    dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT.xml');
      9    IF  XML_DEFAULT.isSchemaValid ( 'SCHEMALOCATION_DOES_NO_MATTER_FOR_TEST_CASE.XSD', 'SCHEMA_NO_MATTER') = 1 THEN  null; ELSE  null; END IF;
    10    commit;
    11    dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT_IS_VALID.xml',nls_charset_id('WE8MSWIN1252'));
    12    dbms_xslprocessor.clob2file( XML_DEFAULT.getclobval() , 'XMLDIR','XML_DEFAULT_WIN1252.xml');
    13    insert into XML_CLOB values (XML_CLOB);
    14    dbms_xslprocessor.clob2file( XML_CLOB.getclobval() , 'XMLDIR','XML_CLOB.xml');
    15    commit;
    16  end ;
    17  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.27
    SQL> --
    SQL> host type XML_DEFAULT.xml
    <?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>
    SQL> --
    SQL> host type XML_DEFAULT_IS_VALID.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <TEST>SELECT</TEST>
    SQL> --
    SQL> host type XML_DEFAULT_WIN1252.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <TEST>SELECT</TEST>
    SQL> --
    SQL> host type XML_CLOB.xml
    <?xml version="1.0" encoding="WINDOWS-1252"?><TEST>SELECT</TEST>
    SQL> --
    SQL>First, the character set changes because isSchemaValid() causes the document to be parsed and converted to the internal database character set, as does storing it in a table.
    It appear that your solution works in SQL because the semantics of SQL are such that it causes a 'copy' of the XMLType to take place before running the isSchemaValid() processing, were we to optimize away that copy as a result of a patch or performance optimization project then you solution would break...
    If you want the output in a particular character set you should force that using XMLSerialize or getBlobVal(charsetid). Unfortunately we don't have a convience method for writing BLOBS on DBMS_XSLPROCESSOR...

  • Case Sensitivity Issue with Latin Characters

    Hi,
    The Latin Character that i am talking abt is "i",
    I am trying to provide in my application the support for Azeri-Latin(Turkish family) Characters,
    That is the display and the orientation of characters is perfectly fine throughout the flow of application.
    But now there is a problem when selecting a data from DB using like constraint in where clause... The issue has been elaborated below...
    From the set of characters there are two character in which i am facing Case Sensitivity issue...
    They are as,
    i ---> the capital of same is ---> İ
    ı ---> the capital of same is ---> I
    now in english character mapping,
    for i ---> the capital is ---> I
    So, this is creating an issue...
    Now the test i have done is as follows,
    I created a table as,
    Create Table CS
    CS1 VARCHAR2(20)
    Following is the data that is inserted in the table,
    Insert into CS values('İ');
    Insert into CS values('i');
    Insert into CS values('I');
    Insert into CS values('ı');
    now i am running the following query,
    Select * from CS where lower(CS1) like lower('%&a%');
    for characters "i","İ","I" it returns 3 rows, that are,
    i
    İ
    I
    and for character ı it only returns,
    ı
    ideally for characters "i" & "İ" should be mapped with each other and "ı" & "I" should be mapped with each other respectively.
    But that is not the case.
    I am using Oracle 10g
    my NLS_database_parameters are as follows,
    PARAMETER     VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET     AL32UTF8
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION     10.2.0.1.0
    and at client i m using,
    NLS_LANG = .AL32UTF8
    any help on this issue will be appreciated,
    Thanks & Regards,
    Pratik

    I'm not fully understand your question but I guess you may need to set up NLS_LANGUAGE, NLS_TERRITORY db parameters and client NLS_LANG.
    eg client NLS_LANG=TURKISH_AZERBAIJAN.AL32UTF8 and db parameters NLS_LANGUAGE=TURKISH, NLS_TERRITORY=AZERBAIJAN
    Full list of supported languages, locales see [Oracle® Database Globalization Support Guide local data subpage|http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/applocaledata.htm]
    or tip2: check this: ALTER SESSION SET NLS_COMP=LINGUISTIC;
    Edited by: Kecskemethy on Mar 24, 2009 3:14 AM
    or you need something like this:
    Example 5-16 Matching with the Base Letter Operator [==]
    Expression: r[[=e=]]sum[[=e=]]
    Matches:
    resume<<
    résumé<<
    résume<<
    resumé<<Oracle SQL syntax: SQL> SELECT col FROM test WHERE REGEXP_LIKE(col,'r[[=e=]]sum[[=e=]]');Edited by: Kecskemethy on Mar 24, 2009 3:20 AM

Maybe you are looking for