Change Password with changePasswordForSelf and Special character

Hi,
I was trying to use the OIM (9.1.1.0) API to change the password using:
userIntf.changePasswordForSelf(oldPassword, newPassword, confirmNewPassword);
This works when I use some standard password.
The issue appears when I try to enter certain special character: e.g: < or >
The error returned is :
<Error (class Thor.API.Exceptions.IllegalInputException): Thor.API.Exceptions.IllegalInputException>
Exception is: Thor.API.Exceptions.IllegalInputException
I reckon this is done to prevent injections.
I didn't see any restriction in any of Oracle documentation and was wondering if you can help me understanding:
- if you have observed the same issues before
- which character are affected by this
- if there is a work around to allow these character
Thank you.

That's because the special characters you are using are the scripting tags and it confuses itself with the OIM scripting process, for instance JSP's etc.
So I would recommend not to do it and have your policies in place which restricts end-user to have a password with such special characters. I did not tried that but you can possibly do that.

Similar Messages

  • UTL_HTTP with parameter and special character

    hello,
    i need your help to solve this issue.
    I try to open an utl_http request which calls a procedure with some parameters.
    i have to create an url like:
    http://myserver.de/pls/portal/coup.run_report?p_link=run_coup&p_report=coupon_doc_hot.rdf&p_number1='d1=2887745051191'&p_pevno1='p1=TTG00000013''&p_transno1='t1=5'&p_number2='d2=0'&p_pevno2='p2=0'&p_transno2='t2=0'&p_number3='d3=0'&p_pevno3='p3=0'&p_transno3='t3=0'&p_number4='d4=0'&p_pevno4='p4=0''&p_transno4='t4=0''&p_number5='d5=0''&p_pevno5='p5=0'&p_transno5='t5=0'&p_number6='d6=0'&p_pevno6='p6=0'&p_transno6='t6=0'&p_number7='d7=0'&p_pevno7='p7=0'&p_transno7='t7=0'&p_number8='d8=0'&p_pevno8='p8=0'&p_transno8='t8=0'&p_number9='d9=0'&p_pevno9='p9=0'&p_transno9='t9=0'&p_number10='d10=0'&p_pevno10='p10=0'&p_transno10='t10=0'&p_desformat=pdf&p_destype=file&p_desname=/ias/developer/coup_cache/U002345/report.pdf
    If I run the url directly in the browser, everything is working fine. But with utl_http, I only get a 404 error.
    i guess it's caused due to the 'd1=0' parameter, but I can't avoid them.
    url_string := 'http://myserver.de/pls/portal/coup.run_report?p_link='||trim(to_char(l_link))||'&'||'p_report='||trim(to_char(p_report))||'&'||
    'p_number1=''d1='||trim(to_char(p_doc1))||''''||'&'||'p_pevno1=''p1='||trim(to_char(p_pevno1))||''''||'&'||'p_transno1=''t1='||trim(to_char(p_transno1))||'''&'||
    'p_number2=''d2='||trim(to_char(p_doc2))||''''||'&'||'p_pevno2=''p2='||trim(to_char(p_pevno2))||''''||'&'||'p_transno2=''t2='||trim(to_char(p_transno2))||'''&'||
    'p_number3=''d3='||trim(to_char(p_doc3))||''''||'&'||'p_pevno3=''p3='||trim(to_char(p_pevno3))||''''||'&'||'p_transno3=''t3='||trim(to_char(p_transno3))||'''&'||
    'p_number4=''d4='||trim(to_char(p_doc4))||''''||'&'||'p_pevno4=''p4='||trim(to_char(p_pevno4))||''''||'&'||'p_transno4=''t4='||trim(to_char(p_transno4))||'''&'||
    'p_number5=''d5='||trim(to_char(p_doc5))||''''||'&'||'p_pevno5=''p5='||trim(to_char(p_pevno5))||''''||'&'||'p_transno5=''t5='||trim(to_char(p_transno5))||'''&'||
    'p_number6=''d6='||trim(to_char(p_doc6))||''''||'&'||'p_pevno6=''p6='||trim(to_char(p_pevno6))||''''||'&'||'p_transno6=''t6='||trim(to_char(p_transno6))||'''&'||
    'p_number7=''d7='||trim(to_char(p_doc7))||''''||'&'||'p_pevno7=''p7='||trim(to_char(p_pevno7))||''''||'&'||'p_transno7=''t7='||trim(to_char(p_transno7))||'''&'||
    'p_number8=''d8='||trim(to_char(p_doc8))||''''||'&'||'p_pevno8=''p8='||trim(to_char(p_pevno8))||''''||'&'||'p_transno8=''t8='||trim(to_char(p_transno8))||'''&'||
    'p_number9=''d9='||trim(to_char(p_doc9))||''''||'&'||'p_pevno9=''p9='||trim(to_char(p_pevno9))||''''||'&'||'p_transno9=''t9='||trim(to_char(p_transno9))||'''&'||
    'p_number10=''d10='||trim(to_char(p_doc10))||''''||'&'||'p_pevno10=''p10='||trim(to_char(p_pevno10))||''''||'&'||'p_transno10=''t10='||trim(to_char(p_transno10))||'''&'||
    'p_desformat=pdf'||'&'||'p_destype=file'||'&'||'p_desname=/ias/developer/coup_cache/'||trim(to_char(p_user))||'/'||trim(to_char(filename))||'.pdf';
    htp.p(url_string);
    req := UTL_HTTP.BEGIN_REQUEST(url_string);
    UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');
    --code is running till here. But response fails.
    resp := UTL_HTTP.GET_RESPONSE(req);
    any hint?
    best regards

    That's because the special characters you are using are the scripting tags and it confuses itself with the OIM scripting process, for instance JSP's etc.
    So I would recommend not to do it and have your policies in place which restricts end-user to have a password with such special characters. I did not tried that but you can possibly do that.

  • Htp.p() and special character

    I am trying to use PL/SQL procedure to present my customized item.
    If user type in secial character, e.g. single quote ', in an attribute, I got this error on the page:
    Error 30584: DBMS_SQL has raised an unhandled exception. ORA-06550: line 1, column 327: PLS-00103: Encountered the symbol "03" when expecting one of the following: . ( ) , * @ % & = - + < / > at in is mod not rem <> or != or ~= >= <= <> and or like between ||
    Is there a procedure I can call to encode the special character? I tried htp.ps() and htf.escape_sc(), however they are not dealing with single quote.
    thanks

    I am using a custom item type to display news and annoucements for my intranet.
    The custom item type has an associated procedure that renders it on the front page of my intranet.
    If the end users enter an apostrophe such as ' . in the title custom item type or the body of the custom item type, I get an error message on the page where the custom item type is displayed, such as
    Error 30584: DBMS_SQL has raised an unhandled exception.
    I tried changing the procedure that formats and displays the custom item type so it replaces the quote for example
    v_description := replace(v_description, '''','ampersand#8217;');
    note i am using the ampersand character and not the word so it posts correctly here, the variable is then used as below .
    <td>'||substr(v_description,1,400)||'..</td> .
    but it does not work.
    Is there anyway of trapping what the user is typing in before it gets put into the database and replacing it with a html special character.
    or is my plsql wrong.
    Any help appreciated.

  • My itunes account was disabled for some reason.  I changed password in iforgot and still didn't work.  I could log in but not make purchases from the store so I set up a new login/account .  Is there any way to move my music to the new account?

    My itunes account was disabled for some reason.  I changed password in iforgot and still didn't work.  I could log in and see my music but not make purchases from the store or even redeem an itunes gift card so I set up a new login/account with another email account of mine. On the new account I can redeem my gift card and download items onto my ipad2.  Is there any way to move my music to the new account?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Find/Change words (with GREP) and apply a style...

    I need a Script for Find/Change words with GREP, and apply a paragraph style...
    Thanks...

    Hi Marcos,
    If you want the script to create character styles: Bold , Italic, Bold Italic, etc, and replace local formatting with these styles, use scripts in post #3.
    But if you want find and change words, or/and replace local formatting with styles defined by you, use FindChangeByList script.
    If the latter, I recommend you to download and install Record Find Change script (written by Martin Fisher).
    Then choose settings you need in Find-Change dialog – make sure they work as expected – and run Record Find Change script. A Notepad/TextEdit file will pop up with a line containing the recorded setting. Copy it, open FindChangeList.txt, delete the contents of this file and paste the line you just copied (or add it to the bottom of the file).
    Repeat the process for all find-change operations you need.
    Finally run FindChangeByList.jsx to make all changes in one go.
    However, while using Record Find Change script, you may encounter a problem: it doesn’t record paragraph and character styles placed inside a group. But you can write references to such styles like so:
    appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Style Group 1"). paragraphStyles.item("Paragraph Style 1")
    Kasyan

  • Changing password of Sysman and DBSNMP users in Oracle 10g (10.2.0.3.0)

    Hi,
    When i changed my sysman and dbsnmp password, these users are frequently locking.
    For sysman password change i do the following steps.
    1) emctl stop dbconsole
    2) change password of sysman and dbsnmp from sql
    3) Post sysman password change to emoms.properties file
    4) Post DBSNMP password change in targets.xml
    5) emctl start dbconsole.
    DBSNMO AND SYSMAN users were locked.
    Stop dbconsole again
    Unlock the user sysman and dbsnmp
    then again restart dbconsole
    Sysman user locked
    Another thing do we need to have same password for dbsnmp and sysman
    Regards,
    irfanb146

    Now Sysman and DBSNMP users are unlocked after i made the password of sysman change again and they are not locking.
    Following is the message in the browser
    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    Browser is showing All the components are up like instance, Agent and Listener with green arrows upward
    Message was edited by:
    user605066

  • 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

  • How do you change password with out using cd on imac?

    How do you change password with out cd on imac?

    Please read:
    http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/

  • HT204053 I got an incorrect apple ID or password with FaceTime and iMessage why?

    I got an incorrect apple ID or password with FaceTime and iMessage however not with iCloud why?

    Yes, I am using the same ID on both devices.  I also logged out of the iTunes application and back in but still get this same message.  "The Apple ID you entered couldn't be found or your password was incorrect.  Plese try again."
    I have another subscription with Admin Magazine that appears to use the same interface and it was able to restore my purchases.

  • HT201394 I updated and restarted my iphone 5 now i cant get passed the startup? I have changed password many times and i have tried to skip it but it shuts off?

    I updated and restarted my iphone 5 now i cant get passed the start up? I have changed password many times and i have tried to skip it but it shuts off?

    I have same issue

  • Change Password with spaces not working

    Hi,
    I have configured password policy in OIM as Minimum length as 8
    Min Numeric characters 6
    Min Uppercase Characters 1
    Special Character Minimum 1
    Disallow last passwords 12
    Now at the time of changing password it is accepting spaces in password and when we trying to log in with that password [password having spaces] it is not accepting and we are not able to log in with taht user
    Please reply soon.
    Thanks

    Any updates??

  • MII 12.0.4 - Problem MessageListener and special character (German) -

    Hey,
    we have the following Landscape:
    + ECC 6.0 with Unicode
    + MII 12.0.4
    Settings on the MessageListener Server:
    gwhost xxxxxxxxx 
    gwserv xxxxxxxxx 
    progid SAP_MII 
    trace   
    params   
    snc_myname   
    snc_qop   
    snc_lib   
    unicode 1 
    max_startup_delay
    Settings on the MessageListener Client:
    client yyy 
    user yyyyyyyy 
    alias_user   
    passwd   
    lang    de
    sysnr xx 
    ashost xxxxxxxx 
    mshost   
    gwhost xxxxxxxx 
    gwserv xxxxxxxxx 
    r3name   
    group   
    tpname SAP_MII 
    tphost   
    type   
    trace   
    codepage  
    abap_debug   
    use_sapgui   
    getsso2   
    mysapsso2   
    x509cert   
    lcheck   
    grt_data   
    use_guihost   
    use_guiserv   
    use_guiprogid   
    snc_mode   
    snc_partnername   
    snc_qop   
    snc_myname   
    snc_lib   
    dest   
    saplogon_id   
    extiddata   
    extidtype   
    idle_timeout   
    dsr
    Error-Description:
    When MII get a Message (RFC) from the ECC, all special character (German Umlaut) coming wrong.
    I tried with changing the Language, codepage... without any success. When I call the same Message
    (RFC) from the BLS through a JCO action block, then the result is with special character. I also tried
    this on a MII 12.0.5 installation without success... Did anybody had this problem one time?
    Kind Regards
    Pedro

    Pedro,
    we are working in an german environment with unicode, although I have set the Message Listener language to EN. I have found some material texts which came down with a MATMAS that contain german umlaute and which are shown correctly inside the database.
    I have also used a "normal" JCo block, no session. I guess it would make no difference using an IDoc or RFC.
    Have you seen the wrong characters, in the MII workbench or in a database where you store the contents?
    Michael

  • 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.

  • Import over network link fails when table and special character.

    I am trying to do an import over the network link. Below is the command I am using to do the import. In the parameter file the table name has "$" sign. Database is on AIX.
    impdp "'/ as sysdba'" PARFILE=par_aml_aud_import.txt LOGFILE=test.log
    PARFILE:
    JOB_NAME=MONTHLY_XYZ_IMPORT
    NETWORK_LINK=XYZ_IMPORT_LNK
    DIRECTORY=XYZ_AUD_IMPORT
    TABLE_EXISTS_ACTION=TRUNCATE
    REMAP_SCHEMA=XYZ:XYZ_AUDIT
    REMAP_TABLESPACE=XYZ_DATA:XYZ_AUDIT_DATA
    REMAP_TABLESPACE=XYZ_INDEX:XYZ_AUDIT_INDEX
    EXCLUDE=GRANT
    TABLES=XYZ.DR$ABC_EFG_CTC1$N, DR$MNO_PQR_CTC1$N
    I have tested this import with following options.
    on the command line TABLES=\"XYZ\".\"DR\$ABC_EFG_CTC1\$N\" ---- (IN THE PARFILE)
    on the command line TABLES=\"XYZ\".\"DR\$ABC_EFG_CTC1\$N\" ---- (WITHOUT USING PARFILE)
    Still my import fails with below error.
    ======================
    ORA-39166: Object ."DR$ABC_EFG_CTC1$N" was not found.
    ORA-39166: Object ."DR$MNO_PQR_CTC1$N" was not found.
    ORA-39166: Object XYZ was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYS"."SYS_IMPORT_TABLE_01" completed with 3 error(s) at 07:46:30
    I had more than 20 tables to import. All the other tables get imported except these tables which have special character. I have confirmed that these tables exists in source database.
    Please advice.
    Thanks
    Shelly

    First hint: don't use as sysdba
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref243
    Instead, create a user with (no more than necessary) export and/or import rights
    user7414922 wrote:
    on the command line TABLES=\"XYZ\".\"DR\$ABC_EFG_CTC1\$N\" ---- (WITHOUT USING PARFILE)Try something like tables=xyz.table\$name
    or
    tables='xyz.table$name'
    TABLES=XYZ.DR$ABC_EFG_CTC1$N, DR$MNO_PQR_CTC1$NSecond table should probably have schema qualifier as well.

  • REGEX AND SPECIAL CHARACTER

    Hi guys, I have a problem!!!!
    I am using the java.util.regex.*, when I try use the special character, for example ' \w ' I get a error
    Pattern.compile("\w123\w");
    The compiler return to me that the \w character is not a valide, the output error are:
    "illegal escape character".
    What I need do to put this character in my regular expression and don't get the error?!!?
    Another question, I use the feloow code
    Pattern p = Pattern.compile("isc");
    Matcher matcher = p.matcher("Giscard");
    if(matcher.matches())
       System.out.println("MATCH");
    else
      System.out.println("NOT MATCH");  //The resul is always this, why the regex don't match with my name?Thanks one more time.
    Giscard

    1)
    Pattern.compile("\\w123\\w");To input a single "\" in a Java program you must enter two "\\".
    2) read the javadoc
    matches()
    Attempts to match the entire region against the pattern.
    So "isc" only matches "isc", not "Giscard"
    You need to use find()

Maybe you are looking for

  • How long Oracle plans to support Forms/Reports 6i ?

    Hello dear Oracle Forms users/developers, The "Oracle Forms: Features Obsolescence for Release 9i", which I downloaded from OTN, clearly indicates that the client-server runtime will be obsolete in 9i, and (quote) "users who currently deploy their ap

  • How to create a project in netbeans

    hi, i am new to this J2me.i need help.. i have downloaded one source code..http://simonepernice.freehostia.com/J2ME/ShoppingList/shoppinglist.html.. now i need to run this in my netbeans 5.5.plz if any one knows do reply me..PlZ give me in details th

  • Installing SAP GUI on windows using Bootcamp on (MACBook)

    HI SDN, I am looking forward to buy MACBook. Please provide your suggestions on installing SAP GUI on windows using Bootcamp on MACBook? Are they any issues installing SAP GUI on Mac machine on Windows OS? Running Bex Queries, any excel integration i

  • Yahoo is giving screen resolution error for my Sony Vaio laptop at 1600 x 900

    My laptop display had no screen resolution problem before upgrading to 3.6.10. The error states I should set to 1024 x 768 pixel resolution. This is less than that I already have. I don't understand why this occurs.

  • Problems with E mail on my MAC using SAFARI

    When I click on the purple E mail button I then get onto the Login page. The toolbar then displays (for an instant only) British  Telecommunications PLC  highlighted in GREEN and then   signin1.bt.com. As I say the green highlighted part disappears -