Oracle text using for dynamic comparison of data splitters

Hello

I have two tables with similar columns. There is a free text field (e.g. address). Address fields contain 1 to 10 words in different order.
Address cut into 4 columns: Address1, Address2, address3, zip.

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

I want to be able to retrieve all related rows in both tables using the CONTAINS operator and/or search fuzzy. Any other solution is more then welcome.

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

TABLE oldaddress Data:

12385 OAK LN APT 9898 LAYTON, UT 84040

TABLE newaddress Data:

9898 12385 OAK LN LAYTON, UT 84040 APT
12385 OAK LN APT 9898 LAYTON, UT 84040
12385 OAK LINE LAYTON, UT 84040
9898 12385 OAK LN LAYTON UT APARTMENT
12385, OAK LINE LAYTON, UT 84040

Please, note that basically {color: #008000} * addresses * are the same{color}. My goal is to recover all of the new addresses by comparing the data to the oldaddress table.

My steps are:

-1.
create the table OLDADDRESS
(
ID NUMBER (20) not null,
ADDRESS1 VARCHAR2 (30),
ADDRESS2 VARCHAR2 (30),
ADDRESS3 VARCHAR2 (30),
POSTCODE VARCHAR2 (10),
ALL_COLS VARCHAR2 (1)
);

-2.
create the table NEWADDRESS
(
ID NUMBER (20) not null,
ADDRESS1 VARCHAR2 (30),
ADDRESS2 VARCHAR2 (30),
ADDRESS3 VARCHAR2 (30),
POSTCODE VARCHAR2 (10),
ALL_COLS VARCHAR2 (1)
);
-3. Insert data
Start
insert into OLDADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (' 11, ' OAK 12385 LN ","APT 9898', 'UT LAYTON', 84040');
insert into NEWADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (22, "APT 9898', ' OAK 12385 LN", 'LAYTON UT", 84040');
insert into NEWADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (' 33, ' OAK 12385 LN ","APT 9898', 'UT LAYTON', 84040');
insert into NEWADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (' 44, ' 12385, OAK LN ","APARTMENT 9898', 'UT LAYTON', 84040');
insert into NEWADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (55, ' 12385 OAK LINE","APT 9898', 'UT LAYTON', 84040');
insert into NEWADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (' 12385 OAK LN, 66; "," APT 9898', "LAYTON UT»(, 84040');
insert into NEWADDRESS (ID, Address1, Address2, ADDRESS3, ZIPCODE) values (77, 'APARTMENT 9898' 12385.', OAK LN', 'LAYTON UT', '84040');
commit;
end;

-4. Created a section of land:
BEGIN
CTX_DDL. CREATE_PREFERENCE ("my_datastore", "MULTI_COLUMN_DATASTORE");
CTX_DDL. SET_ATTRIBUTE
("my_datastore",
"COLUMNS",
"ADDRESS1, ADDRESS2, ADDRESS3');
CTX_DDL. CREATE_SECTION_GROUP ('MYGRP', 'BASIC_SECTION_GROUP');
CTX_DDL. ADD_FIELD_SECTION ('MYGRP', 'FIELD1', 'ADDRESS1', TRUE);
CTX_DDL. ADD_FIELD_SECTION ('MYGRP', 'FIELD2', "ADDRESS2", TRUE);
CTX_DDL. ADD_FIELD_SECTION ('MYGRP', 'FIELD3', 'ADDRESS3', TRUE);
END;
/

-- 5. CREATING INDEXES
CREATE INDEX my_idx WE newaddress (all_cols)
INDEXTYPE IS CTXSYS. FRAMEWORK
PARAMETERS
("My_datastore of the DATA store
GROUP of SECTIONS mygrp');

-6. Select all the fields:

SQL & gt; Select Address1 address2, address3, postal code
2 of newaddress
3 where CONTAINS (all_cols, (12385 & Oak & 9898'), 1) & gt; 0;

ADDRESS1 ADDRESS2 ADDRESS3 ZIP
-----
9898 12385 OAK LN LAYTON, UT 84040 APT
12385 OAK LN APT 9898 LAYTON, UT 84040
12385, OAK LN APARTMENT 9898 LAYTON, UT 84040
12385 OAK LINE APT 9898 LAYTON, UT 84040
12385 OAK LN. 9898 APT LAYTON, UT 84040
9898 12385 APARTMENT. LAYTON, UT 84040 OAK LN

6 selected lines.

-7. * Here, I am not able to find a way to make massively for several lines? How to use the operator CONTAINS external data instead of text (12385 & Oak & 9898')?
Should I use ref cursor / bulk collection? Maybe the REGULAR EXPRESSIONS must be useful (and how)? *

Select Address1 address2, address3, postal code
of newaddress
where CONTAINS (all_cols, (' Param 1 & 2 Param & Param 3... &...)) Param no), 1) > 0;

Param 1 & Param 2 & Param 3... &... Param n refer to ' select address1. » '|| address2 | "| Address3 oldaddress'.

I use oracle 10g.

Thank you for coming ;)


Kind regards

Julia

I don't know what kind of output desired, perhaps something like the following.

SCOTT@orcl_11g> COLUMN old_ad1 FORMAT A15
SCOTT@orcl_11g> COLUMN old_ad2 FORMAT A15
SCOTT@orcl_11g> COLUMN old_ad3 FORMAT A15
SCOTT@orcl_11g> COLUMN new_ad1 FORMAT A15 newline
SCOTT@orcl_11g> COLUMN new_ad2 FORMAT A15
SCOTT@orcl_11g> COLUMN new_ad3 FORMAT A15
SCOTT@orcl_11g> select o.address1 old_ad1, o.address2 old_ad2, o.address3 old_ad3, o.zipcode old_zip,
  2           n.address1 new_ad1, n.address2 new_ad2, n.address3 new_ad3, n.zipcode new_zip,
  3           SCORE (1)
  4  from   newaddress n, oldaddress o
  5  where  CONTAINS
  6             (n.all_cols,
  7              o.address1 || ' ACCUM ' || o.address2 || ' ACCUM ' || o.address3 || ' ACCUM ' || o.zipcode,
  8              1) > 0
  9  ORDER  BY SCORE (1) DESC
 10  /

OLD_AD1         OLD_AD2         OLD_AD3         OLD_ZIP
--------------- --------------- --------------- ----------
NEW_AD1         NEW_AD2         NEW_AD3         NEW_ZIP      SCORE(1)
--------------- --------------- --------------- ---------- ----------
12385 OAK LN    APT 9898        LAYTON UT       84040
12385 OAK LN.   APT 9898        LAYTON UT       84040              51

12385 OAK LN    APT 9898        LAYTON UT       84040
12385 OAK LN    APT 9898        LAYTON UT       84040              51

12385 OAK LN    APT 9898        LAYTON UT       84040
APT 9898        12385 OAK LN    LAYTON UT       84040              51

12385 OAK LN    APT 9898        LAYTON UT       84040
12385 OAK LINE  APT 9898        LAYTON UT       84040              26

12385 OAK LN    APT 9898        LAYTON UT       84040
APARTMENT 9898  12385 .OAK LN   LAYTON UT       84040              26

12385 OAK LN    APT 9898        LAYTON UT       84040
12385 ,OAK LN   APARTMENT 9898  LAYTON UT       84040              26

6 rows selected.

Tags: Database

Similar Questions

  • I need a free software to use for all my students data registration

    I need a free software to use for recording of all data from my students to my computer

    sage180

    If you mean the personal info, then http://www.libreoffice.org/

  • What Oracle network uses for CAR traffic? where you get the Info?

    Hello

    I use two-node RAC on Oracle 10 g R2 (10.2.0.3.0) version on SUN Solaris 10. I want to know "what Oracle network uses for CAR traffic? where you'll Info»

    -Kumar

    Hi Kumar,

    In 10g, you can query x$ ksxpia. If the cluster_interconnect is stored in the OCR (by default), you will get

    SQL > select INST_ID select, PUB_KSXPIA, PICKED_KSXPIA, NAME_KSXPIA, IP_KSXPIA, x$ ksxpia;

    If you have specified the cluster_interconnects parameter in your init.ora:

    Columns to look in: INST_ID select PICK NAME_KSXPIA IP_KSXPIA P

    And also you can use 'CPI oradebug' to see who connects the database uses:

    SQL > setmypid oradebug
    SQL > oradebug CPI

    It could be that useful...

    Thank you
    LaserSoft

  • Oracle cards: legend for dynamically generated styles

    Hi all

    I use the dynamically generated styles in my application of the Oracle cards. Depending on the situation, the style may be a variable marker or a color scheme. Now, I need to create a map legend, but I'm having a problem.

    A model of color scheme is defined and applied as:
    xmlDef = '<AdvancedStyle><ColorSchemeStyle basecolor="blue" strokecolor="black">' +
                            '<Buckets>' +
                                '<RangedBucket label="" high="' + value + '"/>' +
                                '<RangedBucket label="" low="' + value + '" high="' + value*2 + '"/>' +
                                '<RangedBucket label="" low="' + value*2 + '" high="' + value*3 + '"/>' +
                                '<RangedBucket label="" low="' + value*3 + '" high="' + value*4 + '"/>' +
                                '<RangedBucket label="" low="' + value*4 + '" high="' + value*5 + '"/>' +
                                '<RangedBucket label="" low="' + value*5 + '" high="' + value*6 + '"/>' +
                                '<RangedBucket label="" low="' + value*6 + '"/>' +
                            '</Buckets></ColorSchemeStyle></AdvancedStyle>';
                            
          style = new MVXMLStyle("COLOR", xmlDef);
    I can apply and see the results without any problem, however when I try to create a legend, like this:
    var html = "<table><tr><td><img src="+baseURL+"/omserver?sty=COLOR&w=180&h=175&ds=solap></td></tr></table>";
        
        legend = new MVMapDecoration(html,null,0.04,200,110);
        mapview.addMapDecoration(legend);
    I get an error of this style is not found 'COLOR ':
    May 25, 2009 7:35:17 AM oracle.sdovis.style.AllStyleTable getStyleObject
    WARNING: Cannot find style named COLOR of SYSTEM in all_sdo_styles
    May 25, 2009 7:35:17 AM oracle.lbs.mapserver.oms reportException
    SEVERE: Message:style not found
    It's strange because the style is there and successfully applied to the card, I just can't generate a legend. Any ideas please?

    Thanks in advance,
    ~ Ruben

    You can build an application of xml and use it in the url of the image. Make sure that you remove all redundant new lines and spaces in the query and call encodeURIComponent to encode it. Here is an example.

    var xmlreq = encodeURIComponent (" '");

    var html ="

    ";

    Caption = new MVMapDecoration(html,null,0.04,200,110);
    mapview.addMapDecoration (legend);

  • No matter what a description on how to use the editor of text used for this Forum?

    I am very frustrated trying to use the text editing functions (without the use of HTML code, I don't have them) that can be used to create messages in this Forum.

    Can someone point me to a good description of the text editor used to enter/edit the messages in this Forum? Thank you very much in advance.

    You may be more likely to get a response if you asked it question in the comments of the http://forums.adobe.com/community/general/forum_comments Forum

  • Need help with the search for special characters in oracle text

    Hi all

    Oracle 11g sql developer 4.0 help

    I am facing this challenge where Oracle text when it comes to searching for text that contains a special character.

    What I've done so far with the help of http://www.orafaq.com/forum/t/162229/

    "CREATE TABLE"SOS" COMPANY ".

    (SELECT "COMPANY_ID" NUMBER (10,0) NOT NULL,)

    VARCHAR2 (50 BYTE) "COMPANY."

    VARCHAR2 (50 BYTE) "ADDRESS1"

    VARCHAR2 (10 BYTE) "ADDRESS2"

    VARCHAR2 (40 BYTE) 'CITY ',.

    VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) "ZIP".

    ) CREATION OF IMMEDIATE SEGMENT

    PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 NOCOMPRESS SLAUGHTER

    STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    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 jump. , @ - ' symbols

    END;

    /

    CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    INDEXTYPE IS CTXSYS. CONTEXT IN 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 2 rows back but must return 3

    It helps if you post a copy and paste of effective enforcement of the full code, including the results.  You posted an index of context with the query with catsearch, which requires a ctxcat index.  You must be a context clue that you did not post and did not add your lexer to.  The following table shows it returns all the lines of 3 as planned using either a with catsearch ctxcat index or a context index with contains, as long that you include the lexer in your create index.  You must also be sure that the index is created, or synchronized after inserting or updating data.

    Scott@ORCL >-version:

    Scott@ORCL > SELECT banner version of v$.

    BANNER

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

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    5 selected lines.

    Scott@ORCL >-table and the test data:

    Scott@ORCL > CREATE TABLE 'SOCIETY '.

    2 ("COMPANY_ID" NUMBER (10,0) NULL NOT ACTIVATE,)

    3 'COMPANY_NAME' VARCHAR2 (50 BYTE),

    VARCHAR2 (50 BYTE) 4 "ADDRESS1"

    5 "ADDRESS2" VARCHAR2 (10 BYTE),

    VARCHAR2 (40 BYTE) 6 'CITY',

    7 VARCHAR2 (20 BYTE) 'STATE ', HE SAID.

    NUMBER (5.0) 8 'ZIP '.

    (9) THE CREATION OF IMMEDIATE SEGMENT

    PCTFREE 10 10 PCTUSED 40 INITRANS, MAXTRANS NOCOMPRESS SLAUGHTER 1 255

    11 STORAGE (INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645)

    12 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS USER_TABLES DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT 1)

    TABLESPACE 13 "USERS."

    Table created.

    Scott@ORCL > START

    2 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (1, 'LSG SOLUTIONS LLC', null, null, null, null, null);

    3 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (2,' LOVE "S TRAVEL', null, null, null, null, null);

    4 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (3, 'DEVON ENERGY', null, null, null, null, null);

    5 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (4, 'SONIC INC', null, null, null, null, null);

    6 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (5, "MSCI", null, null, null, null, null);

    7 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (6, 'ERNEST AND YOUNG', null, null, null, null, null);

    8 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (7, "JOHN DEER", null, null, null, null, null);

    9 insert in SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (8,'Properties@Oklahoma, LLC', null, null, null, null, null);

    10 insert into SOCIETY (COMPANY_ID, COMPANY_NAME, Address1, Address2, CITY, STATE, ZIP) values (9, 'D.D.T L.L.C.', null, null, null, null, null);

    11 END;

    12.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-lexer:

    Scott@ORCL > START

    CTX_DDL 2. CREATE_PREFERENCE ("your_lexer", "BASIC_LEXER");

    CTX_DDL 3. SET_ATTRIBUTE ("your_lexer", "' SKIPJOINS,"., @-"'); -to jump. , @ - ' symbols

    4 END;

    5.

    PL/SQL procedure successfully completed.

    Scott@ORCL >-ctxcat index and using catsearch queries:

    Scott@ORCL > CREATE INDEX my_index2 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CTXCAT PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4. WHERE the CATSEARCH (company.COMPANY_NAME, 'LLC', ") > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

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

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

    Scott@ORCL >-context and using the query index contains:

    Scott@ORCL > CREATE INDEX my_index3 ON COMPANY (COMPANY_NAME)

    2 INDEXTYPE IS CTXSYS. CONTEXT IN PARALLEL

    3 PARAMETERS ("LEXER your_lexer");

    The index is created.

    Scott@ORCL > SELECT

    2 company_name

    3 the COMPANY

    4 WHERE CONTAINS (company.COMPANY_NAME, 'LLC') > 0

    5 ORDER BY company.COMPANY_ID;

    COMPANY_NAME

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

    LSG SOLUTIONS LLC

    Properties@Oklahoma, LLC

    D.D.T L.L.C.

    3 selected lines.

  • Automatically change the size and have a fluid for dynamic text boxes

    I am seized of text from a thread xmle in the dynamic text boxes. I have boxes of static text that titles each.

    I need help to make the dynamic text boxes if the xml text is larger & move the static text boxes, so that they don't start writing more.

    The code that I used to make the text in the dynamic areas is very simple:

    var xmlData:XML = new XML ();
    var theURL_ur:URLRequest = new URLRequest ("xml.xml");
    var loader_ul:URLLoader = new URLLoader (theURL_ur);
    loader_ul.addEventListener ("complete", fileLoaded);

    function fileLoaded(e:Event):void
    {
    xmlData = XML (loader_ul.data);

    Dummy_txt. Text = xmlData.record1.Dummy;
    Dummy_txt2. Text = xmlData.record1.Dummy2;
    }

    For example

      forum pic.JPG

    You must set your dynamic text boxes autoSize property, while they will increase if necessary:

    myTextField.autoSize = TextFieldAutoSize.LEFT;

    Then, you can use the textHeight field property to get the height of the text in pixels and move the other fields accordingly:

    staticTitle2.y = dynamicText1.y + dynamicText1.textHeight + 10;

  • rules of the clues in the text and oracle query using matches

    Dear all,

    I would like to ask questions about the function of rules and matches the oracle text.
    I followed a lead in the oracle text application developer guide.
    I have a table of rules like this:

    1 oracle
    2 larry or ellison
    3 oracle and text
    market share 4

    Then I create an index in this table. This is necessary for the matches function call. Here's the syntax:

    create index queryx on queries (query_string)
    indexType is ctxsys.ctxrule;

    Then, I noticed that the result on DR$ QUERYX$ I table as follows:

    0 2 2 1 LARRY (BLOB)
    MARKET 0 4 4 1 (BLOB) {MARKET} {ACTION}
    0 1 1 1 ORACLE (BLOB)
    0 3 3 1 ORACLE (BLOB) {TEXT}
    0 2 2 1 ELLISON (BLOB)

    What I want to ask is why do the words 'share' and 'text' appear in the DR table $ QUERYX$?

    When we use the function of the matches, it can search on the result of the index and therefore he walls can't find the word 'action '. Thus, when for example I ask like this:

    Select query_id queries where matches (query_string, "it only to share ten percent of all products sold") > 0

    It will give 0 results since no words in "it only to share ten percent of all products sold ' was in the index table. But in fact it could possibly be classified as category 4 rules which is "market share".

    I tried this in a large data set and get the same result.
    Here are my rules generated from my collection of document:

    1 {REQUIREMENTS of} & {ELICITATION}
    1 {REQUIREMENTS of} ~ {ELICITATION} & {ACTOR}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} & {FURPS}
    1 {REQUIREMENTS OF} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE} & {PROC}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE} ~ {PROC} & {SPEED}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE} ~ {PROC} ~ {SPEED} & {PDF}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE} ~ {PROC} ~ {SPEED} ~ {PDF} & {SET}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE} ~ {PROC} ~ {SPEED} ~ {PDF} ~ {SET} & {UNNECESSARY}
    1 {REQUIREMENTS of} ~ {ELICITATION} ~ {ACTOR} ~ {FURPS} ~ {OUTLINE} ~ {PROC} ~ {SPEED} ~ {PDF} ~ {SET} ~ {UNNECESSARY} & {MISUSE}
    1 {INTERPRETATION} ~ {REQUIREMENTS}
    2 {DESIGN of} & {PERFORMANCE}
    2 {DESIGN of} ~ {REPRESENTATION} & {MAY} & {FOUNDATIO} & {OCTOBER}
    2 {DESIGN of} ~ {REPRESENTATION} & {MAY} & {FOUNDATIO} ~ {OCTOBER} & {PROCEDURAL}
    2 {DESIGN of} ~ {REPRESENTATION} & {MAY} & {FOUNDATIO} ~ {OCTOBER} ~ {PROCEDURAL} & {STRICT}
    2 {DESIGN of} ~ {REPRESENTATION} & {MAY} & {FOUNDATIO} ~ {OCTOBER} ~ {PROCEDURAL} ~ {STRICT} & {ENTER}
    2 {DESIGN of} ~ {REPRESENTATION} & {MAY} & {FOUNDATIO} ~ {OCTOBER} ~ {PROCEDURAL} ~ {STRICT} ~ {ENTER} & {NUMBER} & {LAYER}
    2 {DESIGN OF} ~ {REPRESENTATION} ~ {CAN}
    3 {PM} & {TEST} & {ATTRIBUTION}

    And this is the result of table with a ctxrule index:

    (only the column token_text shown)
    PM
    DESIGN
    DESIGN
    DESIGN
    DESIGN
    DESIGN
    DESIGN
    DESIGN
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    REQUIREMENTS
    INTERPRETATION

    so when I try to file a document with the word in there way, it should produce category 1 (based on rules), but since there is no word 'plan' in the tabel index, matches will return 0 means that the document is classifiedto not any category. I don't understand why this is happening. Everyone knows about it? I'd appreciate any help.
    Thank you very much.

    Share market means that the market immediately followed word on the part of the word, so if you don't have the word share then is not a match. If she had walked or hand, then he would be looking for just one part.

  • All parameter memory index for Oracle text indexes

    Hi Experts,

    I'm on Oracle 11.2.0.3 on Linux and have implemented Oracle Text. I'm not an expert in this area and need help on a question. I created the Oracle text index with the default setting. However, in a white paper of oracle, I read that the default setting is perhaps not good. Excerpt from the white paper by Roger Ford:

    URL:http://www.oracle.com/technetwork/database/enterprise-edition/index-maintenance-089308.html

    "(Part of this white paper below. )" ...)

    Index memory as mentioned above, $I entries cached emptied out on the disk each time the indexing memory is exhausted. The default index to installing memory is a simple 12MB, which is very low. At the time of creating indexes, users can specify up to 50 MB, but it is still quite low.                                   

    This would be by a CREATE INDEX, something like statement:

     CREATE INDEX myindex ON mytable(mycol) INDEXTYPE IS ctxsys.context PARAMETERS ('index memory 50M');  

    Allow index of the parameters of memory beyond 50 MB, the CTXSYS user must first of all increase the value of the MAX_INDEX_MEMORY parameter, like this:

     begin ctx_adm.set_parameter('max_index_memory', '500M'); end;  

    The parameter memory must never be high point causes paging, because this will have a serious effect on indexing speed. The smallest of dedicated systems, it is sometimes advantageous to temporarily reduce the amount of memory consumed by the Oracle SGA (for example by reducing DB_CACHE_SIZE and/or SHARED_POOL_SIZE) during the index creation process. Once the index has been created, the size of the SGA can be increased again to improve query performance. & quot;

    (End of the excerpt from the white paper)


    My question is:

    (1) to apply this procedure (ctx_adm.set_parameter) obliged me to log on as user CTXSYS. Is this fair? or can it be avoided and will be based on the application schema? The CTXSYS user is locked by default and I had to unlock it. Is this OK to do it in production?

    (2) what value I should use for the max_index_memory there are 500 MB - my SGA is 2 GB in Dev / QA and / 3 GB in the production. Also in the creation of the index which is the value should I set for the parameter memory index - I had left to default, but how do I change now? Should it be 50 MB as shown in the example above?

    (3) the white paper also refer to the reconstruction of an index to an interval like once a month: ALTER INDEX DR$ index_name$ X REBUILD online;

    -Is this good advice? I would like to ask the experts once before doing this.  We are on Oracle 11 g and the white paper was drafted in 2003.

    Basically, while I read the book, I'm still not clear on many aspects and need help to understand this.

    Thank you

    OrauserN

    Index entries are built in memory, and then flushed to disk, memory is exhausted. With a setting of high index memory will mean the index entries can be longer and less fragmented, which provides better performance of the query.  Conversely, a small memory parameter index will mean emptied the disk pieces are smaller, so queries (especially on common words) will have to do a lot more e/s to extract several pieces of index for the words.

  • need to comparison of date for the duration of the connection.

    Hello gurus,
    I have a table which qualifies whenever a connection/disconnection occurs in a system. However, the data are not the same line, there is a connection as a line entry and a disconnection as a line input.
    The table is simply: log_hist (user name, position, login, logout, upd_date).
    Login, logout and upd_date are types of data with a format as date (1 January 13 0200').
    I need to qualify when a user connects to the system (opening date of session) and then calculates when they disconnected (disconnect date) assuming that the time of minimum latency between a line for the date of connection and a line for date of disconnection.

    LAG can be used to do this?

    Hello

    An the Heres how:

    SELECT       userid
    ,       LAST_VALUE (login IGNORE NULLS)
               OVER ( PARTITION BY  userid
                         ORDER BY          NVL (login, logout)
                 ) AS prev_login
    ,       logout
    FROM       log_hist
    ORDER BY  userid
    ,            NVL (login, logout)
    ;
    

    From the Oracle 11.2, LAG can be used for this instead of LAST_VALUE.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

    Published by: Frank Kulash, January 23, 2013 16:25

  • Download data from text file for Hyperion ESSBASE by FDM.

    Hello

    I want to upload data from text file for Hyperion ESSBASE by FDM. The file format is given below.


    Entity, Department, designation, effective, SalaryPaid
    E11001, BSG, AsstManager, 12, 820000
    E11001, BSG, Manager, 6, 740000


    Where staff and SalaryPaid is the Member of the account dimension. Entity, Department, and designations are the dimensiosn in the ESSBASE.

    Is it possible to download the file above using FDM, can we have two account member in the line?

    I am brand new with FDM. ask for your help.

    Kind regards
    Sunil

    Create two scripts to import (choose Import Data Pump when you are prompted for the type of import script)

    (1) call the GetAccounts 1st and 2nd PutAccounts
    (2) associate GetAccounts size amount in your import format.
    (3) associate PutAccounts with the account dimension in your import format
    (4) adding NZP expression to dimension of amount
    (5) in GetAccounts put the following code...
    +' Get the names of account in the header line.
    If DW. Utilities.fParseString (strRecord, 5, 4, ",") = "number of head" Then
    + ' Local variables for the account names.
    + Acct1 dim +.
    + Acct2 dim +.
    +     +
    + ' Head Count (column 4 of 5) +.
    + Acct1 = DW. Utilities.fParseString (strRecord, 4, 5, ",") +.
    + ' Wages (column 5 of 5) +.
    + Acct2 = DW. Utilities.fParseString(strRecord, 5, 5, ",") +.
    +     +
    End If

    GetAccounts strField =

    (6) in PutAccounts put the following code...

    +'+ Local Variables
    Dim AcctName (2)
    Dim AmountVal (2)
    Dim z
    Dim rsAppend

    + "The names of individual account is analyzed and stored +"
    AcctName (1) = DW. Utilities.fParseString (RES. PvarTemp1, 2, 1, ',')
    AcctName (2) = DW. Utilities.fParseString (RES. PvarTemp1, 2, 2, ',')

    +' If student for accounts from here import file.
    AmountVal (1) = DW. Utilities.fParseString (strRecord, 5, 4, ",")
    AmountVal (2) = DW. Utilities.fParseString (strRecord, 5, 5, ",")

    +' Name of temporary importation work table +.
    strWorkTableName = RES. PstrWorkTable

    +' Create temporary table recordset trial balance +.
    Set rsAppend = DW. DataAccess.farsTable (strWorkTableName)

    For z = 01:58 ' this can change depending on the number of additional accounts processing

    + If IsNumeric (AmountVal (z)) Then +.
    +          +
    + If (z) AmountVal <> 0 Then +.
    +          +
    + ' Create a new record and to provide its field values.
    + rsAppend.AddNew +
    + rsAppend.Fields ("DataView") = "CDA" +.
    + rsAppend.Fields ("PartitionKey") = RES. PlngLocKey +.
    + rsAppend.Fields ("CatKey") = RES. PlngCatKey +.
    + rsAppend.Fields ("PeriodKey") = RES. PdtePerKey +.
    + rsAppend.Fields ("CalcAcctType") = 9 +.
    + rsAppend.Fields ("Account") = AcctName (z) +.
    + rsAppend.Fields ("Amount") = AmountVal (z) +.
    + rsAppend.Fields ("Entity") = 'chain of the entity here ' +.
    + rsAppend.Fields ("UD1") = "string C1 here +.
    + rsAppend.Fields ("node2") = "String C2 here +.
    + rsAppend.Fields ("UD3") = "String C3 here +.
    + rsAppend.Fields ("UD4") = "string C4 here +.
    + "Add folder to the collection +"
    + rsAppend.Update +
    +               +
    + End if +.
    +     +
    + End if +.

    Next

    +' Close the recordset.
    rsAppend.close

    If DW. Utilities.fParseString (strRecord, 5, 4, ',') <> '0' then
    + PutAccounts = DW. Utilities.fParseString (RES. PvarTemp1, 2, 1, ',') +.
    On the other
    + RES. PblnSkip = True.
    End If

    You may need to change the aboveto that meet your exact needs, but the basic structure of the scripts should not change too

    Published by: SH on May 25, 2012 10:34

  • It is advisable to use HTMLDB_COLLECTION for large volume of data pump?

    Hello

    It is advisable to use HTMLDB_COLLECTION for large volume of data pump?
    I need to store records of morethan 1,00,000 on the fly to display in the report.

    Concerning
    Mohan

    Hello

    When you change internal APEX your database object is not supported?
    This means that you can not contact Oracle support.

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • Export data to Oracle DB using ODI Essbase

    I am trying to export data to Oracle DB using ODI essbase. When I create the schema with data source and target warehouses, my goal has error indicating that the target column has no capabilities of sql. I don't know what that means. Can anyone enlighten us? Thank you.

    This means that you have not defined a resting area for your columns on the target data store, as you use essbase in your interface, you need a rest area, essbase as a technology has no SQL features.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • using for each group to combine the 2 data lines

    My xml file has the following in it:

    -< AC_DEDUCTIONS >
    voluntary deductions < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 3475 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 498500 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 5750 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 26.22 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 26.22 < / YTD_AMOUNT >
    < REPORTING_NAME > Opt life Emp < / REPORTING_NAME >
    < ATTRIBUTE_NAME / >
    < RATE_MUL / >
    < DISPLAY_NAME > Opt life Emp < / DISPLAY_NAME >
    < / AC_DEDUCTIONS >
    -< AC_DEDUCTIONS >
    voluntary deductions < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 1181 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 3511 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 5750 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 474.95 < / YTD_AMOUNT >
    < REPORTING_NAME > Opt life Emp < / REPORTING_NAME >
    < ATTRIBUTE_NAME / >
    < RATE_MUL / >
    < DISPLAY_NAME > Opt life Emp < / DISPLAY_NAME >
    < / AC_DEDUCTIONS >

    Rather than having my exit needle 2 rows of data:

    current name amount CDA amount

    Opt life Emp 26.22 26.22
    Opt life Emp 0 474.95


    I'd like to see 1 row with the total amount:

    Opt life Emp 26.22 501.17


    How can I use for each group - in my rtf to achieve? Any help is greatly appreciated.

    Thank you.

    Susie

    I know what model you have copied :), I was there, when they created that

    It's yours:

    1 text form field-<><=19]?>
    2 text form field-
    3 text form field-
    4 text form field-
    5 text form field-

    change to:

    Text Form Field 1 -  
    Text Form Field 2 - 
    Text Form Field 3 - 
    Text Form Field 4 -  
    Text Form Field 5 - 
    
  • How can I use FNDLOAD for XML reports and data defnitions

    I program simultaneous registerd bound reports xml and data defnitions in instance of staging and managed to switch to DEV... After updating of this stage and when I download the details of DEV and transferred to the program only simultaneous scene I can download... Can we use the command FNDLOAD for definitions of data or the data model for the XML report, FNDLOAD used for the simultaneous program, he transferred only the details of the program at the same time.

    Hello

    Use XDOLoader.

    Note: 469585.1 - how to use XDOLoader?
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=469585.1

    Kind regards
    Hussein

Maybe you are looking for

  • Laptop HP Pavilion 15 t-n200

    I use windows 8.1 Professional 64 bit on HP Pavilion 15 t-n200 Notebook PC and I am not able to find the drivers for the device PCI following on the HP website. Can anyone know where to find the drivers for it? PCI\VEN_10EC & DEV_5227 & SUBSYS_216310

  • Update file is invalid for this architecture?

    Earlier this year, I bought a ReadyNAS NV + (silver body, 4 bays with 2 TB, plan 5.0).It is currently running RAIDiator version 4.1.9 build 1.00a043 (Orange and blue FrontView web interface). Today, I bought the following. Python2.7_2.7.3 - rnsparc -

  • Volume jump

    I have a compact z5 and since the last update if I listen to anything with a headphone volume will jump directly to max every minute or two. I turn again to the bottom and continues just to themselves. Played anything impossible. Any advice?

  • I want to uninstall a program/software of my laptop, but it won't, it gives an error [-5005: 0 x 80070002].

    Original title: uninstallation problem I want to uninstall a program/software of my laptop, but it won't, it gives an error [-5005: 0 x 80070002] it indicates that this error occurred when running the installation program. What can I do to uninstall

  • My bb 9380 blackBerry smartphones does not "just bought it.

    I bought a blackberry curve 9380 Frankfurt and the i came to Egypt and I tried to open it, I opened would'nt, I tried to charge it and I tried to connect it to my pc, the glowing kept led then it turns off then a battery reappears with lightning insi