Form of: separation by comma cfg file access

I need a script to idoc that read these values:

WorkflowsPattern = workflow_one, workflow_two


For single value, I used <$ # about WorkflowsPattern$ > and it works very well, what script to use for the values separated by commas.


Thank you

rsMakeFromString: creates a column of a result set of a string.

Parameters:

Takes two required parameters and an optional parameter:

The first parameter is the name of the ResultSet object to create.

The second parameter is a list separated by commas of chains to analyze (for example a, b, c and d), or a variable that has a string separated by commas as its value.

The third optional parameter is the name of the column in the result set. If no value is specified, the name of default column to row.

Output: Creates a result set with a single column, populated by values from the specified string.

http://docs.Oracle.com/CD/E14571_01/doc.1111/e10726/c08_config_ref255.htm#i1111695

Jonathan
http://jonathanhult.com

Tags: Fusion Middleware

Similar Questions

  • Cannot run Aerotow, message error "access denied, needs access to the FSX.cfg file in My Documents and Settings folder'.

    Original title: I need assistance with My Documents and Settings folder

    I have Windows XP, Norton Internet security.

    OK, so I have FSX. I'm having a little program called "Aerotow. To run, you must Access the FSX.cfg file in My Documents and Settings folder.
    But access to this file is denied.
    The most funny thing is - I can access the folder without problem. Open it and sail away. But my system seems to have blocked Aerotow.exe and configure.exe to access this folder. It's VERY frustrating. How can I access this folder? Why the program is blocked?
    Thank you.

    Hello

    I suggest you to contact the developer of the application for assistance.

  • Display data in the form of values separated by commas - need help

    Hi all

    I have some data formatted in the way below. The ID of the drug are the primary keys of the table and the first 9 digits in the drug ID are the same. They can be separated based on the last two digits.

    Type of drug drug ID
    00603107554 respiratory
    00603107556 cough and cold
    Antitussive-00603107558


    I want that data to be formatted as
    Type of drug drug ID
    006031075 respiratory, cough and colds, Antitussive

    I want to cut the last two characters, and format data. And the types must be displayed in the form of values separated by commas. Can someone help me?

    Thanks in advance

    Rambeau
    WITH t AS (SELECT '00603107554' Drug_ID, 'Respiratory' Drug_Type FROM DUAL
               UNION
               SELECT '00603107556', 'Cough and Cold' FROM DUAL
               UNION
               SELECT '00603107558', 'Antitussive' FROM DUAL)
        SELECT Drug_id, SUBSTR (SYS_CONNECT_BY_PATH (Drug_Type, ','), 2) Drug_Types
          FROM (SELECT SUBSTR (drug_id, 1, LENGTH (drug_id) - 2) drug_id,
                       Drug_Type,
                       ROW_NUMBER ()
                       OVER (PARTITION BY SUBSTR (drug_id, 1, LENGTH (drug_id) - 2)
                             ORDER BY Drug_Type)
                          rn
                  FROM t)
         WHERE CONNECT_BY_ISLEAF = 1
    START WITH rn = 1
    CONNECT BY PRIOR rn = rn - 1 AND PRIOR drug_id = drug_id
    
    DRUG_ID     DRUG_TYPES
    006031075     Antitussive,Cough and Cold,Respiratory
    

    just a note, I wonder if blushadow could consider adding techniques agg string to its very useful faq section because it seems a good
    request.

    Published by: pollywog on April 14, 2011 06:42

    Published by: pollywog on April 14, 2011 06:43

  • Files separated by commas

    I'm reading in the data. CSV file.

    The CSV file contains a list of questions / answers to the format;

    Option 1, option 2, option3, option4, question, answer

    My problem is that I can get the entire row in a table, but I can't find a way to get each item in the file separated by commas in a multi sized table.

    I need to be able to use MyArray [1,1] is equal to the issue and MyArray [1,2] is equal to option1 etc etc.

    Hope it makes sense

    Paul

    'The doctor Pc' wrote in message
    News:eimvmm$g2o$1@forums. Macromedia.com...
    > The CSV file contains a list of questions / answers to the format;
    >
    > Option1 option2 option3, option4, answer question
    >
    > My problem is that I can get the entire row in a table, but I can't find
    > a
    > way to get each item in the file separated by commas in a multi
    > dimensioned array.
    >
    > I need to be able to use MyArray [1,1] is equal to the Question and
    > MyArray [1,2] is equal to option1 etc etc.

    Try something like:

    MyData: = ReadExtFile (...)

    [MyList: =]
    Repeat with i: = 1 to LineCount (MyData)
    Temp: = getline (mydata, i)
    [ MyList: =]
    Repeat with j: = 1 to LineCount (temp, ",")
    MyList [i, j]: = GetLine (temp, j, j, ",")
    end repeat
    end repeat

    Chris Forecast

  • Display commas in file

    Afternoon everyone,

    What hopefully an easy question and a lack of brain power to my part.

    I have the following code that is designed to form three strings into one final string which then gets written to the file. The file is separated by commas. The file is named event, Date, time, and value column headers.

    Now, it works perfectly apart because when it comes to write the final value column data. Because there are commas in the final format based on the string, it interprets this string as moving to the next cell and write instead, it's a long chain with shown commas so I find myself with this:

    Considered as junk

    Instead of ending up with the desired:

    You want

    So, my question is, is it possible to change this behavior so that the final string appears as stated above?

    Bravo for the research and thanks in advance.

    Mitch

    Hey Mitch_Peplow,

    This will solve your problem. The "" marks will not be posted so that the display in excel. In case if these data are used for something else in labVIEW, you can simply use the string function to replace and replace "" with empty strings as there are no other' ' used in the string.

    Kind regards
    Amine31

    (Give glory to good answers, mark it as a Solution If your problem has been solved )

  • Cannot save the added text to the. CFG files.

    Hello! I am new to Windows 7 (as is practically everybody, because how it's a new operating system...) and I'm currently under Flight Simulator X Deluxe Edition. In the past, on my XP machine, I liked adding items of scenery, aircraft repainted, etc., and in order to introduce the aircraft repaints, text lines must be added to a certain .cfg file located in one of the folders landscapes. My problem is that although I can open and view the contents of the .cfg file, when I add the new text and you try to save, I get an "Access denied" error message. It just doesn't allow me to save! This single action is the only thing in the way of enjoying me the use of the scenery file that I recently downloaded. Any advice on how to bypass this annoying problem would be great! I've already traveled through the administrator functions and tried to open the .cfg file in Notepad and wordpad, but without success.

    Press the windows key, type in Notepad, click with the right button on the notebook, run as long as administrator, open your Notepad file, modify, save.

  • How can I change a cfg. file on Flight Simulator?

    I need to change the file cfg for a plane in Flight Simulator X to increase the power of the brakes. Laptop will allow me to change the line of code in the file, but when will saved leaves me no copy / paste to replace the original code. Windows 7 seems to be designed to block changes to the files. We call her "Auntie" as my aunt always knows better and we naughty "children" shouldn't be messing with the files. As long as administrator, I is uncomfortable to be told that I am seen deny access to files on my computer. How can I replace this obstruction and change the file? I had this problem with the laptop before blocking things by aging the copy and paste facility.

    Open Notepad as administrator, right click on the Notepad icon, and then select run as administrator.

    Then open your .cfg file in Notepad. You should now be able to edit and save it.

    Sarcasm isn't pretty.

  • Value separated by commas in a table column to get each field separtely?

    Hello

    I have the table that a column has values separated by commas in it. This table is populated using SQL LOADER, which is staging table.

    I need to retrieve the records of these values separated by commas.

    format of. CSV file is as -

    A separate file of pipes.

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2|

    DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5|

    DHCP-1-1-3. WNLB-CMTS-01-1.

    DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3|

    DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7|

    CREATE TABLE link_data (dhcp_token VARCHAR2 (30), cmts_to_add VARCHAR2 (200), cmts_to_remove VARCHAR2 (200));

    insert into link_data values ('dhcp-1-1-1','wnlb-cmts-01-1,wnlb-cmts-02-2',null);

    insert into link_data values ('dhcp-1-1-2','wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5',null);

    insert into link_data values ('dhcp-1-1-3','wnlb-cmts-01-1',null);

    insert into link_data values ('dhcp-1-1-4','wnlb-cmts-05-8,wnlb-cmts-05-6,wnlb-cmts-05-0,wnlb-cmts-03-3',null);

    insert into link_data values ('dhcp-1-1-5','wnlb-cmts-02-2,wnlb-cmts-04-4,wnlb-cmts-05-7',null);

    Here the cmts_to_add column has comma separted

    I need values such as -.

    > for wnlb-cmts-01-1,wnlb-cmts-02-2 > > wnlb-CMTS-01-1

    > > wnlb-CMTS-02-2

    > for wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5 > > wnlb-CMTS-03-3

    > > wnlb-CMTS-04-4

    > > wnlb-CMTS-05-5

    And so on...

    I do this because it's the staging table and I load data into the main tables using this table.

    This second field contain different values as the simple comma-delimited string.

    I need to write a PLSQL block to insert into the main table after checking as if dhcp-1-1-1 and wnlb-CMTS-01-1 is present in the main table so not to introduce other insert a new record.

    To meet this requirement, I need to get the distinct value of the cmts_to_add column to insert into DB.

    the value will be inserted as dhcp-1-1-1_TO_wnlb-cmts-01-1 and dhcp-1-1-1_TO_wnlb-cmts-02-2 for the first row of the array of link_data.

    The process will also be same for the rest of the lines.

    I use the function substrt and instr for this problem, but its does not work.

    declare

    cursor c_link is select * from link_data.

    l_rec_link link_data % rowtype;

    l_dhcp varchar2 (30);

    l_cmts varchar2 (20000);

    l_cmts_1 varchar2 (32000);

    Start

    Open c_link;

    loop

    extract the c_link in l_rec_link;

    l_cmts: = l_rec_link.cmts_to_add;

    loop

    l_cmts_1: = substr (l_cmts, 1, instr(l_cmts,',')-1);

    dbms_output.put_line (l_cmts_1);

    end loop;

    dbms_output.put_line(l_dhcp||) e '|| l_cmts);

    When the output c_link % notfound;

    end loop;

    exception

    while others then

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    end;

    Its a peusdo code I write, but it also gives me the wrong answer it gives me error ORA-20000: ORU-10027: buffer overflow, limit of 20000 bytes

    I am using-

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

    Please tell me if my problem isn't clear!

    Hello

    little 'trick': Add a comma at the end of the chain... So it's easier to deal with the fact that there are zero, one, or N components...

    CREATE TABLE link_data (dhcp_token VARCHAR2 (30), cmts_to_add VARCHAR2 (200), cmts_to_remove VARCHAR2 (200));
    insert into link_data values ('dhcp-1-1-1','wnlb-cmts-01-1,wnlb-cmts-02-2',null);
    insert into link_data values ('dhcp-1-1-2','wnlb-cmts-03-3,wnlb-cmts-04-4,wnlb-cmts-05-5',null);
    insert into link_data values ('dhcp-1-1-3','wnlb-cmts-01-1',null);
    insert into link_data values ('dhcp-1-1-4','wnlb-cmts-05-8,wnlb-cmts-05-6,wnlb-cmts-05-0,wnlb-cmts-03-3',null);
    insert into link_data values ('dhcp-1-1-5','wnlb-cmts-02-2,wnlb-cmts-04-4,wnlb-cmts-05-7',null);
    COMMIT;

    SET SERVEROUT ON
    DECLARE
    l_cmts VARCHAR2 (200 CHAR);
    l_cmts_1 VARCHAR2 (200 CHAR);
    BEGIN
    FOR r IN (SELECT dhcp_token, cmts_to_add |) ',' cmts
    OF link_data
    )
    LOOP
    l_cmts: = r.cmts;
    l_cmts_1: = SUBSTR (l_cmts, 1, INSTR (l_cmts, ",") - 1);
    While l_cmts_1 IS NOT NULL
    LOOP
    DBMS_OUTPUT. Put_line (r.dhcp_token |) '|' || l_cmts_1);
    l_cmts: = SUBSTR (l_cmts, INSTR (l_cmts, ",") + 1);
    l_cmts_1: = SUBSTR (l_cmts, 1, INSTR (l_cmts, ",") - 1);
    END LOOP;
    END LOOP;
    END;
    /
    DHCP-1-1-1. WNLB-CMTS-01-1
    DHCP-1-1-1. WNLB-CMTS-02-2
    DHCP-1-1-2. WNLB-CMTS-03-3
    DHCP-1-1-2. WNLB-CMTS-04-4
    DHCP-1-1-2. WNLB-CMTS-05-5
    DHCP-1-1-3. WNLB-CMTS-01-1
    DHCP-1-1-4. WNLB-CMTS-05-8
    DHCP-1-1-4. WNLB-CMTS-05-6
    DHCP-1-1-4. WNLB-CMTS-05-0
    DHCP-1-1-4. WNLB-CMTS-03-3
    DHCP-1-1-5 | WNLB-CMTS-02-2
    DHCP-1-1-5 | WNLB-CMTS-04-4
    DHCP-1-1-5 | WNLB-CMTS-05-7

    Best regards

    Bruno Vroman.

  • Entering both the keywords separated by comma

    Does anyone know how to enter keywords for the stock footage at the same time (separated by commas) to the new site of contributor Adobe Stock?

    Thank you for your question. The ability to copy and paste keywords is not a feature that is available at this time. Please note that if you embed your keywords in the metadata of your content before downloading, the system automatically reads the keywords and they will be applied to your presentation files.

    Kind regards

    Mat Hayward

  • Splitting data separated by commas

    Hi friends,

    I have a few million records that must be formatted as data and need your help with this.

    Actual data in the csv file:

    «30375516451 ',' June 3, 2013 23:31:33 ","June 4, 13"," Tag #: 2490544Sharjah - White 33708 ", 'Al Garhoud bridge nine', 'Abu Dhabi', '4.00»»'

    Value using request, separated by commas:

    Select

    Replace (replace (replace (replace (test_value,'"', null"), chr (13), null), chr (160), null), chr (10), null) "test_value"

    of the test

    where to_number (length (test_value) - length (replace(test_value,',',''))) in (3.6);

    Output:

    30375516451, 03-Jun-2013 23:31:33, 4 June 13, Tag #: 2490565Sharjah - white 33708, new Al Garhoud bridge Abu Dhabi, 4.00

    Need to change a part with highest result of the query to make it entirely comma separated:

    Tag #: 2490565Sharjah - White 33708,.

    Output:

    2490565, Sharjah, 33708 white,-remove the space before the comma: white 33708,.

    Power required:

    30375516451, 03-Jun-2013 23:31:33, June 4, 13, 2490544, Sharjah, white 33708, Al Garhoud new bridge, Abu Dhabi, 4.00

    Sample data:

    CREATE TABLE TEST (TEST_VALUE VARCHAR2 (4000));

    INSERT INTO TEST VALUES (' "30375516451","June 3, 2013 23:31:33", "June 4, 13","Tag #: 2490565Sharjah - White 33708", "Al Garhoud bridge nine", "Abu Dhabi", "4.00" ' ");

    Thank you

    with the trial as)
    Select "" 30375516451 ',' June 3, 2013 23:31:33 ","June 4, 13"," Tag #: 2490544Sharjah - 33708 white ', 'Al Garhoud New Bridge', 'Abu Dhabi', '4.00' ' test_value»
    of the double
    )
    Select regexp_replace)
    regexp_replace)
    test_value,
    '( *")| [' || Chr (13) | Chr (160) | Chr (10) | ']',
    NULL,
    1,
    0,
    « n »
    ),
    'Tag #:(\d+)(.+) - ([^,]+)',
    '\1,\2,\3 '.
    ) test_value
    of the test
    /

    TEST_VALUE
    --------------------------------------------------------------------------------------------------------------
    30375516451, 03-Jun-2013 23:31:33, 04-Jun-13, 2490544, Sharjah, White 33708, new Al Garhoud bridge Abu Dhabi, 4.00

    SQL >

    SY.

  • How to integrate my form into my site for visitors can access and complete?

    I want to integrate my form into my site, so anyone can access to this, fill it out, and then once they do so, I will receive an email advising me of the completed form.

    I bought cloud document with Adobe function and have created the form. I can send email directly to someone and to fill them, but now I want them to be able to access it without having to wait for me to send it to them. Ideally, there is a link that I can put on my Web site that gives them access to it.

    I searched the forums and cannot find an answer. I go to my dashboard, but there is no option 'create a widget '.

    Please help and thank you.

    Hi progressivep64979722,

    Step 1

    Download your PDF on your Web server. The PDF doesn't have to reside on the same server as the HTML embed page. Make a note of the location of the PDF file, which should look something like "http://www.yourdomain.com/files/your_file.pdf".

    Step 2

    Open the Web page where you want to embed the PDF document with an HTML editor or text. Download the file with FTP software if you do not have an HTML editor that does it automatically for you.

    Step 3

    Find the place in the HTML code where you want the PDF format embedded to appear.

    Step 4

    Type the following embed code in the HTML code:

    http://www.yourdomain.com/files/your_file.pdf"width ="xxx"height ="xxx">

    Replace "xxx" with the measures of pixels of your PDF file. This will vary to integrate to incorporate, depending on the size of your PDF document.

    Step 5

    Save the HTML page and upload it to your Web server.

    Step 6

    Test the embed by visiting the page with a Web browser. Make changes to the height and width of the built-in PDF, if necessary, by a re-edition of the HTML file.

    Kind regards

    Nicos

  • How to split string separated by commas and pass to the clause of the select statement

    Referring to article How to divide string separated by commas, then pass to clause of a select statement, tquery that there the following plan:

    Query1:

    select * from emp where ename in (
        select regexp_substr('SMITH,ALLEN,WARD,JONES','[^,]+', 1, level) from dual
        connect by regexp_substr('SMITH,ALLEN,WARD,JONES', '[^,]+', 1, level) is not null );
    

    Base1:

    Plan hash value: 4242290184
    
    
    --------------------------------------------------------------------------------------------
    | Id  | Operation                       | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                |          |     1 |   133 |     7  (29)| 00:00:01 |
    |*  1 |  HASH JOIN                      |          |     1 |   133 |     7  (29)| 00:00:01 |
    |   2 |   VIEW                          | VW_NSO_1 |     1 |    46 |     3  (34)| 00:00:01 |
    |   3 |    HASH UNIQUE                  |          |     1 |       |     3  (34)| 00:00:01 |
    |*  4 |     CONNECT BY WITHOUT FILTERING|          |       |       |            |          |
    |   5 |      FAST DUAL                  |          |     1 |       |     2   (0)| 00:00:01 |
    |   6 |   TABLE ACCESS FULL             | EMP      |    14 |  1218 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       1 - access("ENAME"="$nso_col_1")
       4 - filter( REGEXP_SUBSTR ('SMITH,ALLEN,WARD,JONES','[^,]+',1,LEVEL) IS NOT NULL)
    

    However, the following query generates the plan I want:

    Query2:

    select * from emp where ename in ('SMITH','ALLEN','WARD','JONES');
    

    Plan2:

    Plan hash value: 3956160932
    
    
    --------------------------------------------------------------------------
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |      |     4 |   348 |     3   (0)| 00:00:01 |
    |*  1 |  TABLE ACCESS FULL| EMP  |     4 |   348 |     3   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       1 - filter("ENAME"='ALLEN' OR "ENAME"='JONES' OR "ENAME"='SMITH' OR
                  "ENAME"='WARD')
    

    Can I change the query1 query for plan2?

    As Juliet was mentioned in the first SQL that you generate from the ENAME list that you must pass in the IN clause when executing. But in the second SQL, it passed as a static value. So first SQL must do more work. So you see a different execution plan.

    But this is a work around to get what you are looking for. But I can't say it's a foolproof method. But anyway here you go.

    SQL > var ename_list varchar2 (100)
    SQL > exec: ename_list: = 'SMITH, ALLEN, WARD, JONES ';

    PL/SQL procedure successfully completed.

    SQL > select *.
    2 of PEM
    where the 3 «,» | : ename_list | ',' like '%', | Ename | ',%';

    EMPNO, ENAME, JOB HIREDATE DEPTNO ID COM SAL MGR
    ---------- ------ --------- ---------- --------- ---------- ---------- ---------- ----------
    7369 SMITH COMMITTED 7902 2975 2 APRIL 81 0 20
    7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
    7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
    7566 JONES MANAGER 7839 2975 2 APRIL 81 0 20

    SQL > select * from table (dbms_xplan.display_cursor);

    PLAN_TABLE_OUTPUT
    -------------------------------------------------------------------------------------------------------
    SQL_ID, 848zhvbvgf7d6, number of children 0
    -------------------------------------
    Select * from emp where «,» | : ename_list | ',' like '%', | Ename
    || ',%'

    Hash value of plan: 2872589290

    --------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |       |       |     2 (100) |          |
    |*  1 |  TABLE ACCESS FULL | EMP |     1.    38.     2 (0) | 00:00:01 |
    --------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 - filter(','||:ENAME_LIST||',' LIKE '%,'||") ENAME "|", %')

    19 selected lines.

    SQL >

  • How to search for a particular text values separated by commas

    Hello

    I have a table for example. TB_Fruits.
    In that I have a FruitsName (Varchar) column
    In this column I store the string of values separated by commas.
    Select FruitsName in the tb_fruits;
    Result: orange, banana, Apple

    Now the question is suppose that if I try inserting one of these fruits once again name, then it must not allow me to insert.

    Suppose that now if I try to insert ('grapes, banana')
    or
    (Apple, grape")

    the orange, banana, Apple may be in any position.

    How to check if one of these names exist already or not in the fruitsname column?
    I can't use INstr function here as or. because the position is not fixed chain even not.

    Appreciate any help.

    Hmm, OK, the BASIC_LEXER in the documentation is specified is useful to "spaces separate languages". So not really a good suggestion from my side ;-)

    Okay, so a few different choices, you can play with:

    SQL> create table tb_fruits (
      2     fruitsname  varchar2(60)
      3  )
      4  /
    
    Table created.
    
    SQL> begin
      2     insert into tb_fruits values ('BANANA,APPLE');
      3     insert into tb_fruits values ('YELLOW BANANA,ORANGE');
      4     insert into tb_fruits values ('GREEN APPLE,YELLOW ORANGE');
      5     insert into tb_fruits values ('APPLE,GREEN BANANA');
      6     commit;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    

    Option 1:

    Make a outdated AS operator. It just won't be fast because it's more likely will be full table scan (or scan restricted index full).

    SQL> select fruitsname
      2    from tb_fruits
      3   where ','||fruitsname||',' like '%,'||'APPLE'||',%'
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    BANANA,APPLE
    APPLE,GREEN BANANA
    
    SQL> select fruitsname
      2    from tb_fruits
      3   where ','||fruitsname||',' like '%,'||'BANANA'||',%'
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    BANANA,APPLE
    
    SQL> select fruitsname
      2    from tb_fruits
      3   where ','||fruitsname||',' like '%,'||'YELLOW BANANA'||',%'
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    YELLOW BANANA,ORANGE
    

    Option 2:

    Transform your data and replace the spaces with underscores. Which may or may not be a possibility for you. If your other data contains no underscores, you might fool your user interface using a view that replaces underscores with spaces when you select and a trigger before insert that replaces spaces with underscores to insert or update. Then, you can use the TEXT index.

    SQL> create table tb_fruits2 as
      2  select replace(fruitsname,' ','_') fruitsname
      3    from tb_fruits
      4  /
    
    Table created.
    
    SQL> begin
      2     ctx_ddl.create_preference('mylex', 'BASIC_LEXER');
      3     ctx_ddl.set_attribute('mylex', 'printjoins', '_-');
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SQL> create index fruitsname_idx on tb_fruits2 (fruitsname)
      2  indextype is ctxsys.ctxcat
      3  parameters (
      4  'stoplist ctxsys.empty_stoplist
      5  LEXER mylex'
      6  )
      7  /
    
    Index created.
    
    SQL> select fruitsname
      2    from tb_fruits2
      3   where catsearch(fruitsname,replace('YELLOW BANANA',' ','_'),null) > 0
      4  /
    
    FRUITSNAME
    ------------------------------------------------------------
    YELLOW_BANANA,ORANGE
    

    (I used CTXCAT rather then CONTEXT indexes to keep simple search syntax, avoid SYNCHRONIZATION problems and others. You can use CONTEXT or CTXCAT as desired.)

    Option 3:

    Transform your data in XML format instead of values separated by commas. Then create a XMLIndex.

    SQL> create table tb_fruits3 as
      2  select xmltype(''||replace(fruitsname,',','')||'') fruitsname
      3    from tb_fruits
      4  /
    
    Table created.
    
    SQL> create index fruitsname_xmlidx on tb_fruits3 (fruitsname)
      2  indextype is xdb.xmlindex
      3  /
    
    Index created.
    
    SQL> select fruitsname
      2    from tb_fruits3
      3   where xmlexists('$f/l[w="YELLOW BANANA"]' passing fruitsname as "f")
      4  /
    
    FRUITSNAME
    --------------------------------------------------------------------------------
    YELLOW BANANAORANGE
    

    (I used just 'l' for 'list of the words' and 'w' for 'word').

    Option 4:

    Create your own [url http://docs.oracle.com/cd/E11882_01/text.112/e24436/cdatadic.htm#i1008347] USER_LEXER instead of a variant of BASIC_LEXER. This would require allows you to create your own stored procedures for the index to be used, in which case you have complete control over what you set in the form of a token.

    That's the different options I can think of right now ;-)

  • Columns separated by commas

    Oracle 10.2.0.1
    Windows XP

    I have a table that stores the data of our customers. When I said:

    Select city, city_code as CS, count (*) as the early group of customers by city, city_code:
    It returns:
    CITY                                     CS        TOT
    ---------------------------------------- -- ----------
    Delhi                                    01         23
    Bangalore                                02         36
    Mumbai                                   03         33
    Hyderabad                                04          8
    Jaipur                                   00          2
    Patna                                    00          1
    Chennai                                  05        114
    Power required:
    CITY                                     CS        TOT                        IDS
    ---------------------------------------- -- ----------     ----------------------
    Jaipur                                   01          2                    393,405
    Patna                                    02          1                        200
    Means that if Tot for a city is between 1,5; I want to get these IDS to customer (from the customer table itself)
    separated by commas as above, so that I can know who are the customers, because all the
    cities whose number is < = 5, there are errors in the name of the city.

    Thank you.

    NOT TESTED! not having do not have database access

    select city,city_code,tot,substr(sys_connect_by_path(to_char(customer_id),','),2) ids
      from (select c.customer_id,c.city,c.city_code,e.tot,
                   row_number() over (partition by c.city,c.city_code order by customer_id) the_row
              from customers c,
                   (select city,city_code,count(*) tot
                      from customers
                     group by city,city_code
                     having count(*) <= 5
                   ) e
             where e.city = c.city
               and e.city_code = c.city_code
           )
     where connect_by_isleaf = 1
     start with the_row = 1
     connect by prior the_row + 1 = the_row
            and prior city = city
            and prior city_code = city_code
            and prior tot = tot
    

    Concerning

    Etbin

  • Treatment of comma-delimited file

    Hi all

    I need to treat more file separated by commas (example data):

    ' ' 'ILPS2', '2', ' ', ' 1293051491.000 ',' outward_drum ', 'top', 'T 30000025429, 22', 'V', 'PVIDC', '9', 'PVOCR', "13", "M", "3030369900545", "N", "N", "N", "N", ', 'Y', ', "N", "", "","","", "01.37", "F", "N", ",", ""
    ' ' 'ILPS2', '2', ' ', ' 1293051491.000 ',' outward_drum ', 'top', 'T 30000025329, 22', 'V', 'PVIDC', '8', 'PVOCR', "12", "M", "3030369900545", "N", "N", "N", "N", ', 'Y', ', "N", "", "","","", "01.37", "F", "N", ",", ""

    But each column begins and ends by ". I need these characters and lead single 'data' in the columns how can I achieve this?

    ODI can process fixed or delimited files.

    All ideas are most appreciated.

    Thank you
    KS

    Hi, KS,

    I would like to contribute to a point.

    You can manage this when creating data store.

    "Go to-> your model-> open your data store-> go to the files tab-> in the text delimiter add * ' *. Save it.

    PS: If its not taking "then try to create a new database. I tried with your sample data and review data when adding "as the delimiter text.

    Thank you
    Guru

Maybe you are looking for

  • Aways thumbnails open in pages

    I see people asked this question a long time ago! Is it possible to set this up so that the thumbnails are still open?

  • PCMCIA card will not install on Satellite L30 - 10y

    Hi all I hope someone can help with this problem. I recently bought a PCMCIA card with additional USB ports for my laptop Satellite L30 - 10y. It works on Vista basic, anyway I shoved the card into the slot and let windows install the drivers, proble

  • SPC 315nc drivers and software webcam philips don't is not loading

    I brought Philips SPC 325NC webcam according to the area, but the included disk said SPC 315NC webcam.  The problem is that drivers don't take care and and an error occurs when you try to load.

  • BlackBerry smartphones unique dial

    How to dial a number not in my address book? I don't really want to add unique numbers that I have not never composed again in my address book, but I can't understand how do without do? Given that it is insane, there must be something that I am missi

  • Problem of incompatibility of file OSPPREARM

    I recently bought a new desktop HP Envy with Windows 8. I upgraded to 8.1, then purchased MS Office Home & Business that I downloaded. Worked fine for a few days, then disappeared from all Office except my directory (listed as office 15). When I visi