Identification of mixed languages in oracle

Hi all

Oracle DB version: 10.2.0.1.0

I have a client whose name Customer table stores (column name is custname) in French or English. If the table contains 100 lines, then 50 lines have the customer name in the french language and 50 customer name in language English. But there is no possibility that customer name stored in the two (English and french) languages.

A single column, "custname" can have a name in french or English. All other columns stored in the English language.
There are no other columns in the table which can have the french language (all the other columns are stored in the English language only)

When I say the value of the column is stored in French, I want to say in fact that they are stored in the French language script.

Problem started when I had to separate the french language and English language documents in separate tables. i.e. French files should occupy in the CUSM_FR table and records of English name should occupy the table CUSM_EN. There is no way to distinguish if given the manual is in french or English based on all the other columns in the table. Only the script of logical language file is language French.

We have column 'lang', which is supposed to store the language code, but it stores only NULL values.

So I decided to identify the ASCII value of the name. If the ASCII value between 65 and 90 or 97 to 122 then it's English name, otherwise it is the French name.

I have written query below:

SELECT *.
Customers
WHERE (ascii (SUBSTR (custname, 1, 1)), BETWEEN 65 AND 90)
OR (ascii (SUBSTR (custname, 1, 1)) BETWEEN 97 AND 122)

What gives rise to records with English names. If I exclude the ASCII range above values, I'll get Non - English characters, French language that is in my case.

My question is, is there another way of identifying records (any other logic) that gives good results as the logic above.

Thanks in advance...

Kind regards
SK

Hello

sKr wrote:
Hello.

I think that it is not a reliable method:

I said he gets the same results as ASCII + SUBSTR, it does:

WITH customers AS
(
     SELECT 'Karl' custname FROM DUAL UNION
     SELECT 'Aélaïde' custname FROM DUAL UNION
     SELECT 'Jhon' custname FROM DUAL UNION
     SELECT 'Aimé' custname FROM DUAL UNION
     SELECT 'Ralph' custname FROM DUAL
UNION ALL       SELECT NULL             FROM dual
UNION ALL     SELECT '[missing]'     FROM dual
UNION ALL     SELECT '12345'          FROM dual
UNION ALL     SELECT 'élan'          FROM dual
)
SELECT custname,
  CASE
    WHEN  REGEXP_LIKE( custname,'^[A-Za-z]')
    THEN  'English'
          ELSE     'French'
  END lan
, CASE
      WHEN (ASCII (SUBSTR (custname, 1, 1)) BETWEEN 65 AND 90)
      OR   (ASCII (SUBSTR (custname, 1, 1)) BETWEEN 97 AND 122)
      THEN  'English'
      ELSE  'French'
  END     AS ascii_substr
FROM customers;

Output:

CUSTNAME  LAN     ASCII_S
--------- ------- -------
Aimé      English English
Aélaïde   English English
Jhon      English English
Karl      English English
Ralph     English English
          French  French
[missing] French  French
12345     French  French
élan      French  French

If these results actually identify the language properly is another question, which I also asked.

Tags: Database

