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.

Similar Messages

  • How to replace all objects while using IMPDP

    I have exported a schema using EXPDP, now I am trying to import (IMPDP) that into another database as different schema, which already contains some of the objects (like tables, procedures, sequence etc). I using the option of REPLACE for TABLE_EXISTS_ACTION, but that doesn't replace if any existing procedures, sequences etc. Please let me know what option I should to replace every objects.
    And also I am getting this error
    ORA-39083: Object type JOB failed to create with error:
    ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
    Failing sql is:
    BEGIN SYS.DBMS_IJOB.SUBMIT( JOB=> 6, LUSER=> 'WILLIAMS_DESIGN', PUSER=> 'WILLIAMS_DESIGN', CUSER=> 'WILLIAMS_DESIGN', NEXT_DATE=> TO_DATE('2010-05-17 14:00:00', 'YYYY-MM-DD:HH24:MI:SS'), INTERVAL=> 'trunc(sysdate+1/24,''HH'')', BROKEN=> FALSE, WHAT=> 'ol_update_query_result_stats();', NLSENV=> 'NLS_LANGUAGE=''AMERICAN'' NLS_TERRITORY=''AMERICA'' NLS_CURRENCY=''$'' NLS_ISO_CURRENC
    Job "WILLIAMS_CLEAN"."SYS_IMPORT_FULL_01" completed with 10678 error(s) a
    Thanks

    Hi,
    There is no way to do what you want using datapump. Datapump does not have an 'OBJECT_EXISTS_ACTION = REPLACE'. All it has is the TABLE_EXISTS_ACTION. Can you get around this by dropping the schema? If not, then the only way I can think of is by using the sqlfile parameter on impdp.
    sqlfile allows you to write all of the ddl that is going to be executed during a datapump job to a .sql file. You can then edit that file and either attempt a drop before the create or change the 'create' to 'create or replace'. Then run the .sql file.
    You would then have to run the datapump import job with content=data_only to load the tables with their data.
    Dean

  • What are differences between the target tablespace and the source tablespac

    The IMPDP command create so manay errors. But the EXAMPLE tablespace is transported to the target database successfully. It seems that the transported tablespace is no difference with the source tablespace.
    Why create so many errors?
    How to avoid these errors?
    What are differences between the target tablespace and the source tablespace?
    Is this datapump action really successfull?
    Thw following is the log output:
    [oracle@hostp ~]$ impdp system/oracle dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Import: Release 10.2.0.1.0 - Production on Sunday, 28 September, 2008 18:08:31
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SYSTEM"."SYS_IMPORT_TABLESPACE_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_TABLESPACE_01": system/******** dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "OE"."CUSTOMERS" ("CUSTOMER_ID" NUMBER(6,0), "CUST_FIRST_NAME" VARCHAR2(20) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE, "CUST_LAST_NAME" VARCHAR2(20) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE, "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" , "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" , "NLS_LANGUAGE" VARCHAR2(3), "NLS_TERRITORY" VARCHAR2(30), "CREDIT_LIMIT" NUMBER(9,2), "CUST_EMAIL" VARCHAR2(30), "ACCOUNT_MGR_ID" NU
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "IX"."ORDERS_QUEUETABLE" ("Q_NAME" VARCHAR2(30), "MSGID" RAW(16), "CORRID" VARCHAR2(128), "PRIORITY" NUMBER, "STATE" NUMBER, "DELAY" TIMESTAMP (6), "EXPIRATION" NUMBER, "TIME_MANAGER_INFO" TIMESTAMP (6), "LOCAL_ORDER_NO" NUMBER, "CHAIN_NO" NUMBER, "CSCN" NUMBER, "DSCN" NUMBER, "ENQ_TIME" TIMESTAMP (6), "ENQ_UID" VARCHAR2(30), "ENQ_TID" VARCHAR2(30), "DEQ_TIME" TIMESTAMP (6), "DEQ_UID" VARCHAR2(30), "DEQ_
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SH"."CUSTOMERS" 9.850 MB 55500 rows
    . . imported "SH"."SUPPLEMENTARY_DEMOGRAPHICS" 695.9 KB 4500 rows
    . . imported "OE"."PRODUCT_DESCRIPTIONS" 2.379 MB 8640 rows
    . . imported "SH"."SALES":"SALES_Q4_2001" 2.257 MB 69749 rows
    . . imported "SH"."SALES":"SALES_Q1_1999" 2.070 MB 64186 rows
    . . imported "SH"."SALES":"SALES_Q3_2001" 2.129 MB 65769 rows
    . . imported "SH"."SALES":"SALES_Q1_2000" 2.011 MB 62197 rows
    . . imported "SH"."SALES":"SALES_Q1_2001" 1.964 MB 60608 rows
    . . imported "SH"."SALES":"SALES_Q2_2001" 2.050 MB 63292 rows
    . . imported "SH"."SALES":"SALES_Q3_1999" 2.166 MB 67138 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "EXAM_03"
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_LNAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_EMAIL_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"PM"."PRINTMEDIA_PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_CREDIT_LIMIT_MAX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_ID_MIN" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"PM"."PRINTMEDIA__PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"IX"."SYS_C005192" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUSTOMERS_PK" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_LNAME_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_EMAIL_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"PM"."PRINTMEDIA_PK" creation failed
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39112: Dependent object type REF_CONSTRAINT:"OE"."CUSTOMERS_ACCOUNT_MANAGER_FK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    ALTER TABLE "OE"."ORDERS" ADD CONSTRAINT "ORDERS_CUSTOMER_ID_FK" FOREIGN KEY ("CUSTOMER_ID") REFERENCES "OE"."CUSTOMERS" ("CUSTOMER_ID") ON DELETE SET NULL ENABLE
    ORA-39112: Dependent object type REF_CONSTRAINT:"PM"."PRINTMEDIA_FK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUST_UPPER_NAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_UPPER_NAME_IX" creation failed
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
    ORA-39112: Dependent object type PROCACT_INSTANCE skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
    ORA-01403: no data found
    ORA-01403: no data found
    Failing sql is:
    BEGIN
    SYS.DBMS_AQ_IMP_INTERNAL.IMPORT_SIGNATURE_TABLE('AQ$_ORDERS_QUEUETABLE_G');COMMIT; END;
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_V" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_N" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_R" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_E" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Job "SYSTEM"."SYS_IMPORT_TABLESPACE_01" completed with 63 error(s) at 18:09:14

    Short of trying to then reverse-engineer the objects that are in the dump file (I believe Data Pump export files contain some XML representations of DDL in addition to various binary bits, making it potentially possible to try to scan the dump file for the object definitions), I would tend to assume that the export didn't include those type definitions.
    Since it looks like you're trying to set up the sample schemas, is there a reason that you wouldn't just run the sample schema setup scripts on the destination database? Why are you using Data Pump in the first place?
    Justin

  • ORA-12514 after I Changed NLS_LANGUAGE and cant get into DB

    Hello all, I just installed Oracle 10g XE on my Windows XP PC.
    I ran this command:
    ALTER SYSTEM SET NLS_LANGUAGE = 'AMERICAN_AMERICA.IW8PC1507' SCOPE=SPFILE;
    and since then I cant connect to my DB, all i'm getting is:
    ORA-12514: TNS:listener does not currently know of service requested in connectdescriptor
    I tried to do everything the Oracle 10g libraries says, but they all reffer to the Net Services Administrator's Guide and more stuff that are not supported in the XE.
    I cant even see the connect page of the Oracle XE Management!!
    please try to help me if you can.

    'AMERICAN_AMERICA.IW8PC1507' is an invalid value for NLS_LANGUAGE.
    So it is a bug that ALTER SYSTEM doesn't catch the invalid value.
    It looks like your database doesn't startup after it is shutdown as you specified SCOPE=SPFILE.
    You need to re-create the spfile
    create spfile='C:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora' FROM pfile='C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts\init.ora';
    What did you intend to do by executing the alter system command?
    Makoto

  • Nls_language Please Help

    how do i set nls_language to utf8 so it would be initialized when db is started? when i try putting it into init<SID?>.ora i get an error that says: ORA-12700: invalid NLS parameter value (nls_language)
    i try doing this init.ora file:
    nls_language = utf8
    what am i doing wrong?
    alex

    Hi Hussein,
              Thanks a lot. Would follow as suggested.
    Now we are struck with issue when performing the following activity,
    ACTIVITY:
    ========
    Run Maintain Multi-lingual Tables (AD Administration Main Menu > Maintain Applications Database Entities Menu) using adadmin.
    ISSUE:
    ======
       FAILED: file INVNLINS.sql on worker  2 for product inv username INV.
    FROM THE LOG : adwork002.log
    Start time for file is: Fri Jun 21 2013 15:40:35
    sqlplus -s APPS/***** @/opt/gfsd/gfsdappl/inv/11.5.0/sql/INVNLINS.sql
    PL/SQL procedure successfully completed.
    MESG
    LANGUAGE = AMERICAN
    PACKAGE= INV_ITEM_PVT
    SQLERRM= ORA-01555: snapshot too old: rollback segment number 13 with name "_SYS
    SMU13$" too small
    select to_date('ERROR')
    ERROR at line 1:
    ORA-01858: a non-numeric character was found where a numeric was expected
    Time when worker failed: Fri Jun 21 2013 23:52:39
    QUESTION:
    ==========
    Should we fix this issue before applying synchronization patches?
    {OR}
    can we proceed with the synchronization patches keeping this issue aside?
    Thanks for your help,
    Regards,
    Rajasekaran.

  • Nls_language to be set for english stop words to work,10gR2 on Linux

    Hi,
    When we search a phrase using contains and if the phrase has a stop word in it then the stop word is identified by Oracle depending upon the session language.
    When I set the nls_language for the session to AMERICAN, stop word is not being detected and when I set the language to 'ENGLISH', it is being detected.
    Is this because the english being refered in the Full Text corresponds to 'ENGLISH' and not 'AMERICAN'.
    I guess it should refer to both american and english also.
    It would be nice if anyone can clarify this ASAP.
    Thanks a lot in advance.

    This is what I am trying to do while creating the index,
    begin
    execute immediate 'drop table text_search';
    exception
    when others then
    null;
    end;
    create table text_search (content clob, lang varchar2(3) );
    insert into text_search values ('Sun rises in the east','eng');
    insert into text_search values ('Sun cet evening','fre');
    commit;
    begin
    ctx_ddl.drop_preference('global_lexer');
    exception
    when others then
    null;
    end;
    begin
    ctx_ddl.drop_preference('english_lexer');
    exception
    when others then
    null;
    end;
    begin
    ctx_ddl.drop_preference('french_lexer');
    exception
    when others then
    null;
    end;
    begin
    ctx_ddl.drop_preference('german_lexer');
    exception
    when others then
    null;
    end;
    begin
    ctx_ddl.create_preference('english_lexer','basic_lexer');
    ctx_ddl.create_preference('french_lexer','basic_lexer');
    ctx_ddl.create_preference('german_lexer','basic_lexer');
    ctx_ddl.set_attribute('german_lexer','composite','german');
    ctx_ddl.set_attribute('german_lexer','mixed_case','yes');
    ctx_ddl.set_attribute('german_lexer','alternate_spelling','german');
    end;
    begin
    ctx_ddl.create_preference('global_lexer', 'multi_lexer');
    ctx_ddl.add_sub_lexer('global_lexer','english','english_lexer','eng');
    ctx_ddl.add_sub_lexer('global_lexer','french','french_lexer','fre');
    ctx_ddl.add_sub_lexer('global_lexer','german','german_lexer','ger');
    ctx_ddl.add_sub_lexer('global_lexer','default','english_lexer');
    end;
    begin
    ctx_ddl.drop_preference('mywordlist');
    exception
    when others then
    null;
    end;
    begin
    ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('mywordlist','STEMMER','ENGLISH');
    end;
    begin
    ctx_ddl.drop_stoplist('multistop');
    exception
    when others then
    null;
    end;
    begin
    ctx_ddl.create_stoplist('multistop', 'MULTI_STOPLIST');
    ctx_ddl.add_stopword('multistop', 'cet','french');
    ctx_ddl.add_stopword('multistop', 'the','english');
    ctx_ddl.add_stopword('multistop', 'for','english');
    ctx_ddl.add_stopword('multistop', 'all','english');
    ctx_ddl.add_stopword('multistop', 'in','english');
    end;
    begin
    execute immediate 'drop index my_text_search_idx';
    exception
    when others then
    null;
    end;
    CREATE INDEX my_text_search_idx ON text_search(content)
    INDEXTYPE IS CTXSYS.CONTEXT
    parameters ('datastore ctxsys.direct_datastore filter ctxsys.null_filter lexer global_lexer wordlist mywordlist language column lang stoplist multistop');
    while searching:
    NLS_LANGUAGE For the session is 'AMERICAN'.
    I run the query,
    select * from text_search where contains(content,'$"Sun rises in the east"') >0;
    gives no result.
    I change the session language as below and the query gives the result.
    alter session set nls_language = 'english' ;
    Same is happening when I tried for different languages.
    Please note that we need to maintain a custom stop list containing stop words for multiple languages.

  • Doubt about nls_language

    I don't understand the following situation (I don't undrestand very well how nls_lang parameters work):
    I have an 8.1.7. release database on a linux platfrom, these are the language parameters of both the db an the only instance:
    CSR>select * from nls_database_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CHARACTERSET WE8ISO8859P15
    CSR>select * from nls_instance_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    And my problem is the following: I have changed my session parameters in order to being able of writing and reading Spanish characters (I've been told that NLS_CHARACTERSET = WE8ISO8859P15) supports them.
    After doing that things are different in my client windows sqlplus than in my linux server sqlplus, so if I do the following, this is what I get:
    CLIENT'S WINDOWS SQLPLUS:
    CSR>select * from nls_session_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE SPANISH
    NLS_TERRITORY SPAIN
    CSR>update ir_ct_sms set ds_sms_v='marketing de campaña navideña' where co_sms_n=44;
    1 fila actualizada.
    CSR>commit;
    Validación terminada.
    CSR>select ds_sms_v from ir_ct_sms where co_sms_n=44;
    DS_SMS_V
    marketing de campaña navideña
    SERVER'S LINUX SQLPLUS:
    CSR>select * from nls_session_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE SPANISH
    NLS_TERRITORY SPAIN
    CSR>update ir_ct_sms set ds_sms_v='marketing de campaña navideña' where co_sms_n=44;
    1 fila actualizada.
    CSR>commit;
    Validacion terminada.
    CSR>select ds_sms_v from ir_ct_sms where co_sms_n=44;
    DS_SMS_V
    marketing de campa?a navide?a
    I don't understand why I can write the character 'ñ' but I can't read it on the server.
    Can someone tell my what the problem is about ?

    If the NLS_LANG of the client is different than the character set of the database, Oracle has to perform a character set transform. In this case, however, since both ISO-8859-1 and ISO-8859-15 define the tilde-n character, it shouldn't cause a problem.
    It is entirely possible, however, that telnet clients may understand the ISO-8859-15 character set and may not support the ISO-8859-1 character set. Setting NLS_LANG to ISO-8859-15 may well be a requirement for your telnet applications, but it is not an Oracle requirement. I'm sure there are telnet applications out there that support ISO-8859-1.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • 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

  • NLS_LANGUAGE - Canadian French

    Hi,
    does someone know what is the problem or status concerning the acceptance of "Canadian French" in ORACLE 9i Release 2 (9.2).
    We were using 9.0.1 database and a simple command like:
    alter session set nls_language='canadian french';
    was working fine but since we migrate to 9.2 (9.2.0.3 and now 9.2.0.4) CANADIAN FRENCH always give us errors like:
    ORA-12705: invalid or unknown NLS parameter value specified
    Is there any patch to apply either on 9.2.0.3 or 9.2.0.4 ?
    Any help would be appreciated
    Sylvain

    The bug is fixed in the upcoming 10g release. I have requested a backport. It will be part of 9.205. I don't know when this patch will be made available.

  • How to the value of NLS_LANGUAGE

    I use Oracle9i,I want to know how to show the value of NLS_LANGUAGE?
    Thanks.

    Hi,
    what exactly you want to do with NLS_LANGUAGE???
    do you want to set this parameter or want to see the parameter value?
    slq> show parameter NLS_LANGUAGE
    Regards,
    Darshan

  • At a glance what is new in Safari 5

    This should give a little in sight:
    http://lifehacker.com/5557731/first-look-at-whats-new-in-safari-5

    I missed the 'Blue Bar', I'm glad it has returned

  • What happens on iCloud (ex. contacts) when multiple family members use the same Apple ID?

    What happens on iCloud when multiple family members use the same Apple ID?  For example if we all choose to use iCloud for contacts, are they all merged together?  We use the same Apple ID so we can use find my iPhone to keep track of the whole family.

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

  • Macbook4,1 10.6.8 and firmware update - what went wrong?

    Macbook 4,1 2008 2.4Ghz (not unibody). I recently reformatted my hard drive and reinstalled 10.6 from the Retail DVD and all seemed to go well. The MB was working fine up to that point. I then set up the MB (network, date and time, etc.) and repaired permissions.
    I then checked Software Update and downloaded and installed the recommended updates to 10.6.8.
    Again, all seemed to go fine. System booted and I repaired Permissions again. I went to the Apple web site, a couple of other web sites, and Software Update found another update to install: Firmware. Though I don't remember what version.
    I clicked OK and it installed.
    Upon reboot, it seemed to install okay.
    But then I left the Macbook and it went into Sleep.
    I didn't come back to it again until the next day.
    When I pressed a key to wake it, I got what I now know is the screen that appears after you wake it from SAFE SLEEP. As per this Apple KB article: http://support.apple.com/kb/HT1757.
    And this is where the problems started.
    After the MB woke to the Safe Sleep screen, which shows the desktop a little "out of focus", the progress bars started filling in from left to right, BUT before they completed, the screen went BLACK.
    And it has had a problem with black screen ever since. I can boot the MB from internal or external HD or from DVD, and it seems to boot fine. Boot chime, Apple logo, spinning wheel, then at the point where it pauses, blue screen, then goes to desktop, instead the screen goes black.
    It finishes booting, but seems to go into Sleep.
    I can wake it by pressing a key, but the screen either comes on and goes black again after 10 seconds, or I get the Safe Sleep wake screen, and then it goes black after 10 seconds.
    And at boot or when waking the MB, the front LED flashes 5 times. There are no error beeps.
    I've tried changing RAM, but problems remain.
    So what's all this? Any ideas?
    The display doesn't seem dead, as it works to boot and wake. The MB works fine with external monitor.
    It's weird, but I can't think of anything apart from the Firmware update. The problems started right after installing it.
    Unfortunately, this model of Macbook doesn't have a Firmware Restoration image to download and burn to CD. It is the ONLY Mac at this point that doesn't have this!
    I called Apple support and even bought the 49 Euro Pay Per Incident service, which proved to be the same as throwing 49 Euro out the window. The only "technical" support they provided was to Reset the SMC, which you can find out about FOR FREE at the Apple website. And which I'd done anyway. I'd also reinstalled the MacOS. Don't want to beef too much, but sheesh, you've already got a Macbook that might need costly repairs, and they make you pay 49 Euro BEFORE they even ask you about the problem and what you've done to try to solve it. I'm tempted to say "ripoff". I mean, if all they can offer you is the advice to reset the SMC - which Apple offers for free at their website - then that's pretty poor service for 49 Euro, to say the least.
    Apart from the wasted 49 Euro, I'm pretty peeved about the Firmware update (or so it seems) wrecking a perfectly working 2008 Macbook. I don't know how to convince Apple of this, but I'm certainly going to try.

    Thanks for the reply.
    Re. the Displays setting, the Macbook display isn't recognized and mirroring isn't an available option.
    I've scoured the net and the idea of replacing the PRAM battery may be something to try. I read a post by a guy with a Macbook logic board screwed up by a Firmware update, which he solved by replacing the PRAM battery, as when you disconnect it you reset the logic board.
    Which capacitor?
    No luck so far with talking to Apple. I will try to get hold of someone a little more tech savvy and/or in a position of authority, as it seems that the Firmware is the culprit. Obviously a million other things could go wrong with a Macbook, but given the timing here it looks like the Firmware. Firmware updates can and occasionally do screw up a computer, as most manufacturers will warn you before you apply the update: PC makers, printer makers, etc. And they probably warn you that it's all your responsibility if anything goes wrong. But re. the Apple Firmware update:
    1) it came thru Software Update
    2) there was no warning
    3) to make things worse, there's no Firmware Restoration image that I can burn to a CD to reflash the logic board: this is the only Apple computer that doesn't have a Firmware Restoration option
    I'll try to get thru to a manager and convince him/her that the firmware may have been the cause.
    Do you think an authorized Apple tech might have access to some way to do a firmware restoration? Something not avaiable to mere mortals? Because if not, the only solution looks like a new logic board.

  • Format C drive, what steps to take for retaining all data of iTunes?

    Hello
    I want to format my C drive of Laptop and shift my itunes to E drive. I'm on windows 7. C drive is having itunes and in that I have synced my 2 iphones and 1 ipad.
    Now I want to format the C drive and want to retain all the data, backup, media etc of my synced data with the itunes.
    What I've done is that I transferred my music location from C to E drive by using apple forum discussion. I changed destination to E drive in ADVANCED TAB in Edit-Preferences. Then orgainzed data. That was successful.
    Now please help me on what to do next so that i can retain my all my data of itunes safe before formatting my C drive.
    Thanks in advance

    This definitely isn't intended as a substitute for tt2's tutorial (which is comprehensive and more detailed - in case of any differences I'd follow what's stated there), but in summary you should be doing the following.  I've assumed that, as per your original post, you've changed your media location to E:\iTunes and consolidated the library.  You now have a "split library" where:
    E:\iTunes contains a folder called iTunes Media which in turn contains several subfolders such as Automatically Added to iTunes, Audiobooks, Music, ...
    C:\Users\your user name\Music\iTunes contains the following folders and files:
    Album Artwork (folder)
    Previous iTunes Library (folder)
    iTunes Library Extras.itdb (file)
    iTunes Library Genius.itdb (file)
    iTunes Library.itl (file)
    iTunes Library.xml (file)
    I'd suggest making sure that you're running the latest version of iTunes before proceeding - by default, this will be the version that you download and install when you rebuild your PC.
    Before you change anything else, exit iTunes.  Now copy all of the folders and files in C:\Users\your user name\Music\iTunes to the same folder on your external drive (E:) that contains your media folder.  You should now have this:
    or something very similar.  Now restart iTunes while holding down the SHIFT key.  You will see this dialog:
    Select "Choose Library ..." and navigate to the folder on your external drive with the content as described above.  Select the iTunes Library.itl file and click OK.  iTunes will load - check that everything you expect to see is there.
    You now have a "portable library", i.e., all your media and the files that iTunes uses to organize them.  You can use this in conjunction with any PC running Windows and iTunes (noting limitations regarding your iTunes account and authorizations).  As tt2 suggested in his response, before you go any further:
    Make a backup of your new portable library to another device.
    De-authorize your iTunes account.
    Back up everything else you need to retain from the C: drive of your PC (this is beyond the scope of this forum - there's plenty of help out there on various Microsoft sites, etc.).  Just remember that once you take the plunge and reformat the C: drive anything that you haven't backed up is gone ...
    Once you've reformatted the drive and reinstalled Windows, install iTunes.  As befpre, hold down the SHIFT key when you start it up and select the iTunes Library.itl file on your external drive. You can then re-authorize iTunes and be back in business ...

  • What are the mandatory fields while creation of material master in differen

    what are the mandatory fields while creation of material master in different views?

    Hi Gopi,
      This is purely depends on the function configuration, which would be done MM consultants.  Kindly check with them.
    thanks & regards
    Kishore Kumar Maram

Maybe you are looking for

  • Limit of pictures for slideshow?

    Hi. Is there a limit to how many pictures you can have for a slideshow using Front Row? I just created a slideshow from iPhoto (latest version) with 1200 pictures. Then when I played it it just stopped after so many and the screen went blank. Any sug

  • Looking for Labview Position in Israel

    I'm LabVIEW programmer (CLAD) with 12 years experience. My specializations are equipment communication, measurement and control systems integration ( Communications, Control, Manufacturing Test, RF  Measurements, Data Bases) Also I work with SQL Serv

  • How connect T60 or T61 to HDTV?

    In our house we have a T60 and a T61. Would like to connect to our HDTV to play video in high def. Please let me know the best way to do this. We are willing to buy a reasonably priced PC card or USB device to provide the necessary high-def outputs;

  • Battery for DV5 entertainm​ent 1100-serie​s

    Hi everybody, I've bought a pavilion DV5 1100-series for over 1 year, the battery does no longer work (No more power: impossible to boot/run with the battery, the power line must be used). No warranty, then I have to buy a new one. I find 2 batteries

  • Create unique user accounts for each Oracle process

    hi, Please tell me the command to create unique user accounts for each Oracle process Thanks