Help needed with oracle text special character search

Hi all
Using oracle 11g sql developer 4.0
I am facing this challenge where Oracle text when it comes to searching text that contains special character.
This what I have done so far with help of http://www.orafaq.com/forum/t/162229/
  CREATE TABLE "SOS"."COMPANY"
   ( "COMPANY_ID" NUMBER(10,0) NOT NULL ENABLE,
  "COMPANY_NAME" VARCHAR2(50 BYTE),
  "ADDRESS1" VARCHAR2(50 BYTE),
  "ADDRESS2" VARCHAR2(10 BYTE),
  "CITY" VARCHAR2(40 BYTE),
  "STATE" VARCHAR2(20 BYTE),
  "ZIP" NUMBER(5,0)
   ) SEGMENT CREATION IMMEDIATE
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "USERS" ;
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (1,'LSG SOLUTIONS LLC',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (2,'LOVE''S TRAVEL',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (3,'DEVON ENERGY',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (4,'SONIC INC',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (5,'MSCI',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (6,'ERNEST AND YOUNG',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (7,'JOHN DEER',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (8,'Properties@Oklahoma, LLC',null,null,null,null,null);
Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (9,'D.D.T  L.L.C.',null,null,null,null,null);
   BEGIN
CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
     CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '.,@-'''); -- to skip . , @ - ' symbols
    END;
  CREATE INDEX my_index2 ON COMPANY(COMPANY_NAME)
     INDEXTYPE IS CTXSYS.CONTEXT PARALLEL
   PARAMETERS ('LEXER your_lexer');   
SELECT
company_name
FROM company
WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
ORDER BY company.COMPANY_ID;
output
company_name
1 LSG SOLUTIONS LLC
2 Properties@Oklahoma, LLC
only return 2 row but should return 3

I just noticed that I forgot to use an empty stoplist, so I have added that to the revised example below.  Otherwise, it uses a default stoplist that would not index common single-letter words like A and I.
1. Whtat is Just search on single character 'L'? It give me error.
Since it uses the NEAR operator, searching for just one letter causes incomplete syntax, asking it to search for L near a missing second value.  So, I have added additional code to allow for just one letter.
2. How do I do auto refresh on this index on datastore?
If I add "sync        (on commit)" it does not refresh the previously set token.
Sync(on commit) does synchronize so that the data is immediately searchable.  You have to either optimize or rebuild or drop and recreate the index to condense the rows in the domain index table.
3.lastly explanation of
<seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
                  <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
why 100 true and 100 false
100 is just a default value that I used for the second parameter of near, indicating how close the letters need to be to each other.  True and False are values for the third parameter of near, indicating whether or not the letters must be in the same order or not.  So, it returns the results in the order of first those that are very close to one another and in the same order, then those that may be further away but in the same order, then those that may be further away and in any order.
SCOTT@orcl12c> CREATE TABLE company_near
  2    (company_id    NUMBER(10,0) NOT NULL ENABLE,
  3      company_name  VARCHAR2(50 BYTE))
  4  /
Table created.
SCOTT@orcl12c> SET DEFINE OFF
SCOTT@orcl12c> BEGIN
  2  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (1,'LSG SOLUTIONS LLC');
  3  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (2,'LOVE''S TRAVEL');
  4  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (3,'DEVON ENERGY');
  5  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (4,'SONIC INC');
  6  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (5,'MSCI');
  7  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (6,'ERNEST AND YOUNG');
  8  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (7,'JOHN DEER');
  9  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (8,'Properties@Oklahoma, LLC');
10  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (9,'D.D.T  L.L.C.');
11  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (10,'LSG COMPANY, LLC');
12  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (11,'LSG STAFFING, LLC');
13  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (12,'L & S GROUP LLC');
14  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (13,'L S & G, INC.');
15  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (14,'L.S.G. PROPERTIES, L.L.C.');
16  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (15,'LSGS PROPERTIES, LLC');
17  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (16,'LSQ INVESTORS, L.L.C');
18  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (17,'LHP SHERMAN/GRAYSON, LLC');
19  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (18,'Walmart');
20  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (19,'Wal mart');
21  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (20,'LSG Property Investments, L.L.C.');
22  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (21,'1224 S GALVESTON AVE, LLC');
23  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (22,'1527 S GARY AVE, LLC');
24  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (23,'FIFTEENTH STREET GRILL');
25  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (24,'Massa Lobortis LLP');
26  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (25,'Risus A Inc.');
27  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (26,'Dollar $ store');
28  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (27,'L.O.V.E., INC. ');
29  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (28,'J-MART LLC ');
30  END;
31  /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> CREATE OR REPLACE FUNCTION letters_func
  2    (p_string IN VARCHAR2)
  3    RETURN        VARCHAR2
  4  AS
  5    v_string     VARCHAR2(4000);
  6  BEGIN
  7    FOR i IN 1 .. LENGTH (p_string)
  8    LOOP
  9       IF REGEXP_LIKE (SUBSTR (p_string, i, 1), '[A-Z]', 'i')
10       THEN
11         v_string := v_string || SUBSTR (p_string, i, 1) || ',';
12       END IF;
13    END LOOP;
14    v_string := RTRIM (v_string, ',');
15    RETURN v_string;
16  END letters_func;
17  /
Function created.
SCOTT@orcl12c> BEGIN
  2    CTX_DDL.CREATE_PREFERENCE ('letters_datastore', 'MULTI_COLUMN_DATASTORE');
  3    CTX_DDL.SET_ATTRIBUTE
  4       ('letters_datastore',
  5        'COLUMNS',
  6        'letters_func (company_name) company_name');
  7    CTX_DDL.SET_ATTRIBUTE ('letters_datastore', 'DELIMITER', 'NEWLINE');
  8  END;
  9  /
PL/SQL procedure successfully completed.
SCOTT@orcl12c> CREATE INDEX letters_index ON company_near (company_name)
  2  INDEXTYPE IS CTXSYS.CONTEXT
  3  PARAMETERS
  4    ('DATASTORE  letters_datastore
  5       STOPLIST   CTXSYS.EMPTY_STOPLIST
  6       SYNC        (ON COMMIT)')
  7  /
Index created.
SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
  2  /
  COUNT(*)
        24
1 row selected.
SCOTT@orcl12c> VARIABLE search_string VARCHAR2(100)
SCOTT@orcl12c> EXEC :search_string := 'LSG'
PL/SQL procedure successfully completed.
SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
  2  FROM   company_near
  3  WHERE  CONTAINS
  4            (company_name,
  5             '<query>
  6            <textquery>
  7              <progression>
  8                <seq>'       || :search_string            || '</seq>
  9                <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
10                <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
11                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
12              </progression>
13            </textquery>
14             </query>',
15             1) > 0
16  ORDER  BY SCORE(1) DESC
17  /
  SCORE(1) COMPANY_ID COMPANY_NAME
        56          1 LSG SOLUTIONS LLC
        56         10 LSG COMPANY, LLC
        56         11 LSG STAFFING, LLC
        56         12 L & S GROUP LLC
        56         13 L S & G, INC.
        56         14 L.S.G. PROPERTIES, L.L.C.
        56         20 LSG Property Investments, L.L.C.
        56         15 LSGS PROPERTIES, LLC
        31         17 LHP SHERMAN/GRAYSON, LLC
         8         21 1224 S GALVESTON AVE, LLC
         4         22 1527 S GARY AVE, LLC
         4         23 FIFTEENTH STREET GRILL
12 rows selected.
SCOTT@orcl12c> EXEC :search_string := 'L'
PL/SQL procedure successfully completed.
SCOTT@orcl12c> /
  SCORE(1) COMPANY_ID COMPANY_NAME
        78          1 LSG SOLUTIONS LLC
        77          8 Properties@Oklahoma, LLC
        77          9 D.D.T  L.L.C.
        77         10 LSG COMPANY, LLC
        77         11 LSG STAFFING, LLC
        77         12 L & S GROUP LLC
        77         28 J-MART LLC
        77          2 LOVE'S TRAVEL
        77         26 Dollar $ store
        77         24 Massa Lobortis LLP
        77         23 FIFTEENTH STREET GRILL
        77         14 L.S.G. PROPERTIES, L.L.C.
        77         15 LSGS PROPERTIES, LLC
        77         16 LSQ INVESTORS, L.L.C
        77         17 LHP SHERMAN/GRAYSON, LLC
        77         20 LSG Property Investments, L.L.C.
        77         21 1224 S GALVESTON AVE, LLC
        77         22 1527 S GARY AVE, LLC
        76         19 Wal mart
        76         18 Walmart
        76         27 L.O.V.E., INC.
        76         13 L S & G, INC.
22 rows selected.
SCOTT@orcl12c> INSERT INTO company_near (company_id, company_name) VALUES (30, 'Laris Gordman llc.'  )
  2  /
1 row created.
SCOTT@orcl12c> COMMIT
  2  /
Commit complete.
SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
  2  /
  COUNT(*)
        35
1 row selected.
SCOTT@orcl12c> EXEC :search_string := 'Laris Gordman llc.'
PL/SQL procedure successfully completed.
SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
  2  FROM   company_near
  3  WHERE  CONTAINS
  4            (company_name,
  5             '<query>
  6            <textquery>
  7              <progression>
  8                <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
  9                <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
10                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
11              </progression>
12            </textquery>
13             </query>',
14             1) > 0
15  ORDER  BY SCORE(1) DESC
16  /
  SCORE(1) COMPANY_ID COMPANY_NAME
       100         30 Laris Gordman llc.
1 row selected.
SCOTT@orcl12c> EXEC CTX_DDL.OPTIMIZE_INDEX ('letters_index', 'FULL')
PL/SQL procedure successfully completed.
SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
  2  /
  COUNT(*)
        24
1 row selected.

Similar Messages

  • Help needed with oracle 11g installation

    Hi All,
    I need some help setting up oracle database with users, schemas and the like.
    I am new to oracle - using it due to a project requirement.
    Any advice, links etc would be great.
    Thanks in Advance

    Check out Oracle By Example tutorials here.
    http://www.oracle.com/technology/obe/11gr1_db/otn_all_db11gr1.html

  • Help needed with Oracle C++

    Hello,
    I am currently working on a replatforming project from HP UX to SUN Solaris 5.9. The Old HP Server has Oracle 8.0.5 while the Sun Server has Oracle version 9.2.0. In the source code which is in C++ I have :
    struct define_data
    ub1 buf [MAX_ITEM_BUFFER_SIZE];
    float flt_buf;
    sword int_buf;
    sb2 indp;
    ub2 col_retlen;
    ub2 col_retcode;
    static char scratch1[];
    struct define_data *Sql_Data;
    In the code, I am unable to copy the Sql_Data.buf to scratch1.
    i am trying to do the following:
    strcpy(scratch1, (char *) Sql_Data[i].buf);
    but no value is copied to scratch1 unlike on HP server where it gets copied.
    Is there any way to do it. Is it because of the data type ub1? Please help.
    Thanks

    In this example scratch1 is defined as a simple pointer (since the brackets are empty). If this is really how the code looks I'm surprised it works at all. If you don't allocate memory for scratch1 there's no telling what it's doing.
    You can always use strdup() instead and that should work. Just don't forget to free this memory when you are through with it.
    If it compiles the mismatched types are irrelevant.

  • Help needed with Oracle views

    Hello All,
    I have the following (simplified slightly as a example)
    CREATE VIEW TRACK30.GVITEMASSOCIATE002F AS
    SELECT
    VATTRIBUTEASSOCIATEZ0000.ATTRIBUTEID AS ATTRIBUTEID,
    ... lots more columns from vattributeassociate
    VISOTOPEZ0001.ISOTOPEID AS ISOTOPEID,
    ... lots more columns from visotope
    FROM
    VATTRIBUTEASSOCIATE VATTRIBUTEASSOCIATEZ0000, VISOTOPE VISOTOPEZ0001
    WHERE
    VATTRIBUTEASSOCIATEZ0000.A54E67=VISOTOPEZ0001.ISOTOPEID
    AND VATTRIBUTEASSOCIATEZ0000.ATTRIBUTEISID=47
    and
    CREATE VIEW TRACK30.GVITEM AS
    SELECT
    VITEMZ0000.ITEMID AS ITEMID,...
    GVITEMASSOCIATE002FZ0005.KEYID AS A553DB,...
    FROM
    VITEM VITEMZ0000, GVITEMASSOCIATE002F GVITEMASSOCIATE002FZ0005
    WHERE
    VITEMZ0000.ITEMID=GVITEMASSOCIATE002FZ0005.KEYID(+) AND
    (GVITEMASSOCIATE002FZ0005.ATTRIBUTEISID=47 OR GVITEMASSOCIATE002FZ0005.ATTRIBUTEISID IS NULL )
    and
    CREATE VIEW TRACK30.GVFINAL AS
    SELECT
    O.*,
    I,*,
    T,*,
    C.*
    FROM
    CONTENT O, GVITEM I, GVTRANSACTION T, GVCOLLECTION C
    WHERE
    O.COLLECTIONID=C.COLLECTIONID AND
    O.ITEMID=I.ITEMID AND
    O.TRANSACTIONID=T.TRANSACTIONID
    I'm getting back the numbers of rows I expect from each view and the data is correct at each stage EXCEPT within GVFINAL where the data from GVITEMASSOCIATE002F.VISOTOPE is missing. How could that be? The other data from GVITEMASSOCIATE002F.VATTRIBUTEASSOCIATE is present in GVFINAL. If I query the gvitem view then the data is present for visotope for a particular item but not when querying the gvfinal view?!?!?!?
    Anyone know why this is?
    Thanks in advance.
    Richard (Confused again)

    Hi, Thanks for the reply.
    The names are generated by some code so I don't really mind them being huge. ;-)
    I think you've skated over my point. So I'll try and explain a bit better and simplify it a bit more.
    within the content table the itemid column contains a list of all the items in their respective containers. Hence every item will be present and since I'm not filtering on containerid nothing would restrict this.
    within the gvitem view we have the data for all of the items therefore the counts within content and item grouped by itemid are identical.
    Therefore the join of gvitem to content should produce all of the data within gvitem and all of the data within content. (I've removed gvtransaction and gvcollection since they ain't pertinent to the problem).
    But, the data from within gvitemassociate which is joined to gvitem is missing from gvfinal. Yet the other information from within gvitem is present.
    Maybe an example will help...
    simplifying the views down to
    CREATE OR REPLACE VIEW GVITEM2 AS
    SELECT
    VITEMZ0000.ITEMID,
    GVITEMASSOCIATE0047Z0005.WHENAT AS A259197,
    GVITEMASSOCIATE0047Z0005.HALFLIFEAT
    FROM
    VITEM VITEMZ0000,
    GVITEMASSOCIATE0047 GVITEMASSOCIATE0047Z0005
    WHERE
    VITEMZ0000.ITEMID=GVITEMASSOCIATE0047Z0005.KEYID(+) AND
    (GVITEMASSOCIATE0047Z0005.ATTRIBUTEISID=47 OR GVITEMASSOCIATE0047Z0005.ATTRIBUTEISID IS NULL )
    CREATE OR REPLACE VIEW TRACK30.GVFINAL2 AS
    SELECT
    O.ITEMID,
    I.ITEMID AS GVITEMITEMID,
    I.A259197,
    I.HALFLIFEAT
    FROM
    CONTENT O, GVITEM2 I
    WHERE
    O.ITEMID=I.ITEMID
    Therefore itemid comes from content, gvitemitemid comes from vitem and the others come from gvitemassociate.
    and then doing...
    select * from gvitem2 where halflifeat between '18-APR-1910' and '18-APR-1920';
    gives
    ITEMID A259197 HALFLIFEA
    52806 03-JAN-06 18-APR-12
    52797 21-DEC-05 18-APR-12
    52798 21-DEC-05 18-APR-12
    52799 21-DEC-05 18-APR-12
    52800 21-DEC-05 18-APR-12
    51571 15-DEC-05 18-APR-12
    51572 15-DEC-05 18-APR-12
    51573 15-DEC-05 18-APR-12
    51575 15-DEC-05 18-APR-12
    51576 15-DEC-05 18-APR-12
    51577 15-DEC-05 18-APR-12
    11 rows selected.
    and then if I go
    select itemid,gvitemitemid,a259197,halflifeat from gvfinal2 where itemid in (52797,52798,52799,52800,52806)
    i get
    ITEMID GVITEMITEMID A259197 HALFLIFEA
    52797 52797
    52797 52797
    52800 52800
    52800 52800
    52798 52798
    52798 52798
    52806 52806
    52806 52806
    52799 52799
    52799 52799
    10 rows selected.
    So the A259197 and HalfLifeAt columns don't have data within them? yet they did a second ago??!?! e.g. itemid=52797
    interestingly if I query via halflifeat then I do get that information but that's no good to me since I need to filter by container in the program.
    e.g.
    select itemid,gvitemitemid,a259197,halflifeat from gvfinal2 where halflifeat between '18-APR-1910' and '18-APR-1920'
    ITEMID GVITEMITEMID A259197 HALFLIFEA
    51571 51571 15-DEC-05 18-APR-12
    51571 51571 15-DEC-05 18-APR-12
    51572 51572 15-DEC-05 18-APR-12
    51572 51572 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51573 51573 15-DEC-05 18-APR-12
    51575 51575 15-DEC-05 18-APR-12
    51576 51576 15-DEC-05 18-APR-12
    51577 51577 15-DEC-05 18-APR-12
    51577 51577 15-DEC-05 18-APR-12
    52797 52797 21-DEC-05 18-APR-12
    52797 52797 21-DEC-05 18-APR-12
    52798 52798 21-DEC-05 18-APR-12
    52798 52798 21-DEC-05 18-APR-12
    52799 52799 21-DEC-05 18-APR-12
    52799 52799 21-DEC-05 18-APR-12
    52800 52800 21-DEC-05 18-APR-12
    52800 52800 21-DEC-05 18-APR-12
    52806 52806 03-JAN-06 18-APR-12
    52806 52806 03-JAN-06 18-APR-12
    22 rows selected.
    It looks like Oracle's joining differently depending on how I filter (Which it obviously would) but is sometimes ignoreing joins when it shouldn't (IMO).
    Bizarre or what?
    I suspect I'm missing something obvious but for the life of me cannot see it!
    Heeeeelllllppppp.
    Thanks
    Richard

  • Help needed with Oracle Wallet Manager

    Hi , I have to call a Web Service that is made in PL/SQL from another PL/SQL package. The web service is an HTTPS server so I have to use Oracle Wallet Manager because those who made the web service uses it.
    Is there a PL/SQL guide or receipe to do that. Here's what I have done now and that does'nt return me the string I want!
    vURL := 'https://www2.frsq.gouv.qc.ca/frsqeforms/FRSQ_NIP_EXISTS?pNOM_NAISS=' || pNOM_NAISS || '&pPRENOM=' || pPRENOM || '&pNOM_MERE=' || pNOM_MERE || '&pSEXE=' || pSEXE || '&pDATE_NAISS_YYYY=' || pAn_naissance
    || '&pDATE_NAISS_MM=' || pMois_naissance || '&pDATE_NAISS_DD=' || pJour_naissance;
    vURL := utl_url.escape(vURL);
    UTL_HTTP.SET_WALLET('file:/export/home/oracle/Wallet','********');
    select UTL_HTTP.REQUEST(vURL) into resultat from dual;
    vNip := resultat;
    I should have something in th resultat variable. I'm I muissing some steps or I should work like that?
    I'm on Oracle 9.2.0.6 on solaris sun.
    The web service is supposed to return me a PIN number. I works when I do it on the devloppment environement because there is no https.
    I don't have any error message except that it returns me a html pages with a 404 in the string that I am supposed to receive a PIN number. I got the error in development but my variable had the value that I want! If I paste the URL in a browser it works very fine. You can try it with that (the development server)
    http://207.253.66.69/frsq_dev/FRSQ_NIP_EXISTS?pNOM_NAISS=Bouchard&pPRENOM=Diane&pNOM_MERE=Thibault&pSEXE=F&pDATE_NAISS_YYYY=1964&pDATE_NAISS_MM=04&pDATE_NAISS_DD=04
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    Not Found
    The requested URL /frsqeforms/FRSQ_NIP_EXISTS was not found on this server.
    <HR>
    <ADDRESS>Oracle-Application-Server-10g/1

    Duplicate post ... please ignore.

  • Help Needed with Type/Text/Font Formating in Aperture !!!

    Anyone know if it's possible to edit the leading and justification of type and text in Aperture... I have a page set up which looks great.... the automatic text template has a high level of type leading which look great.... but I have too much text content so it will not fit. I tried everything but couldn't find a way to reduce the leading.... so I deleted the template text box and inserted a new.... but this time the leading is auto and set solid.... plus the justification moved from being ranged left to centered.... I would like to have some additional line leading plus have my text ranged left if possible.
    Does anyone know how these elements can be edited and modified.
    Yours sincerely,
    Anthony
    Irish MacUser and MacAddict

    I had the same problem. The default seems to be text-centered, and I couldn't find tools to left justify.
    What I did to solve that was to simply copy some left justified text from a web page, and paste it into the text box. The justification seems to be a property of the text itself, not the text box. After you have the text pasted in you can replace it with your own copy. I don't know about leading. Try setting that in OpenOffice, and then copy/paste it into an Aperture text box!

  • Searching from beginning of a line/string with Oracle Text ...

    Oracle Database 10.2.0.3, Solaris
    Hi,
    what sounds very easy with the LIKE operator seems to be impossible with the Oracle Text Operator Contains ;
    Searching for 'Deutsche%' results with LIKE ->
    'Deutsche Bank'
    'Deutsche Post'
    'Deutsche Oracle Community'
    But with Contains-Operator which is token based the result is following ('$Deutsche%')
    'Deutsche Bank'
    'Armin Deutscher'
    We want to get results starting with 'Deutscher...' But with Contains and some configuration i did not find a way. Combining LIKE with Contains did not help too because Contains expands the word in more instances then LIKE.
    Indexed Columns are varchar2 typed
    any idea?
    kind regards
    Karl
    Message was edited by:
    kreitsch

    Have you evaluated the query rewrite template with CONTAINS?
    http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/csql.htm#sthref122

  • Problem with oracle text indexes during import

    We have a 9.2.0.6 database using oracle text features on a server with windows 2000 5.00.2195 SP4.
    We need to export its data ( user ARIANE only ) and then import the result into another 9.2.0.6 database.
    The import never comes to an end.
    The only way to make it work is to use the "indexes=n" clause.
    Then ( without the indexes ), we tried to create manually the oracle text indexes.
    We get this error :
    CREATE INDEX ARIANE.DOSTEXTE_DTTEXTE_CTXIDX ON ARIANE.DOSTEXTE (DTTEXTE)
    INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('lexer ariane_lexer stoplist ctxsys.default_stoplist storage ariane_storage');
    ORA-29855: erreur d'exécution de la routine ODCIINDEXCREATE
    ORA-20000: Erreur Oracle Text :
    DRG-10700: préférence inexistante : ariane_lexer
    ORA-06512: à "CTXSYS.DRUE", ligne 157
    ORA-06512: à "CTXSYS.TEXTINDEXMETHODS", ligne 219
    We then tried to uninstall Oracle text and install it ( My Oracle Support [ID 275689.1] ). The index creation above still fails.
    We also checked our Text installation and setup through My Oracle Support FAQ ( ID 153264.1 ) and everything seems ok.
    Do we have to create some ARIANE* lexer preferences through specific pl/sql ( ctx_report* ? ) before importing anything from the ARIANE user ?
    What do we need to do exactly when exporting data with oracle text features from one database to another given we used to restore the database through a copy of the entire windows files ?
    Is there a specific order to follow to succeed an import ?
    Thank you for your help.
    Jean-michel, Nemours, FRANCE

    Hi
    index preferences are not exported, ie ariane_lexer + ariane_storage, only the Text index metada, thus the DRG-10700 from index DDL on target/import DB.
    I recommend to use ctx_report.create_index_script on source/export DB, see Doc ID 189819.1 for details, export with indexes=N and then create text indexes manually after data import.
    -Edwin

  • Justification for using Oracle Text vs Other Search Tools

    Hello,
    Can someone give me good cause (justification) for utilizing Oracle Text over other tools out there that are not tied directly to Oracle?
    Apparently it is possible to identify metadata within text and do keyfield and keyword searches this way with other tools, but I question the accuracy, speed, or value in terms of data relationships with this approach. I feel the relationships belong in the database along with the indexes but can't convince anyone of this.
    Has anyone experience working with Oracle Text where relationships help to drive the search and can give me good cause to this approach?
    thanks

    Tools like Autonomy have fantastic searching functions, far in excess of what we get with Text. What they aren't very good at is the database side of things. So if your prime concern is to be able to search free text documents on your file system using a baroque range of filters then Text is not the right choice. But if you want to join the outcomes of free text searches with structured data in database tables or if the text you want to search is stored in database tables then using Oracle's built-in functionality is the better approach.
    From your post I'm not sure which scenario fits your situation more closely.
    Cheers, APC

  • How Create New Folder in KM with Name having Special Character

    Hi,
    How to create new Folder in KM with name having special character in it.
    Right now its not allowing me to create folder when i have Colon( as one of the character in name of the folder.
    Is there a way to change this validate?
    Any help is appriciated.
    Thanks

    Hi DK,
    I'm not sure about special chars such as ":" but ifyou need to have your folders displaying special language chars (like german chars), have a look into the below link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30deb229-d570-2910-4aaf-8858e0660f05
    Hope that helps.
    Ray

  • Help needed with this form in DW

    Hi, i have created this form in dreamweaver but ive got this problem.
    In the fields above the text field, the client needs to fill in some info such as name, email telephone number etc.
    But the problem is when ill get the messages. Only the text from the large text field is there.
    What did i do wrong??
    http://www.hureninparamaribo.nl/contact.html
    Thank you
    Anybody??

    Thank you for your response. So what do i have to do to fix this?
    Date: Sun, 20 Jan 2013 07:57:56 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help needed with this form in DW
        Re: Help needed with this form in DW
        created by Ken Binney in Dreamweaver General - View the full discussion
    You have several duplicate "name" attributes in these rows which also appears in the first row
    Telefoon:
    Huurperiode:
    Aantal personen:
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5008247#5008247
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5008247#5008247
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5008247#5008247. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Using psp with oracle text.

    we are design a simple document management application using psp with oracle text.
    we can query on index and finding the record and display the result on browser page.
    but we can't take document link on the same browser page. So we can't take document itself.
    We are using Oracle database release 1 text
    Thanks for your help.

    Sorry. The correct one is http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/text.920/a96517/acase.htm#620714

  • How to get exact match when working with Oracle Text?

    Hi,
    I'm running Oracle9i Database R2.
    I would like to know how do I get exact match when working with Oracle Text.
    DROP TABLE T_TEST_1;
    CREATE TABLE T_TEST_1 (text VARCHAR2(30));
    INSERT INTO T_TEST_1 VALUES('Management');
    INSERT INTO T_TEST_1 VALUES('Busines Management Practice');
    INSERT INTO T_TEST_1 VALUES('Human Resource Management');
    COMMIT;
    DROP INDEX T_TEST_1;
    CREATE INDEX T_TEST_1_IDX ON T_TEST_1(text) INDEXTYPE IS CTXSYS.CONTEXT;
    SELECT * FROM T_TEST_1 WHERE CONTAINS(text, 'Management')>0;
    The above query will return 3 rows. How do I make Oracle Text to return me only the first row - which is exact match because sometimes my users need to look for exact match term.
    Please advise.
    Regards,
    Jap.

    But I would like to utilize the Oracle Text index. Don't know your db version, but if you slightly redefine your index you can achieve this (at least on my 11g instance) :
    SQL> create table t_test_1 (text varchar2(30))
      2  /
    Table created.
    SQL> insert into t_test_1 values ('Management')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Busines Management Practice')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Human Resource Management')
      2  /
    1 row created.
    SQL>
    SQL> create index t_test_1_idx on t_test_1(text) indextype is ctxsys.context filter by text
      2  /
    Index created.
    SQL> set autotrace on explain
    SQL>
    SQL> select text, score (1)
      2    from t_test_1
      3   where contains (text, 'Management and sdata(text="Management")', 1) > 0
      4  /
    TEXT                             SCORE(1)
    Management                              3
    Execution Plan
    Plan hash value: 4163886076
    | Id  | Operation                   | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |              |     1 |    29 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_1     |     1 |    29 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | T_TEST_1_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("TEXT",'Management and
                  sdata(text="Management")',1)>0)
    Note
       - dynamic sampling used for this statementJust read that you indeed mentioned your db version in your first post.
    Not sure though if above method is already available in 9i ...
    Message was edited by:
    michaels

  • Help needed with a design!

    HELP! I need help with designing something!
    IMAGE on this link " http://i1072.photobucket.com/albums/w362/jjnilsson/DSC_0188.jpg "
    i need this patch on the picture to be "remade" in higher definition and the text should be MILF HUNTERS intstead of milf hunter... Anyone that might be able to help me out?
    reson for all this is that its gonna be made to a 30x40cm big patch fitting the back of our Team jackets!
    send me a pm or a mail ([email protected]) if you need any futher info or if you can help me out! I am really thankful for all the help i can get!
    With best regards J. Nilsson, Milf Hunters Mc

    I simply did as i got a tip on FB to do
    quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
    sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
    Date: Tue, 5 Jun 2012 13:41:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with a design!
        Re: Help needed with a design!
        created by in Illustrator - View the full discussion
    This really isn't the place to ask for free services.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Illustrator by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

Maybe you are looking for

  • How do I find it in the iCloud?

    I saved a text/edit in the iCloud on my iMac.. How do I now find and read that file on my iPad?

  • Not working luminosity variation

    Hi On my N97 mini the luminosity don't change at all while the ambiant light change.. Am I the only one to have this issue? And anyway the minimal light is way too much when you're in the darkness, reducing the minimal would maybe save battery. And i

  • Can you carry forward plan amounts on orders at year-end?

    We use KOCO to carryforward Internal Order Budgets and KOCF to carryforward Order Committments, but is there a way to move the PM Order Plan amounts from one fiscal year to the next? The issue we are having is that if the PM Order is linked to a WBS

  • Problem in executing a javascript link on a jsp page

    I am having a problem in executing a javascript function from a link. For example if i click some link let say Discover and behind the scene some applet method is supposed to be called, but it is not called? However the the function name comes in the

  • Refresh thumbnails in timeline just red frames: How?

    It seems to me that in the past I have done this by trashing the preferences in the home library, but long ago. Now there doesn't appear to be any such thing in the library. How can I fix this? (FCP 7, BTW)