Similar Questions

  • 10.11.3 stop message upgrade mixed language

    Hello

    After upgrade successful 10.11.3 messages, like dialogue stop changed to mixed-language.

    Previously, he was completely Hungarian, that now it is mixed.

    Concerning

    zoly

    Maybe this will solve your problem:

    judgment of the mac.

    Start the mac all holding the SHIFT key, it will start very slow, in safe mode, log in to your account.

    Then stop again, and then restart your mac normally.

    (this removes several system caches).

  • A question of character of Arabic language in oracle report (PDF Format)

    Hello

    I m using oracle 10g R2, Oracle 10 g developer db & MS. Windows server 2003 R2.
    I exported a dmp file from a database database that was running on the AR8MSWIN1256 database character set.
    I created a new database and imported this DMP file in the database that has the same platform, I also put the NLS_LANG in the registry of windows as AMERICAN_AMERICA. AR8MSWIN1256, characters in database as database AR8MSWIN1256 & game as AL16UTF16 national character.

    I am facing a problem
    When I run any report Oracle it shows unusual characters such as Italian or German in the report (PDF format client-side)
    However, when I save the data through the oracle Forms, it allows to save and retrieve in Arabic (Egyptian).
    But it shows the unusual result in report

    How can I solve this problem.

    Kind regards

    Hervé

    1. go to REGEDIT ==> HKEY_LOCAL_MACHINE ==> ==> ORACLE ==> KEY_DEVSUITEHOME SOFTWARE

    2. SELECT NLS_LANG: UNITED ARAB EMIRATES ARABIC_UNITED. AR8MSWIN1256.

    3. make your regional & language settings as Arab environment.

    4. set all fonts must be in Tahoma.

    5 generate an RDF file in Report Builder and then convert the REX.

    6. Finally the generated reports.

  • Mixed-language after English/french language

    It's really weird. I tried to solve the problems of projectors, and an alleged solution is to alternate languages. Perhaps, he rebuilt the spotlight index.

    After the passage of the English to the french and back again my IU is in English, but my word is in French. A restart does not solve the problem, or don't have changing languages yet. Maybe I'll try to go to the Chinese, but I think I need to do a wipe/restore.

    If I had to bet I guess it's a cache problem. iOS needs a cache cleaner for eons.

    In any case, beware of language with iOS 9.3 switches.

    PS. the language is a little weird. Spanish, for example, is in English, but it's English for me. To get to the British English, you will have to restart. I can't go directly from Spanish to British English. I assume it's the same for the different versions of the Spanish...

    jfaughnan wrote:

    After the passage of the English to the french and back again my IU is in English, but my word is in French.

    It is a normal behavior.  Word completion follows the keyboard (not the language).  When you change languages, it adds a new default keyboard.  To return to your old, you press the Globe and make sure that it is the active keyboard or go to settings > general > keyboard > keyboard and remove what you don't want.

  • Mixed language in the stop/restart/logout dialog and in the login window

    Since I upgraded to El Capitan my shutdown/restart/logout dialog and in the login window appears in 2 different languages. My mother tongue is Italian, but I have a message in English.

    My default language is System Preferences is Italian and that is not installed.

    Try I'have:

    In the menu bar, select

     ▹ System Preferences... ▹ Language & region

    Deselect each language unwanted from the list and click OK. Then select your region in the menu of the region.

    Close the preferences window. You may need to sign out and then sign back in before the change takes effect.

    If there is no change, reset the PRAM.

    But nothing!

    Can you help me please?

    Do you have other users accounts in your mac?

  • Change the language for Oracle Disqualification

    Hello

    I installed Virtual Machine Disqualification of selection of pre-designed programmes.

    Windows is in french on my host.

    I have installed Firefox in English so the web page is in English.

    But when I run the Director, the application is in french.

    How can I change the Director asks in English?

    Thanks for your help

    Joffrey

    Excerpt from the online help:

    Adjust the locale of the Client

    A client computer will display the ISU Disqualification in the local language, according to the display of the machine settings.

    To set the language of the customer in order to change the language of the UIS, follow these steps:

    1. Configure the web display options of language of the browser to display web pages from the server of the Disqualification in the chosen language.
    2. Change the regional settings of the client computer to display Java WebStart UIS Disqualification in the language; for example, on machines Windows change the regional settings of the system, the Format and the display language.

    Notes:

    • Following the Java 7 update 25, now the display language must be adjusted in order to change the language in which Java applications are displayed. In previous versions, only the regional system and Format parameters have been used. If you use Windows, only Windows Ultimate and the Windows Enterprise include the Multilingual User Interface Pack to change the language of the installed decoration.
    • For testing purposes, it is possible to substitute the parameters of client using a server option that sets the locale for all customers. To do this, add the following setting to [edq_local_home]/properties/clientstartup.properties: locale = [ISO 639 - 2 Language Code].] For example, to display all the client Java UIS in Japanese regardless of the regional settings of the client, add this line: locale = ja
  • Location: how to display a mixed language as en - us it - ch etc.

    Hi all
    I use JDeveloper 11.1.1.0 and I am trying to locate my page.
    I wish I had 'multilingual' as American English (en - us) or Italian-Switzerland (it - ch), but I don't see them.

    I defined a resource_it bundle - ch.properties, then I signed it in the faces-config. XML-> settings regional config-> it - ch and finally I put the language of the browser for it - ch, but it does not work.

    Why?

    What is the problem?

    Thank you

    Hello

    never tried it, but the documentation says:

    If you create a localized version of a set of basic resources, you must add the language code letters lowercase ISO 639 for the name of the file.
    For example, the Italian version of the UIResources beam is UIResources_it.properties. You can add the ISO 3166 code of the country (for example it_CH, for the Switzerland) uppercase if several languages are used by several countries.
    You can also add a non-standard option Variant (for example, to provide information platform or region).

    So try it_CH instead of TI - ch (akka en_US)

    Kind regards

    Branislav

  • ORA-19625: error identification of file

    Hi all;

    SYS > select name, database_role, protection_mode from v$ database;

    NAME DATABASE_ROLE PROTECTION_MODE

    --------- ---------------- --------------------

    PERFORMANCE MAXIMUM STANDBY PHYSICS CRMS

    SYS > select max(sequence#) from v$ log_history;

    MAX(SEQUENCE#)

    --------------

    14424

    SYS > list of archive logs;

    Database log mode Archive Mode

    Active AutoArchive

    Destination of archive USE_DB_RECOVERY_FILE_DEST

    Sequence of journal online oldest 14427

    Log sequence to archive 0

    Current log sequence 14428

    > > I got some error at the time of replication messages.  (errros are from alert.log to waiting for database)

    Physical Standby Database mounted.

    Lost write protect mode the "typical" value

    Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_lgwr_5064.trc file:

    ORA-00313: open failed for members of the Journal 4 of the thread group 0

    ORA-00312: threads of journal online 4 0: ' / u03/app/oracle/oradata/REDOLOG/stbycrms/stby_redo4.log'

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_lgwr_5064.trc file:

    ORA-00313: open failed for members of the Journal 4 of the thread group 0

    ORA-00312: threads of journal online 4 0: ' / u03/app/oracle/oradata/REDOLOG/stbycrms/stby_redo4.log'

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_lgwr_5064.trc file:

    ORA-00313: open failed for the members of the newspaper group 5 of the thread 0

    ORA-00312: threads of journal online 5 0: ' / u03/app/oracle/oradata/REDOLOG/stbycrms/stby_redo5.log'

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    ..

    ...

    Completed: alter database mount standby

    Fri 30 Oct 23:08:35 2015

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_ora_5140.trc file:

    ORA-19625: error identification of file /u02/app/oracle/oradata/stbycrms/system01.dbf

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_ora_5140.trc file:

    ORA-19625: error identification of file /u02/app/oracle/oradata/stbycrms/sysaux01.dbf

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    Additional information: 3

    RMAN DUPLICATE: Errors in krbm_getDupCopy

    Errors in the /u02/app/oracle/diag/rdbms/stbycrms/stbycrms/trace/stbycrms_ora_5140.trc file:

    ORA-19625: error identification of file /u02/app/oracle/oradata/stbycrms/users01.dbf

    ORA-27037: unable to get file status

    Linux error: 2: no such file or directory

    11.2.0.1 on redhat

    It seems that two copies has been tried or done more than once and on the second time, he threw the "Krbm_getDupCopy" (which made me think see the stop).

    So if you ever have to re-create the day before do not delete files on the standby is the lesson.

    OR

    You have the error because RMAN checks the files on the two copies of 11.2 on.  (This is probably what happened)

    Thank you! I learned something new!

    See

    RMAN DUPLICATE: Errors in Krbm_getDupCopy found in the alert.log (Doc ID 1476641.1)

    Best regards

    mseberg

  • Oracle Jdeveloper error on Oracle Bigdata Lite Virtual Machine

    Hi all

    I use large data Oracle lite virtual machine from the following link: Oracle Big Data VM Lite.

    I'm trying to practice the tutorial on the following link: http://www.oracle.com/technetwork/topics/bigdata/articles/intro-to-oracle-nosql-db-hol-1937059.pdf.

    When I try to run the MoviePlex project in Oracle Jdeveloper, who in turn calls Weblogic server and triggers the following error during the creation of the Weblogic domain:

    [Waiting for the field to complete the construction...]

    [08: 41:11] Creation of integrated Weblogic domain...

    [08: 41:39] integrated Weblogic domain completed successfully.

    Using the 7101 port *.

    / Home/Oracle /. JDeveloper/system11.1.1.6.38.61.92/defaultdomain/bin/startWebLogic.sh

    [waiting for the server to complete its initialization...]

    .

    .

    Arguments of memory in JAVA:-Xms512m-Xmx512m

    .

    Start mode of WLS = development

    .

    CLASSPATH=/u01/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/Middleware/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/latest/lib/tools.jar:/u01/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/Middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/u01/Middleware/wlserver_10.3/server/lib/webservices.jar:/u01/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/ U01/middleware/wlserver_10.3/server/lib/XQRL.jar::/U01/connectors/OLH/jlib/*:/usr/lib/Hadoop/*:/usr/lib/Hadoop/client/*:/U01/NoSQL/kV-EE/lib/kvstore.jar:.

    .

    Unrecognized option:-jrockit

    PATH=/u01/Middleware/wlserver_10.3/server/bin:/u01/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/java/latest/jre/bin:/usr/java/latest/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/R/bin:/u01/Middleware/jdeveloper/jdev/bin:/usr/java/latest/bin:/home/oracle/bin:/u01/app/oracle/product/12.1.0/dbhome_1/bin:/home/oracle/scripts:/opt/bin:/home/oracle/bin

    .

    ***************************************************

    * To start WebLogic Server, use a username and *.

    * password assigned to an administrator-level user.  For *.

    * server administration, using the WebLogic Server *.

    * console in http://hostname/ReportServer: port/console         *

    ***************************************************

    from weblogic with the Java version:

    WLS starting with line:

    jrockit - /usr/java/latest/bin/Java-Xms512m-Xmx512m-Dweblogic.Name=DefaultServer-Djava.security.policy=/u01/Middleware/wlserver_10.3/server/lib/weblogic.policy-Djavax.net.ssl.trustStore=/u01/Middleware/wlserver_10.3/server/lib/DemoTrust.jks-Dweblogic.nodemanager.ServiceEnabled=true - Xverify : aucun-da-Dplatform.home=/u01/Middleware/wlserver_10.3-Dwls.home=/u01/Middleware/wlserver_10.3/server-Dweblogic.home=/u01/Middleware/wlserver_10.3/server-Djps.app.credential.overwrite.allowed=true-Dweblogic.management.discover=true-Dwlw.iterativeDev=-Dwlw.testConsole=-Dwlw.logErrorsToConsole=-Dweblogic.ext.dirs=/u01/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath:/u01/Middleware/patch_jdev1111/profiles/default/sysext_manifest_classpath weblogic. Server

    Error: Could not create the Virtual Machine Java.

    Error: A fatal error has occurred. Program ends.

    Unrecognized option:-jrockit

    Error: Could not create the Virtual Machine Java.

    Error: A fatal error has occurred. Program ends.

    Process is complete.

    The version of JRE installed on the virtual computer is as below:

    [oracle@bigdatalite ~] java $-version

    Java version "1.7.0_51".

    Java (TM) SE Runtime Environment (build 1.7.0_51 - b13)

    Java for 64-bit Server VM (build 24.51 - b03, mixed mode)

    [oracle@bigdatalite ~] $

    I searched on Google but also OTN but found no solution.

    Can anyone already encountered the same problem or can help, it will be highly appreciated.

    Thank you

    Bilal

    Hi Bilal,

    You can try to change the folder to remove the parameter Jrocket below...

    concerning

    Keith

    File: /home/oracle/.jdeveloper/system11.1.1.6.38.61.92/DefaultDomain/bin/setDomainEnv.sh

    Add:

    # Clearing JAVA_VM - Difficulty to remove the setting of jrockit
    JAVA_VM =""

    just before:

    If ["${JAVA_VENDOR}"! = "BEA"]; then
    JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
    export JAVA_VM
    on the other
    JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
    export JAVA_VM
    FI

  • Oracle Forms 11.1.2.0 on Win 7 64-bit bit JVM error

    Try installing Oracle Forms 11.1.2.0 on Win 7 64 bit and get INST-07407: unable to detect the platform of the machine or the pieces of the JVM.

    I read somewhere where you have spaces in the JDK install path problems, so I changed the path to c:\oracle\java instead of C:\Program Files\java\jdk1.6.0_24. I have a 64 bit installed JDK. What else could be the cause of this error message? Open a request to Oracle service was no help - hoping to help here. I set JAVA_HOME and added the House of java at the end of the PATH. I can start and stop the weblogic home C:\Oracle\middleware_oraforms middleware server.


    c:\Oracle\Java\bin > java-version
    Java version "1.6.0_24".
    Java (TM) SE Runtime Environment (build 1.6.0_24 - b07)
    Java for 64-bit Server VM (build 19.1 - b02, mixed mode)

    c:\Oracle\Java\bin > % JAVA_HOME Echo%
    C:\Oracle\java

    c:\Oracle\Java\bin > echo %path%
    C:\Oracle\Ora10\bin; C:\product\11.2.0\dbhome\bin; C:\Oracle\ORA11\11.2.0\Bin; C:\P
    Program Files (x 86) \AMD APP\bin\x86_64; C:\Program Files (x 86) \AMD APP\bin\x86; C:\
    Windows\System32; C:\Windows; C:\windows\System32\Wbem; C:\windows\System32\Windows
    PowerShell\v1.0\; C:\Program Files (x 86) \ATI Technologies\ATI. ACE\Core-Static; C:\
    Program Files (x 86) \WinMerge; C:\Program Files (x 86) \Rational\common; C:\Program F
    Islands (x86)\Hummingbird\Connectivity\11.00\Accessories\; C:\Program Files (x 86) \R
    ational\ClearCase\bin; C:\Program Files (x 86) \Microsoft SQL Server\100\Tools\Binn
    \VSShell\Common7\IDE\; C:\Program Files (x 86) \Microsoft SQL Server\100\Tools\Binn
    \; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files (x 86) \w
    Microsoft SQL Server\100\DTS\Binn\; * C:\Oracle\java*


    Product.Properties
    DOCSWEBROOT=http\\://download.oracle.com/docs/cd/E17904_01/web.1111
    ProgramGroupName=BEA WebLogic Platform 10.3 (Integrated Build)
    PLATFORMHOME=C:\\Oracle\\MIDDLE~1\\wlserver
    WLS_INSTALL_DIR=C:\\Oracle\\MIDDLE~1\\wlserver
    USER_INSTALL_DIR=C:\\Oracle\\MIDDLE~1\\wlserver
    CONFIGWIZ_HOME=C:\\Oracle\\MIDDLE~1\\wlserver
    BEAHOME=C:\\Oracle\\MIDDLE~1
    MW_HOME=C:\\Oracle\\MIDDLE~1
    WL_HOME=C:\\Oracle\\MIDDLE~1\\wlserver

    First of all, there is no need to relocate the jdk system. Part of your problem is more likely the result of a known limit which is caused by the system path or the CLASSPATH containing special characters like the parentheses in (x 86). So, follow these steps:

    Before you begin, make sure that your computer has a static IP address. If it is not the case, you need to install the loopback adapter Windows. For more details, read the Setup Guide and system requirements.

    1. clean your installation attempts failed. Don't forget to also delete the folder C:\bea assuming that no other product does WLS.

    2 uninstall the 64-bit jdk and reinstall where you prefer. I would recommend its default location.

    3 log in Notepad and let it open as a place of detention to paste the following information.

    4. open system properties. Computer > right click > properties > Advanced System Properties > Environment Variables

    5. search for the path in the system variables and values cut into the Clipboard and paste them into Notepad session, that you opened above. Save this information for later.

    6. in the value of path, he has defined as follows, make sure the path to the jdk is correct for your installation:

    % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%; C:\Program Files\Java\jdk1.6.0_37\bin

    7. you need the 'generic' WLS download if you plan to run 64-bit. It is a jar instead of an exe file. Assuming you are using WLS 10.3.6, open a DOS window and start Setup as follows:
    java-jar C:\PathToJar\wls1036_generic.jar

    After completing the installation of WLS and FMw installation and configuration, you can reset your WAY to the way you want to.

  • As a result of different languages

    Hello! I have a table with a text column with texts of store on different languages.
    There are some things I want to know:
    (1) there is no language column in the table base (with presentation of the chain), but there is the column with the language id (FK), so I have a link with the language table where I put the names of languages for oracle.
    Can I use cross lexer with this language ID column?
    (2) I intend to use lexer auto and specify the query language setting for each query nls_language, that I wanted to do or in the query pattern. So I create indexes in this way:

    Start:
    ctx_ddl.create_statement ('my_lexer', 'auto_lexer');
    ctx_ddl.set_attribute ('my_lexer', 'index_stems', 'Yes');
    end;

    create indexes my_index on my_table (colonne_texte)
    indexType is ctxsys.context
    parameters ("lexer my_lexer");

    After that, I tried to query:
    SELECT count (*) FROM my_table WHERE CONTAINS (colonne_texte, '$sing') > 0;
    SELECT count (*) FROM my_table WHERE CONTAINS (colonne_texte, '$sang') > 0;
    SELECT count (*) FROM my_table WHERE CONTAINS (colonne_texte, '$sung') > 0;

    I supposed to get the same count for each SELECT, but each time it was different.
    So what I am doing wrong?

    (3) what is the difference between auto_lexer and world_lexer?
    According to the literature, two of them are used for indexing the columns that contain documents of different languages and using automatic detection.

    (1) there is no language column in the table base (with presentation of the chain), but there is the column with the language id (FK), so I have a link with the language table where I put the names of languages for oracle.
    Can I use cross lexer with this language ID column?

    Ctx_ddl.add_sub_lexer has a fourth parameter to a different value for the language. You can use your language and in your creation of index IDs, but it must be character, not text. Alternatively, you can create a materialized view that converts a numeric value to text and create your index on it.

    (2) I intend to use lexer auto and specify the query language setting for each query nls_language, that I wanted to do or in the query pattern. So I create indexes in this way:

    Start:
    ctx_ddl.create_statement ('my_lexer', 'auto_lexer');
    ctx_ddl.set_attribute ('my_lexer', 'index_stems', 'Yes');
    end;

    create indexes my_index on my_table (colonne_texte)
    indexType is ctxsys.context
    parameters ("lexer my_lexer");

    After that, I tried to query:
    SELECT count (*) FROM my_table WHERE CONTAINS (colonne_texte, '$sing') > 0;
    SELECT count (*) FROM my_table WHERE CONTAINS (colonne_texte, '$sang') > 0;
    SELECT count (*) FROM my_table WHERE CONTAINS (colonne_texte, '$sung') > 0;

    I supposed to get the same count for each SELECT, but each time it was different.
    So what I am doing wrong?

    Use a list of words with the set of attributes of generator stemmers for the automobile, instead of setting the index_stems attribute in a lexer. If you use the derived forms and index_stems generator, it uses index_stems and not the derived forms generator, so make sure that you do not use index_stems, to avoid the conflict.

    (3) what is the difference between auto_lexer and world_lexer?
    According to the literature, two of them are used for indexing the columns that contain documents of different languages and using automatic detection.

    Auto_lexer is new to 11g and has several attributes and characteristics. World_lexer is still provided for backward compatibility, so that the code that was written before 11g and uses it to run.

    I presented a demo below, using some of the discussed methods. I have also added filter by lang_id and surlabasedesdonneesdufabricantduballast to improve performance when the limitation of requests for specific languages.

    SCOTT@orcl_11gR2> CREATE TABLE lang_tab
      2    (lang_id   VARCHAR2 ( 1) PRIMARY KEY,
      3       language  VARCHAR2 (30))
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO lang_tab VALUES (1, 'ENGLISH')
      3  INTO lang_tab VALUES (4, 'FRENCH')
      4  INTO lang_tab VALUES (5, 'GERMAN')
      5  INTO lang_tab VALUES (7, 'SPANISH')
      6  SELECT * FROM DUAL
      7  /
    
    4 rows created.
    
    SCOTT@orcl_11gR2> CREATE TABLE my_table
      2    (lang_id      VARCHAR2 (1) REFERENCES lang_tab,
      3       text_column  CLOB)
      4  /
    
    Table created.
    
    SCOTT@orcl_11gR2> INSERT ALL
      2  INTO my_table VALUES (1, 'I will sing a song.')
      3  INTO my_table VALUES (1, 'I sang a song.')
      4  INTO my_table VALUES (1, 'Many songs were sung.')
      5  INTO my_table VALUES (4, 'Je vais chanter une chanson.')
      6  INTO my_table VALUES (4, 'J''ai chanté une chanson.')
      7  INTO my_table VALUES (4, 'Beaucoup de chansons ont été chantées.')
      8  INTO my_table VALUES (5, 'Ich werde ein Lied singen.')
      9  INTO my_table VALUES (5, 'Ich sang ein Lied.')
     10  INTO my_table VALUES (5, 'Viele Lieder wurden gesungen.')
     11  INTO my_table VALUES (7, 'Voy a cantar una canción.')
     12  INTO my_table VALUES (7, 'Me cantó una canción.')
     13  INTO my_table VALUES (7, 'Muchas canciones fueron cantadas.')
     14  SELECT * FROM DUAL
     15  /
    
    12 rows created.
    
    SCOTT@orcl_11gR2> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('french_lexer', 'basic_lexer');
      4    CTX_DDL.CREATE_PREFERENCE ('german_lexer', 'basic_lexer');
      5    CTX_DDL.CREATE_PREFERENCE ('spanish_lexer', 'basic_lexer');
      6    CTX_DDL.CREATE_PREFERENCE ('my_lexer', 'multi_lexer');
      7    CTX_DDL.ADD_SUB_LEXER ('my_lexer', 'default', 'english_lexer');
      8    CTX_DDL.ADD_SUB_LEXER ('my_lexer', 'french', 'french_lexer', '4');
      9    CTX_DDL.ADD_SUB_LEXER ('my_lexer', 'german', 'german_lexer', '5');
     10    CTX_DDL.ADD_SUB_LEXER ('my_lexer', 'spanish', 'spanish_lexer', '7');
     11    CTX_DDL.CREATE_PREFERENCE ('my_wordlist', 'basic_wordlist');
     12    CTX_DDL.SET_ATTRIBUTE ('my_wordlist', 'stemmer', 'auto');
     13  END;
     14  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> CREATE INDEX my_index ON my_table (text_column)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  FILTER BY lang_id
      4  PARAMETERS
      5    ('LEXER            my_lexer
      6        LANGUAGE COLUMN  lang_id
      7        WORDLIST       my_wordlist')
      8  /
    
    Index created.
    
    SCOTT@orcl_11gR2> COLUMN text_column FORMAT A45
    SCOTT@orcl_11gR2> SELECT * FROM my_table
      2  WHERE  CONTAINS (text_column, '$sing AND SDATA (lang_id = "1")') > 0
      3  /
    
    L TEXT_COLUMN
    - ---------------------------------------------
    1 I will sing a song.
    1 I sang a song.
    1 Many songs were sung.
    
    3 rows selected.
    
    SCOTT@orcl_11gR2> SELECT * FROM my_table
      2  WHERE  CONTAINS (text_column, '$sang AND SDATA (lang_id = "1")') > 0
      3  /
    
    L TEXT_COLUMN
    - ---------------------------------------------
    1 I will sing a song.
    1 I sang a song.
    1 Many songs were sung.
    
    3 rows selected.
    
    SCOTT@orcl_11gR2> SELECT * FROM my_table
      2  WHERE  CONTAINS (text_column, '$sung AND SDATA (lang_id = "1")') > 0
      3  /
    
    L TEXT_COLUMN
    - ---------------------------------------------
    1 I will sing a song.
    1 I sang a song.
    1 Many songs were sung.
    
    3 rows selected.
    
    SCOTT@orcl_11gR2> ALTER SESSION SET NLS_LANGUAGE = 'FRENCH'
      2  /
    
    Session altered.
    
    SCOTT@orcl_11gR2> SELECT * FROM my_table
      2  WHERE  CONTAINS (text_column, '$chanter AND SDATA (lang_id = "4")') > 0
      3  /
    
    L TEXT_COLUMN
    - ---------------------------------------------
    4 Je vais chanter une chanson.
    4 J'ai chanté une chanson.
    4 Beaucoup de chansons ont été chantées.
    
    3 rows selected.
    
    SCOTT@orcl_11gR2> ALTER SESSION SET NLS_LANGUAGE = 'GERMAN'
      2  /
    
    Session altered.
    
    SCOTT@orcl_11gR2> SELECT * FROM my_table
      2  WHERE  CONTAINS (text_column, '$singen AND SDATA (lang_id = "5")') > 0
      3  /
    
    L TEXT_COLUMN
    - ---------------------------------------------
    5 Ich werde ein Lied singen.
    5 Ich sang ein Lied.
    5 Viele Lieder wurden gesungen.
    
    3 rows selected.
    
    SCOTT@orcl_11gR2> ALTER SESSION SET NLS_LANGUAGE = 'SPANISH'
      2  /
    
    Session altered.
    
    SCOTT@orcl_11gR2> SELECT * FROM my_table
      2  WHERE  CONTAINS (text_column, '$cantar AND SDATA (lang_id = "7")') > 0
      3  /
    
    L TEXT_COLUMN
    - ---------------------------------------------
    7 Voy a cantar una canción.
    7 Me cantó una canción.
    7 Muchas canciones fueron cantadas.
    
    3 rows selected.
    
    SCOTT@orcl_11gR2>
    
  • Check spelling multi-language?

    Hi all

    new to Dreamweaver (CS5, Mac), but with 15 years of experience with HTML and GoLive, I have some difficulty in finding my way. Not all my questions are answered in help, The Missing Manual or the FAQ questions. Like this one:

    I have a multi-language site, and even some of the pages are multilingual. Is it true the spellchecker DW CS5 to get the dictionary to use for the verification of the prefs? I got news of language in all of my pages (< meta http-equiv = "Content-language" content = "...) (">). is it true that DW does not use this information?

    To be precise: if I want to check several pages, some of which are entirely in English, others in the whole Germany, it seems I have to change the preferences between checks of the spell; is this true?

    It also seems that when a page contains multiple languages, I have no option of real audit at all; true?

    Thanks for any clarification, you may be able to give; so far, the experience of DW was not a pure joy. Some things were * so * much easier and faster in GoLive! (Well, not multi-language out checks, I concede that.)

    Lutz Pietschker

    No, you can't here around pref for language switching during the passage of language. It would be good if this could work as in InDesign, where you can mix languages however you like and have always check spelling in the appropriate language. But it may not.

    (I agree with your last paragraph - many things have been so much easier, more flexible and faster in GoLive - and I even mentioned the site management, in my opinion, it is next to non-existent in DW).

  • Oracle DB service - evil powers

    Hi all.
    We have a problem with communication between the web server (Win 2003, IIS 6) named WEB and DB (Win 2003 Itanium, Oracle 10 g 10.2) server named ORACLE.
    DB service must read the file via a special folder on the web server in BLOB using special dll. A share is created for this folder with permissions to full access to the account of $ ORACLE, computer account of the server of DB of sense.
    This diet works on about 10 servers everywhere in the country, but not on these 2 servers.
    It works for two times (2 files are loaded), but when any user tries to load the third party (any, user, what file) we get "Access denied" error during DB tries to read the file.
    The Windows security logs show us, that for the first two files Oracle server uses the account of $ ORACLE mentioned above, but he began using the NT AUTHORITY\ANONYMOUS LOGON account.
    We tried to restart servers, listener, DB service, but it never helps. After awhile all again OK - once again for the two files - and then get the same shit.
    Any ideas?

    user8321972 wrote:
    DB service must read the file via a special folder on the web server in BLOB using special dll.

    It would be really useful if you want to let us know what your sentence quoted above. It seems to mean roughly identical to the sentence below:

    "I built a car to transport some people using special alloys, but it does not work.

    You actually wrote the code? If so it is in one of the recognized languages of Oracle - PL/SQL, SQL, Java - and could you share the code which is a failure.

    Niall Litchfield
    http://www.orawin.info/

  • Normal Edition of Oracle vs express

    How are you?
    want to ask you the following:
    I do a course online in PL/SQl (see program below) and I installed originally
    an edition of Oracle Express 10.
    My instructor told me that I should install a normal edition because
    ' express edition behaves very differently.
    the problem is that normal editing consumes a lot of resources and really slows down the computer. I feel that for this
    courses (see below), there is no reason to install all of the Oracle.
    What do you think will I move to oracle express?


    Thanks :)

    ===========
    Intermediate Oracle

    Get hands-on experience with Oracle PL/SQL programming language with the assistance of experts of a veteran of the TI. PL/SQL is extension of procedural language of Oracle to SQL Structured Query Language (). This course will give you the skills needed to write powerful and flexible programs using that language. You will learn the building blocks and the major features of PL/SQL, including expressions various iterations and built-in functions. Then, you start to build programs fully functional PL/SQL with procedures, packages, debugging routines, structures of data base, the triggers and cursor processing. When you're done this course, you will be able to store PL/SQL programs in a database and run them.

    Hello

    I doubt that there are big differences how PL/SQL performs. For example, a difference is that the oracle XE will only use one processor and no more. In addition, it is wrong to say that a regular edition of Oracle uses more resources. You can also have a regular instance small and sexy with 256 M SGA works well on your PC.

    See you soon,.
    David

    OCP 9i / 10g / 11g
    http://www.oratoolkit.ch/knowledge/HOWTO/installation/OTN.php

  • max in Oracle JVM heap implementation

    Hello-
    I'm having a problem with a Java stored procedure to run out of heap memory in Oracle 10 g running Java 1.4.
    Normally (running Java in a standard context) I would change just the - Xmx with a higher value, but for the life of me I can't figure out how do it in the context of the stored procedure.
    I scoured Google and I have installed Oracle JVM stuff, all to nothing does not.
    Can someone help me with how to set my heap size max, or check that it is impossible? I took all the parameters of memory standard Oracle (JAVA_POOL, limits of the SGA/PGA/UGA) out of the picture to raise them and keeping an eye on the values of memory until the procedure fails (at around 700 m), so I'm pretty sure this is my problem.

    So far, I watched:
    Config files
    Config tables
    DB settings

    I was not able to find everything related to distance for setting JVM option in any of the foregoing.
    It is worth noting that I came across another forum where someone was missing to set their minimum heap size, and they were told that it was not possible. I just have trouble believing that it is the same story with something as important as the max heap size.
    A large part of the obligation for any help.
    Thank you
    Annaka

    From Metalink Note 466112.1:
    ******************************
    Applies to:
    Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.3
    This problem can occur on any platform.
    Symptoms
    When you try to run a java class that works fine in a stand alone JVM, fails with Oracle JVM with the following error:

    ERROR
    ORA-29532: Java completed by eception Java exception appeal:
    means
    ORA-06512: at "IDS_SYS. POD', line 3

    Cause
    The MaxMemorySize has been in 256 M (default values) where the JSO has need of memory over 256 MB to run.

    This can be checked as follows:

    SQL > create or replace function getMaxMemorySize return number
    2 is the name of the java language
    3 'oracle.aurora.vm.OracleRuntime.getMaxMemorySize () returns long. "
    4.

    The function is created.

    SQL > select getMaxMemorySize from double;

    GETMAXMEMORYSIZE
    ----------------
    268435456

    After you increase the MaxMemorySize to a higher value (1 GB), the problem has been fixed

    Solution
    Please increase the MaxMemorySize for a larger values (i.e. 1 GB), this can be done as follows:

    SQL > create or replace function setMaxMemorySize (num number) return number
    2 is the name of the java language
    3 'oracle.aurora.vm.OracleRuntime.setMaxMemorySize (long) returns long. "
    4.

    The function is created.

    SQL > select setMaxMemorySize(1024*1024*1024) from double;

    SETMAXMEMORYSIZE(1024*1024*1024)
    --------------------------------

    Then you can check if the value is set correctly from the following:

    SQL > select getMaxMemorySize from double;

    GETMAXMEMORYSIZE
    ----------------
    1073741824
    ******************************

    In my case, I had to put the parameter included in the work of the session.

    Good bye
    DPT

    Published by: DPT on September 23, 2008 16:27 - tags added

Maybe you are looking for