Contains the content-value null, the value of metadata

Hello

We check the content using batchloader. The batch file is generated from the external application.

We have two fields in the profile if these values (alphanumeric) comes as the content is always null checking in.

But if we check in it by the content of the profile is not get verified with null values.we spend the trigger of profile and the profile name in the batch file.

If I remember correctly, the BatchLoader import process uses the service CHECKIN_UNIVERSAL to ingest files.  Once again, if I remember correctly, CHECKIN_UNIVERSAL does not cause the engine of profiles to call, so your profile (and all the rules in the profile) will be ignored when using BatchLoader.

If you change the format of your file generated to add a line for each entry ("IdcService is CHECKIN_NEW"), you can use IdcCommand instead of BatchLoader to load the files.  CHECKIN_NEW would invoke the profile to the fire engine.

Tags: Fusion Middleware

Similar Questions

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

  • The values of metadata to the content information hiding

    I want some information content values is not to be shown and has been able to do it by substituting the DOC_INFO. But I fight to override the < $include doc_rev_table$ > I wanted to the column "Date of expiry" don't not show all values. And where is doc_rev_table details are?

    Hello

    Please follow the details below.

    (1) launch Configuration Manager

    2) click on the rules tab

    3) click on the Add button and enter a name for the rule

    (4) check the "rule of the world with the priority is" check rule firing AND use boxes

    (5) click the button change

    (6) click on the Add button (must be in the conditions tab)

    (7) provides a name and click ok

    8) click on the check box use Action

    9) click on the content information checkbox and click the ok button

    10) click on the 'fields' tab

    11) click on the Add button

    (12) select a field that you want to hide the name of the field drop-down

    13) click Ok

    (14) select hidden drop-down list field type

    15) click Ok

    (16) repeat steps 11 through 15 for each field that you want hidden to the content information Page

    (17) when all fields are provided out to where you're looking for the applet dialog list.

    (18) choose Options-> publish the schema

    (19) close the browser, and then restart the browser and connection

    (20) check the hidden fields on the page content information.

    Ref: How to hide the content information Page metadata fields? (Doc ID 1612141.1)

    Thank you
    Amey

  • Creating a variable that contains the value of the variable system (Long) Date of change

    Can someone tell me how to write a script to create a variable named DocDate, which contains the value of the variable of system (Long) Date of change? Or write a script that creates a variable named DocDate, which contains the current date? I can't find a lot of documentation on scripting ExtendScript.

    Hi Julee, when you create a user variable in the interface, you cannot include the building blocks of time in the definition. They can only be used in system like the System Date of Modification (Long) variable variables. So the question is, why not just use the variable Date of change (Long) system in your document? What is the purpose of the variable user DocDate? Let me know what you think here, and I can try to help you.

    Here are some ExtendScript resources:

    My blog: FrameAutomation.com | FrameMaker, faster and more effective to

    Debra Herman blog: Extension of FrameMaker

    The large samples of Russ Ward: FrameMaker ExtendScript samples - West Street Consulting

    -Rick

  • I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?

    I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?

    If the encoding is ASCII? Laughing out loud

    Be well...

  • Would like to know which table in the repository contains the value of the operating system

    Hello

    I would like to know which table in the repository contains the value of "Owner operating system".

    Any ideas.

    Thank you
    Paul

    The following query should help you:

    SELECT t.target_name agent_name, cm.string_value mgmt_targets Os_User t, mgmt_metrics m.
    cm mgmt_current_metrics WHERE t.target_type = 'oracle_emd. '
    AND m.target_type = 'oracle_emd' AND t.target_guid = cm.target_guid AND cm.metric_guid = m.metric_guid
    AND m.metric_name = 'EMDIdentity' AND m.metric_column = 'username' AND m.type_meta_ver = t.type_meta_ver;

    Best regards
    Vincent

  • Game activate when: "the page containing the content is open" for Rich Media

    Hi all

    I'm trying to set the launch for my multimedia content (mp3).

    I need to put

    Activate when the "opening of the page containing the content.

    Disable when "close the page that contains the content.

    Create poster from file

    So far, thanks to Uwe I can access the drive using

    var rm = this.getAnnotsRichMedia (0) [0]

    I also have to start and stop using rm.callAS (...)

    But I can not yet understand how to set these parameters.

    Screen Shot 2014-12-12 at 02.00.41.png

    Unfortunately, the main interface between Flash Player and Acrobat JSAPI is a long way from reliable (and when FP has been decoupled and sandbox, it got worse). I'll have to run tests, but I suspect, there is no solution by script - and don't hold your breath waiting for the API get new function calls. You are * supposed * to set the properties on each RMA through the application of creation or the RAM > properties in Acrobat Panel; the fact that a workaround is borked not inconvenient for engineering.

  • The value of metadata, cuff links to several files

    I want to choose a number of photos in a directory and set them to all have the same metadata, IPTC title.

    I found that I could do this:

    1. Set the IPTC title for a single photo.
    2. Use the menu Preset/metadata/copy (context menu).
    3. Select a number of other pictures.
    4. Use the menu metadata Preset/paste.

    As a new user of Lightroom and former user of ACDSee Pro, this seems a bit awkward. I'm doing it correctly? Are there alternatives?

    In ACDSee, I'd rather this:

    1. Several photos of select.
    2. Type in the Panel of the IPTC title value.
    3. Click on the button apply. By default, it doesn't replace the field having been changed and leave others unchanged.

    Uncheck ' display metadata for camera lens only "and change metadata will be applied to all selected pictures.  If this box is checked that it applied only to the picture more.  Not clear and obscure menu item type.

  • Error when performing procedure a TOAD that contains the parameter and dblink

    Hi all
    I get the error while executing the following code in the TOAD and APEX.

    It contains the parameter (start_date and end_date) and dblink (@TO_FUT).
    When I hardcode the values of the parameters, it works very well.
    When I give values hard-coded in the procedure, the error comes.
    When I commented that the lines as much as setting comes, the error always comes.

    I don't know if it's parameter problem or question dblink or some other problem

    Everyone is having no idea about this error?
    Your help is very appreciated.

    Code:
    CREATE OR REPLACE PROCEDURE PROC_ENR_ACC (START_DATE, END_DATE DATE DATE)
    AS
    BEGIN
    RUN IMMEDIATELY 'TRUNCATE TABLE OUTPUT_TABLE;
    INSERT INTO OUTPUT_TABLE
    (FIRST_NAME, LAST_NAME, HIDDEN, EFF_DT, CID, PLAN, FLAG)
    SELECT
    TEMP1. FIRST NAME,
    TEMP1. LAST_NAME,
    TEMP1. HIDDEN,
    TEMP1. EFF_DT,
    TEMP1. CID,
    TEMP1. PLAN,
    NVL ((SELECT ' Y'))
    OF FADMIN. MEMI_TABLE@TO_FUT MCQUEEN
    WHERE MCQUEEN. MEME_CK = TEMP1. MEME_CK
    AND MCQUEEN. TXN_EFF_DT = TEMP1. EFF_DT
    AND MCQUEEN. PBP = TEMP1. PLAN
    AND MCQUEEN. MEMI_TXN_CD IN ('AC', ARE ')
    AND MCQUEEN. MEMI_SEQ_NO = (SELECT MAX (MI. MEMI_SEQ_NO)
    OF FADMIN. MEMI_TABLE@TO_FUT MI
    WHERE MI. MEME_CK = MOUGEOT. MEME_CK
    AND MI. TXN_EFF_DT = MOUGEOT. TXN_EFF_DT
    AND MI. PBP = MOUGEOT. PBP
    AND MI. MEMI_TXN_CD IN ('AC', ARE ')
    AND MI. (MEMI_INTF_STS = 03)), 'N') AS FLAG
    Of
    (SELECT
    M1. FIRST NAME,
    M1. LAST_NAME,
    M1. HIDDEN,
    M1. EFF_DT,
    M1. CID,
    M1. PLAN,
    (SELECT THE SAME. MEME_CK
    OF FADMIN. EVEN MEME_TABLE@TO_FUT, FADMIN. GRGR_TABLE@TO_FUT CHRISTIAN
    WHERE EVEN. M_HIN = M1. HID
    AND EVEN. GRGR_CK = CHRISTIAN. GRGR_CK
    AND CHRISTIAN. GRGR_ID = M1. GRGR_ID
    ) AS MEME_CK
    OF FADMIN. METR_TABLE@TO_FUT M1,
    (SELECT M3. HIDDEN, M3. FADMIN EFF_DT. METR_TABLE@TO_FUT M3
    WHERE M3. TYPE IN ('60 ', ' 61')
    AND M3. RESPONSE TO ('117 ', ' 118')
    AND TRUNC (M3. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M3. SYIN_INST = (SELECT MAX (M4. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M4
    WHERE M4. HID = M3. HID
    AND M4. TYPE IN ('60 ', ' 61')
    AND M4. RESPONSE TO ('117 ', ' 118')
    AND TRUNC (M4. EFF_DT) = TRUNC (M3. EFF_DT))
    ) TEMP
    WHERE M1. TYPE IN ('60 ', ' 61')
    AND M1. RESPONSE = "011"
    AND TRUNC (M1. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1. SYIN_INST = (SELECT MAX (M2. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M2
    WHERE M2. HID = M1. HID
    AND M2. TYPE IN ('60 ', ' 61')
    AND M2. RESPONSE = "011"
    AND TRUNC (M2. EFF_DT) = TRUNC (M1. EFF_DT))
    AND M1. HID = TEMP. HID (+)
    AND M1. EFF_DT = TEMP. EFF_DT (+)
    AND TEMP. HIDDEN IS NULL
    --------
    UNION
    --------
    SELECT
    M1. FIRST NAME,
    M1. LAST_NAME,
    M1. HIDDEN,
    M1. EFF_DT,
    M1. CID,
    M1. PLAN,
    (SELECT THE SAME. MEME_CK
    OF FADMIN. EVEN MEME_TABLE@TO_FUT, FADMIN. GRGR_TABLE@TO_FUT CHRISTIAN
    WHERE EVEN. M_HIN = M1. HID
    AND EVEN. GRGR_CK = CHRISTIAN. GRGR_CK
    AND CHRISTIAN. GRGR_ID = M1. GRGR_ID
    ) AS MEME_CK

    OF FADMIN. METR_TABLE@TO_FUT M1
    WHERE M1. TYPE IN ('60 ', ' 61')
    AND M1. RESPONSE TO ('016', '017', '022', ' 023')
    AND TRUNC (M1. METR_TRANS_DT) BETWEEN START_DATE AND END_DATE
    AND M1. SYIN_INST = (SELECT MAX (M2. SYIN_INST)
    OF FADMIN. METR_TABLE@TO_FUT M2
    WHERE M2. HID = M1. HID
    AND M2. TYPE IN ('60 ', ' 61')
    AND M2. RESPONSE TO ('016', '017', '022', ' 023')
    AND TRUNC (M2. EFF_DT) = TRUNC (M1. EFF_DT))
    ) TEMP1;
    END;
    /

    The error:
    ORA-00918: column ambiguously defined
    ORA-02063: preceding the line of TO_FUT
    ORA-06512: at "PROC_ENR_ACC", line 5
    ORA-06512: at line 5

    Good,

    Please can just as a test you try this and see what happens

    WITH variables AS
    (SELECT /*+ MATERIALIZE */
            TO_DATE(:START_DATE) start_date,
            TO_DATE(:END_DATE) end_date
     FROM dual)
        SELECT   TEMP1.FIRST_NAME,
                TEMP1.LAST_NAME,
                TEMP1.HID,
                TEMP1.EFF_DT,
                TEMP1.CID,
                TEMP1.PLAN,
                NVL (
                     (SELECT   'Y'
                      FROM   MEMI_TABLE MEMI
                      WHERE       MEMI.MEME_CK = TEMP1.MEME_CK
                      AND MEMI.TXN_EFF_DT = TEMP1.EFF_DT
                      AND MEMI.PBP = TEMP1.PLAN
                      AND MEMI.MEMI_TXN_CD IN ('AC', 'RE')
                      AND MEMI.MEMI_SEQ_NO = (SELECT   MAX (MI.MEMI_SEQ_NO)
                                              FROM   MEMI_TABLE MI
                                              WHERE   MI.MEME_CK = MEMI.MEME_CK
                                              AND MI.TXN_EFF_DT = MEMI.TXN_EFF_DT
                                              AND MI.PBP = MEMI.PBP
                                              AND MI.MEMI_TXN_CD IN ('AC', 'RE')
                                              AND MI.MEMI_INTF_STS = 03)
                      ),'N') FLAG
       FROM (SELECT   M1.FIRST_NAME,
                      M1.LAST_NAME,
                      M1.HID,
                      M1.EFF_DT,
                      M1.CID,
                      M1.PLAN,
                      (SELECT   MEME.MEME_CK
                       FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                       WHERE       MEME.M_HIN = M1.HID
                       AND MEME.GRGR_CK = GRGR.GRGR_CK
                       AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
             FROM   METR_TABLE M1,
                    (SELECT   M3.HID, M3.EFF_DT
                     FROM   METR_TABLE M3
                     WHERE   M3.TYPE IN ('60', '61')
                     AND M3.REPLY IN ('117', '118')
                     AND TRUNC (M3.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
                     AND M3.SYIN_INST = (SELECT   MAX (M4.SYIN_INST)
                                         FROM   METR_TABLE M4
                                         WHERE   M4.HID = M3.HID
                                         AND M4.TYPE IN ('60', '61')
                                         AND M4.REPLY IN ('117', '118')
                                         AND TRUNC (M4.EFF_DT) = TRUNC (M3.EFF_DT))
                     ) TEMP
             WHERE   M1.TYPE IN ('60', '61') AND M1.REPLY = '011'
             AND TRUNC (M1.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
             AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                 FROM   METR_TABLE M2
                                 WHERE       M2.HID = M1.HID
                                 AND M2.TYPE IN ('60', '61')
                                 AND M2.REPLY = '011'
                                 AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            AND M1.HID = TEMP.HID(+)
            AND M1.EFF_DT = TEMP.EFF_DT(+)
            AND TEMP.HID IS NULL
            UNION
            SELECT   M1.FIRST_NAME,
                     M1.LAST_NAME,
                     M1.HID,
                     M1.EFF_DT,
                     M1.CID,
                     M1.PLAN,
                     (SELECT   MEME.MEME_CK
                      FROM   MEME_TABLE MEME, GRGR_TABLE GRGR
                      WHERE       MEME.M_HIN = M1.HID
                      AND MEME.GRGR_CK = GRGR.GRGR_CK
                      AND GRGR.GRGR_ID = M1.GRGR_ID) MEME_CK
            FROM   METR_TABLE M1
            WHERE   M1.TYPE IN ('60', '61')
            AND M1.REPLY IN ('016', '017', '022', '023')
            AND TRUNC (M1.METR_TRANS_DT) BETWEEN (SELECT start_date FROM variables) AND  (SELECT end_date FROM variables)
            AND M1.SYIN_INST = (SELECT   MAX (M2.SYIN_INST)
                                FROM   METR_TABLE M2
                                WHERE   M2.HID = M1.HID
                                AND M2.TYPE IN ('60', '61')
                                AND M2.REPLY IN ('016', '017', '022', '023')
                                AND TRUNC (M2.EFF_DT) = TRUNC (M1.EFF_DT))
            ) TEMP1;
    END;
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • Cell that contains the formula paste between spreadsheets

    How do I paste the value of a cell that contains the result of a spreadsheet formula has, in a worksheet cell B and still have the operation of the formula? OS 10.11.14, numbers 3.6.1.

    Hi dad,

    It depends on what you mean by "still have the operation of the formula."

    If simply paste you it into a new table in another document, the formula will be stuck more or less intact, but it will not reference all the cells on the original table. If he refers only the cells on the table where he came from, he can refer to these same cells or cells in the same position relative to the new location on the table to which it is glued. You will have probably the best success with her work on the new table, if you copy and then paste the formula itself, rather than the containing cell.

    Repeat what I have not quite clear in the first line: the numbers documents cannot reference cells in other documents of numbers.

    Kind regards

    Barry

  • How to create a formula that highlights the cell that contains the same data that I type in another cell

    Hi, can someone help me make a formula which detects and highlights the value of the cell that contains the items of data that I entered in another cell? Thank you

    resolved to myself

  • Bug: Find/replace does not work if the statement contains the string is too long

    Hello

    in my sequence, I press Ctrl + F to open the Find dialog box and enter a string. All the checkboxes are checked 'Elements for search' and ' limit the search to "is not enabled.

    Now comes the finding it is only announcing the discovery in the main sequence.

    Other places in a sous-suite that are part of a labview vi action setting is not in the list. Also if I open the sequence and I'm looking at this place.

    If I create a comment in the subsequence containing the searchstring, then it is.

    When I open the properties of the action of labview and open the parameter that contains the string and click on check for errors, and then close all and supplementary search then the value lies.

    Is it possible that the variable is too long setting? It's about 200 characters and one thing very nested SationGlobals and the table and the TestSockets. Search string Dees is finally an arrayindex in this grand statement.

    It seems that this is the problem.

    Is this a known bug?

    Solved.

    There was an empty character at the end of the search string...

  • SQL query to search for the line that contains the identifier for each consecutive group

    Hello

    I'm on 11.2.0.3 Enterprise Edition.

    I have a strange request here - do not know if this is possible without going to procedure...

    Given these data of the sample:

    create table test_status (
      status varchar2(10),
      revision_id number,
      revision_timestamp timestamp);
    
    insert into test_status values ('PROPOSED', 1, systimestamp);
    insert into test_status values ('PROPOSED', 2, systimestamp);
    insert into test_status values ('PROPOSED', 3, systimestamp);
    insert into test_status values ('ACTIVE', 4, systimestamp);
    insert into test_status values ('ACTIVE', 5, systimestamp);
    insert into test_status values ('PROPOSED', 6, systimestamp);
    insert into test_status values ('PROPOSED', 7, systimestamp);
    insert into test_status values ('ACTIVE', 8, systimestamp);
    insert into test_status values ('ACTIVE', 9, systimestamp);
    insert into test_status values ('FINISHED', 10, systimestamp);
    insert into test_status values ('FINISHED', 11, systimestamp);
    insert into test_status values ('FINISHED', 12, systimestamp);
    

    Gives me:

    SQL> select *
      2  from test_status
      3  order by revision_id;
    
    
    STATUS     REVISION_ID REVISION_TIMESTAMP
    ---------- ----------- -----------------------------
    PROPOSED             1 25-SEP-14 04.49.47.954000 PM
    PROPOSED             2 25-SEP-14 04.49.47.962000 PM
    PROPOSED             3 25-SEP-14 04.49.47.966000 PM
    ACTIVE               4 25-SEP-14 04.49.47.969000 PM
    ACTIVE               5 25-SEP-14 04.49.47.972000 PM
    PROPOSED             6 25-SEP-14 04.49.47.976000 PM
    PROPOSED             7 25-SEP-14 04.49.47.979000 PM
    ACTIVE               8 25-SEP-14 04.49.47.982000 PM
    ACTIVE               9 25-SEP-14 04.49.47.987000 PM
    FINISHED            10 25-SEP-14 04.49.47.991000 PM
    FINISHED            11 25-SEP-14 04.49.47.996000 PM
    FINISHED            12 25-SEP-14 04.49.48.000000 PM
    
    
    12 rows selected.
    ws selected.
    

    I want to get this result:

    STATUS     REVISION_ID REVISION_TIMESTAMP
    ---------- ----------- ----------------------------
    PROPOSED             3 25-SEP-14 04.49.47.966000 PM
    ACTIVE               5 25-SEP-14 04.49.47.972000 PM
    PROPOSED             7 25-SEP-14 04.49.47.979000 PM
    ACTIVE               9 25-SEP-14 04.49.47.987000 PM
    FINISHED            12 25-SEP-14 04.49.48.000000 PM
    

    Then query the table ordered by Revision_Id, I would get the line containing the highest revision for each consecutive group of status values.  I am able to get the line containing the highest revision for each separate status, value, but I can't deal with the scenario where a state value reappears later.  In the case of the real world, it is a workflow and I need to take into account the fact that an element through the workflow may be redirected to the back front she proceeds forward again.

    Hope it makes sense.

    Thank you

    John

    Hi, John,.

    John OToole (Dublin) wrote:

    Hello

    I'm on 11.2.0.3 Enterprise Edition.

    I have a strange request here - do not know if this is possible without going to procedure...

    ...

    Do not no stinkin' procedure:

    WITH got_grp_id AS

    (

    SELECT the status, revision_id, revision_timestamp

    ROW_NUMBER () OVER (ORDER BY revision_id)

    -ROW_NUMBER () (PARTITION STATUS

    ORDER BY revision_id

    ) AS grp_id

    OF test_status

    )

    SELECT status

    MAX (revision_id) AS revision_id

    MAX (revision_timestamp) DUNGEON (DENSE_RANK LAST ORDER BY revision_id)

    AS revision_timestamp

    OF got_grp_id

    GROUP BY status, grp_id

    ORDER BY revision_id

    ;

    For an explanation of the technique of Difference sets used here, see

    Analytic Question lag and lead and/or

    Re: Ranking of queries

  • Possible to contain variable multiple values?

    Is it possible the variable contains multiple values?

    In fact, I need to hold a multiple value multiple value.

    Procedure:

    Remove employee where empno in (#variable)

    Table Employees: Informix


    variable code #:

    Select relieved_employee_id in the relieved_employees (return multiple values)

    Employees table raised is in SQL SERVER


    any other approach simple approach...


    How can I approach my requriement?

    Hello

    Is it possible the variable contains multiple values?

    Usually variable ODI hold one value returned by a select query

    Procedure:

    Remove employee where empno in (#variable)

    Table Employees: Informix

    variable code #:

    Select relieved_employee_id in the relieved_employees (return multiple values)

    Employees table raised is in SQL SERVER

    any other approach simple approach...

    How can I approach my requriement?

    You can try something simiral to the following

    create an ODI procedure

    Command on the source tab:

    SQL SERVER technology
    Logic diagram should point to your schema that contains the table of relieved_employees

    query: Select relieved_employee_id you relieved_employees EMP_ID

    Target control on the tab:

    Technology: Informix
    Logic diagram should point to your schema that contains the employees table

    query: delete from employee where empno = #EMP_ID

    This will make a loop through all the values returned by your query source and delete target.

    Thank you
    Fati

  • How to filter the records that contains the Spanish character?

    Hello

    I had an obligation to always records based on the Spanish character.

    Kindly guide me for below.

    To filter the records that contains Spanish characters?

    For example, I had a value in the column name as 'Sureshn '.

    My query should return the above folder that contains the Spanish character "N".

    Please do the necessary help / advice on that.

    Thank you
    Orahar

    I don't know what you want, because if you want a? ¢ Analysys and Sureshn, then my previous query is sufficient. However, maybe something like that.

    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH Sample_Data AS (SELECT 'â?¢ Analysys' str FROM DUAL UNION ALL
      2     SELECT 'SureshÑ' str FROM DUAL UNION ALL
      3     SELECT 'ABCD' str FROM DUAL UNION ALL
      4     SELECT 'WXYZ' str FROM DUAL UNION ALL
      5     SELECT 'Saubhik' str FROM DUAL
      6     )
      7     SELECT str AS "Contains other than English" from Sample_Data
      8*    WHERE REGEXP_LIKE(str,'[^[a-z,A-Z,0-9]]*')
    SQL> /
    
    Contains other
    --------------
    â?¢ Analysys
    SureshÑ
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH Sample_Data AS (SELECT 'â?¢ Analysys' str FROM DUAL UNION ALL
      2     SELECT 'SureshÑ' str FROM DUAL UNION ALL
      3     SELECT 'ABCD' str FROM DUAL UNION ALL
      4     SELECT 'WXYZ' str FROM DUAL UNION ALL
      5     SELECT 'Saubhik' str FROM DUAL
      6     )
      7     SELECT str AS "Contains English" from Sample_Data
      8*    WHERE NOT REGEXP_LIKE(str,'[^[a-z,A-Z,0-9]]*')
    SQL> /
    
    Contains Engli
    --------------
    ABCD
    WXYZ
    Saubhik
    
  • How to lock a row containing a LOB value?

    I use a process called "lob_replace":

    CREATE OR REPLACE
    PROCEDURE lob_replace
    (
    p_lob IN OUT CLOB,
    p_what IN VARCHAR2,
    p_with IN VARCHAR2)
    AS
    n NUMBER.
    BEGIN
    n: = dbms_lob.instr (p_lob, p_what);
    IF (NVL (n, 0) & gt; 0) THEN
    DBMS_LOB. Copy (p_lob, p_lob, dbms_lob.getlength (p_lob), n-LENGTH (p_with), n-LENGTH (p_what));
    DBMS_LOB. Write (p_lob, (p_with) LENGTH, n, p_with);
    IF (LENGTH (p_what) & gt; Length (p_with)) THEN
    DBMS_LOB. Trim (p_lob, dbms_lob.getlength (p_lob)-((p_what)-(p_with) LENGTH LENGTH));
    END IF;
    END IF;
    END;
    /

    I'm testing this procedure:

    DECLARE
    a_lob CLOB.
    CURSOR my_cur
    IS
    SELECT b.data
    OF h_content_mgt m.
    h_articlemgr am,
    h_clob b
    WHERE m.menu_id = 1915
    AND m.type = 1
    AND $m.name = 'WWWSITE_CORPCITIZEN_OVERVIEW_HTML. '
    AND am.id = m.content_id
    AND b.id = am.clob_id;
    BEGIN
    OPEN my_cur.
    SEEK my_cur INTO a_lob;

    lob_replace (a_lob, 'Hello', 'Goodbye');
    CLOSE My_cur;
    END;
    /

    Each time, I get the following results:

    Error report:
    ORA-22920: the row containing the LOB value is not locked
    ORA-06512: at "SYS." DBMS_LOB", line 429
    ORA-06512: at "T_DB. LOB_REPLACE', line 11
    ORA-06512: at line 18 level
    22920 00000 - "the row containing the LOB value is not locked.
    * Cause: The row containing the LOB value must be locked before updating the LOB value.
    * Action: Lock the row containing the LOB value before updating the LOB value.

    I'm new to PL\SQL and I use the book by Feuerstein Oracle PL/SQL Programming . How to lock a row containing a LOB value?

    Try this

    Specify the clause
    in select it.
    UPDATE

    CURSOR toys_cur IS
       SELECT name, manufacturer, preference_level, sell_at_yardsale_flag
         FROM my_sons_collection
        WHERE hours_used = 0
          FOR UPDATE;
    

    Published by: alvinder on March 5, 2009 10:12

Maybe you are looking for