Replace value in CLOB containing 2400-3000 bytes of Base64 encoded text

Hi,
I need to replace a part of a base64 encoded string stored in a CLOB.
Basically what I need to do is to:
- Get data from CLOB
- Base64 decode
- Replace a part of the string
- Base64 encode
- Put data back into CLOB
I have tried using the UTL_ENCODE.BASE64_ENCODE (and DECODE). These functions uses and supplies RAW-values, so to convert to RAW I did UTL_RAW.CAST_TO_RAW (and _VARCHAR2 to go back).
I've found that the RAW-type is limited to 2000 bytes (http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/03_types.htm#10764), but the messages I'm trying to modify is from about 2400 to about 3000 bytes.
Is there any way around this problem?
Thanks in advance,
Jan

The link you provided states, pl sql variable can be up to 32767 bytes , only database column can be up to 2000 bytes. For processing you describe, i suggest, you are interested only in plsql raw variables, not in the database columns ( which are clob's).
Best regards
Maxim

Similar Messages

  • NULL Value in CLOB

    Hi,
    I am calling a stored procedure with CLOB parameter and I need to pass NULL value to CLOB paramter through ADO in VC++.
    My problem is when I send CLOB value as NULL a single Digit Binary value is inserted.I am using SAFEARRAY and AppendChunk mechanism to create CommandParameters for Storedprocedure.
    Any suggestion where i am going wrong...
    SDG

    I've never worked with CLOB's before. But, I've put a great deal of effort into trying to pass a null value to Oracle from ADO. Finally, I just gave up and simply specified other fields but not the one I wanted to be null. The end result is that the field contains null after the row is inserted. I realize you'd like a better answer, but, I thought I'd throw in my $0.02 anyhow.
    Good luck.

  • Failure doing very simple "replace value of node ..." on an attribute

    Hello
    (Working on DBXML 2.5.13. on Windows Server 2003)
    With the following document in a container:
    <village xmlns="carrapateira.info">
    <pictures quantity="124"/>
    </village>
    When trying to replace the value of the attribute 'quantity' with the dbxml shell, using the following commands:
    dbxml> setn "" "carrapateira.info"
    Binding -> carrapateira.info
    dbxml> cquery /village/pictures
    1 objects returned for eager expression '/village/pictures'
    dbxml> print
    <pictures xmlns="carrapateira.info" quantity="124"/>
    dbxml> contextQ @quantity
    1 objects returned for expression '@quantity'
    dbxml> print
    {}quantity="124"
    dbxml> contextQ "replace value of node . with 222"
    stdin:7: contextQuery failed
    I always get that last message, whatever I try.
    What is fundamentally wrong in my approach? Or is this a shell problem?
    Thank you
    Koen

    George
    I have run some tests, of which a Java program. The problem persisted.
    I re-created the container completely and it now works. I have no clue why I had that problem and what solved it.
    I will keep you informed if this error repeats.
    I have another problem with XQuery Update which I will post in another thread later.
    Thank you very much,
    Koen

  • Increase the character value of CLOB

    Hi,
    I am working in oracle9i and linux 2.4 .In that for a column i used CLOB datatype .But if i give more than 4000 characters it will not inserted. when i open the table and see means it doesnt show the value of CLOB datatype.Please tell me how to increase the size of CLOB datatype upto the maximum level of 4gb.
    please send me the sql query .
    immm
    Regards,
    Gobi.

    You can't specify a limit for a CLOB. A CLOB will always support multiple GB of data. A CLOB will never be limited to 4000 bytes. If you are seeing a 4000 byte limitation, that is most likely a problem in your code.
    Adding space to a tablespace requires adding space to an existing data file or adding a new data file to a tablespace. That doesn't sound like what you're trying to do here.
    Justin

  • Replaced value is not getting relected in IDOC segment field

    Hi,
    Need your help for the below issue.
    I am replacing the PO # with Delivery Doc # . But the replaced value is not getting reflected in the IDOC segment field(e1bp2017_gm_item_create-po_number.).
    Function Module  which I am using is IDOC_INPUT_MBGMCR as a copy.
    Here is my code given below:
    SELECT
                SINGLE vbeln
                  INTO lx_vbeln
                  FROM lips
                 WHERE vgbel EQ e1bp2017_gm_item_create-po_number.
    Move lx_vbeln TO e1bp2017_gm_item_create-po_number.
    MOVE-CORRESPONDING e1bp2017_gm_item_create
                   TO goodsmvt_item.
    Then this is passed as  TABLE in "BAPI_GOODSMVT_CREATE".
    Please do the needful.

    Hi Dheepa,
    Check it in debug whether the filed is empty or having po#, when ur code is executed for the replacement. if it is empty, po# is populated after ur code. in this case you need to write the code in suitable place.
    Reddy

  • Find and replace value in Delimited String

    Hi All,
    I have a requirement, where i need to find and replace values in delimited string.
    For example, the string is "GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~". The 4th column gives month and year. I need to replace it with previous month name. For example: "GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~". I need to do same for last 12 months.
    I thought of first devide the values and store it in variable and then after replacing it with required value, join it back.
    I just wanted to know if there is any better way to do it?

    for example (Assumption: the abbreviated month is the first occurance of 3 consecutive alphabetic charachters)
    with testdata as (
    select 'GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~' str from dual
    select
    str
    ,regexp_substr(str, '[[:alpha:]]{3}') part
    ,to_date('01'||regexp_substr(str, '[[:alpha:]]{3}')||'2013', 'DDMONYYYY') part_date
    ,replace (str
             ,regexp_substr(str, '[[:alpha:]]{3}')
             ,to_char(add_months(to_date('01'||regexp_substr(str, '[[:alpha:]]{3}')||'2013', 'DDMONYYYY'),-1),'MON')
    ) res
    from testdata
    STR
    PART
    PART_DATE
    RES
    GL~1001~157747~FEB-13~CREDIT~A~N~USD~NULL~
    FEB
    02/01/2013
    GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~
    with year included
    with testdata as (
    select 'GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~' str from dual
    select
    str
    ,regexp_substr(str, '[[:alpha:]]{3}-\d{2}') part
    ,to_date(regexp_substr(str, '[[:alpha:]]{3}-\d{2}'), 'MON-YY') part_date
    ,replace (str
             ,regexp_substr(str, '[[:alpha:]]{3}-\d{2}')
             ,to_char(add_months(to_date(regexp_substr(str, '[[:alpha:]]{3}-\d{2}'), 'MON-YY'),-1),'MON-YY')
    ) res
    from testdata
    STR
    PART
    PART_DATE
    RES
    GL~1001~157747~JAN-13~CREDIT~A~N~USD~NULL~
    JAN-13
    01/01/2013
    GL~1001~157747~DEC-12~CREDIT~A~N~USD~NULL~
    Message was edited by: chris227 year included

  • Custom Rule - Problem in passin values From Rule Container to WF Container?

    Hi Guys,
    I am having hard time passing values back from my custom rule. I have created a custom rule to determine the agents in PFAC which takes in the Person number as import element of container. It determines the Manager as agent and I am passing Managers Person Number back to workflow. If he dont approve the Request then it will be passed to his boss. In this case I will pass this imported Mangers Person number back to rule so that his boss will be determined as agent. I  have created ZRULE function module. I am passing value back from Rule container to Workflow Container using following code.
    swc_set_element ac_container 'SUPERPERNR'  lf_super_pernr.
    I have created a element SUPERPERNR on rule container and workflow container as well .The problem is in the Rule container I am not able to create SUPERPERNR as export parameter. The tick mark is grayed out and there is no option for setting it as export.
    My question is do I have create a Export element on Rule container or Not? If i just write the code
    ( swc_set_element ac_container 'SUPERPERNR'  lf_super_pernr ) will it set the value in WF container? In my case it is not setting. I have to bind the values from rule container to WF container and if My rule container element is not allowing me to click the tick mark as export how can i pass value of of rule container back to WF Container?
    Please help me guys.
    Thanks,
    Manish.

    Hi Manish,
         Same scenario I have developed in my system. This all steps I did in my system.
    1) Created a Z function module which takes import parameter (Parameter name = 'EMP') in the
        format 'US100123'.
    2) This in turn fetches back the supevisor or boss as an export parameter (Parameter name = 'BOSS') in
         the format 'US100245'.
    3) This function module is attached to a BUS object(SWO1).
    4) While attaching this function module to BUS object you need not do any manual coding it is done
        automatically.
    5) Implement, release and generate this BUS object.
    6) Create a new variable in your workflow (Parameter name = 'ZSUPERVISOR') for storing the value
        which is returned by the Z method.
    7) Create a new task.
    8) Put in your BUS object name, then your Z method name, select background processing checkbox.
    9) Press save, it will ask for transfer of missing elements, select yes.
    10) Then you will see a green button below your Z method name click on it.
    11) Top portion contains your Z method variables, below to it you have the import parameter window in
          this window you should have &EMP& -> &EMP&., below to import parameter window you have
          export parameter window in this window you should have &BOSS& <- &BOSS&. (This is method
          binding).
    12) Now click on enter button then click on back button it will generate the task binding automatically
         just press yes.
    13) Now click on binding exist button.
    14) Here you have the Workflow container variables as well as the system container variables.
    15) In the import parameter window left portion is for your workflow variables and right portion is for your 
          method variables. In my case i had sent workflow initiator and fetched his supervisor. The Import
          parameter binding was &WF_INTIATOR& -> &EMP&. and the export parameter binding part was
          &ZSUPERVISOR& <- &BOSS&.
    16) Save the task and run the workflow.
    Regards.
    Vaibhav Patil.

  • Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?

    Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?
    I have a cluster with 90 values..  ninety!  yes that many.
    Change one bloody value and the prototype changes in the TestStand step...  Reload the prototype and guess what happens??!!??
    All the bloody values get reset to defaults!  AAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHH!
    If it was in one place, I could survive the ordeal.  But I have to change bloody prototypes in many places!!!!
    more AAAAAAAAAAARRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!
    I can't even copy the bloody values!!!!!!!  AAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!
    Are there any tricks that I am not aware of, or have forgotten over the years, or...  ...   something??!!??!???!!
    If there are none, I will have to post an improvement to TestStand..  I should mention I am using an older version (4.1).

    Hmmmmmmmmmmmmmmmm,
    I am not not very famous with LV and its cluster types.
    So no idea if this works (it works for DataTypes updates very well and a LV cluster is Data Type so.... maybe)
    Make a copy of the step that has to be modified to an new sequencefile. 
    Make modifications the in the copy.
    Now you should have the same DataType Name but other contents in the container. Save it.
    Normally there should be a message box that tells you that version has been incremented. - Accept it.
    Set in StationOptions-File "Allow Automatic ...." to Never.
    Open original sequencefile. Now the there must be a type conflict. Accept/Apply to all  "Use Current Loaded.."
    You have updated the type.....
    Hope this worked,
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • [svn] 1751: Bug: BLZ-174 - MessageClient.testMessage() is incorrectly doing a string compare for the subtopic header of an inbound message against the subtopic value (which may contain wildcards) that the Consumer is using.

    Revision: 1751
    Author: [email protected]
    Date: 2008-05-15 14:21:43 -0700 (Thu, 15 May 2008)
    Log Message:
    Bug: BLZ-174 - MessageClient.testMessage() is incorrectly doing a string compare for the subtopic header of an inbound message against the subtopic value (which may contain wildcards) that the Consumer is using.
    QA: No - customer verified the fix.
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-174
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageClient.java
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/MessageService.java

    If you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
    So, I ended up with something like:
    <c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
    <metadataTypes count="1">
      <metadataType name="MyMetaType" .../>
    </metadataTypes>
    <futureMetadata count="1" name="MyMetaType">
      <bk>
        <extLst><ext
    uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
      </bk>
    </futureMetadata>
    <cellMetadata count="1">
      <bk><rc
    t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
    </cellMetadata>
    Hope this helps. 

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • Can we set a default value for the container variable in BPM?

    Can we set a default value for the container variable.?
    Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?

    Hi
    Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
    In Container Operation Step Assign value and Use Expression to
    Increase or Decrease Valus according to your operation.
    look Pattern 4 in this blog to understand Container Operation
    /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1

  • Refresh the values in multiline container

    Hi All,
    Can any one help me on this.
    How to refresh the values in  multiline container of  workflow.
    Any function module are available to refresh the multiline container .
    Thanks,
    Harsha

    Hi,
    What do you mean by refresh?
    Have you tried SAP_WAPI_WRITE_CONTAINER? Always check workflow functions SAP_WAPI for any workflow functionality. If you don't find one for your purposes within SAP_WAPI*, the functionality probably cannot be achieved (at least not easily).
    Regards,
    Karri

  • Base Value 03 = Replacement Value

    Hi,
    I would like to know what does this base value 03 = Replacement Value. We always use 01 & 24 for Acquisition & Net Book value respectively. This can be found in the Multilevel method. Appreciate your answers.
    rgds,
    jay

    Hi Jay,
    The current valuation of an asset, which is different from the acquisition and production costs.
    The replacement value of an asset can result, for example, from the following influences:
    - Price changes because of inflation
    - Price changes because of technical advancement
    Regards Bernhard

  • HowTo: Replace values in Entity, best practice

    I was reading jsr-220 and now I have a question.
    What is the best practice to replace values in an entity?
    For example I have an entity Person:
    @Table(name = "Person", schema = SCHEMA)
    public class Person{
         @Id
         @GeneratedValue
         private int id;
         private String sourceUri;
           @ManyToMany(fetch=FetchType.EAGER, cascade={CascadeType.MERGE, CascadeType.REFRESH, CascadeType.PERSIST} )
         private List<Representative> representatives;
         @OrderBy("date")
         @ManyToMany(fetch=FetchType.EAGER, cascade={CascadeType.ALL}, mappedBy="person")
            private List<PersonAccessCounter> counter;
         @OneToMany(fetch=FetchType.EAGER, cascade={CascadeType.ALL}, mappedBy="person")
         private List<EducationLevel> educationLevels;
          //some other fileds + getters/setters
    }As you can see, my Person has autoGenerated id. But also it has other "unformal" identity field: sourceUri
    Imagine such situation:
    I've persisted a Person. While system was in use, it's id points to some other entities. So I can't loose it.
    Then, my special crawler gathered new info about person.
    Using sourceUri of Person(crawler has provided it) I can select already persisted person from DB.
    Now, my task is to completely remove some fields (this data must disappear from DB, totally, no orphaned links) from persisted person and replace them with values from new person gathered by crawler.
    What's better?
    1. Find persitedPerson using sourceUri
    2. Replace some fields of persitedPerson with new values taken from crawledPerson.
    3. em.merge(persistedPerson)
    OR
    1. Find persitedPerson using sourceUri.
    2. Set some fields of persitedPerson to NULL
    3. Merge persitedPerson
    4. Set new values to persitedPerson taken from crawledPerson.
    3. em.merge(persistedPerson)
    Seems like the first variant is enough. It will fork fine if annotations were set correctly (cascade={CascadeType.ALL} and other)
    Edited by: Holod on 10.11.2008 16:32
    Edited by: Holod on 10.11.2008 16:46

    I was reading jsr-220 and now I have a question.
    What is the best practice to replace values in an entity?
    For example I have an entity Person:
    @Table(name = "Person", schema = SCHEMA)
    public class Person{
         @Id
         @GeneratedValue
         private int id;
         private String sourceUri;
           @ManyToMany(fetch=FetchType.EAGER, cascade={CascadeType.MERGE, CascadeType.REFRESH, CascadeType.PERSIST} )
         private List<Representative> representatives;
         @OrderBy("date")
         @ManyToMany(fetch=FetchType.EAGER, cascade={CascadeType.ALL}, mappedBy="person")
            private List<PersonAccessCounter> counter;
         @OneToMany(fetch=FetchType.EAGER, cascade={CascadeType.ALL}, mappedBy="person")
         private List<EducationLevel> educationLevels;
          //some other fileds + getters/setters
    }As you can see, my Person has autoGenerated id. But also it has other "unformal" identity field: sourceUri
    Imagine such situation:
    I've persisted a Person. While system was in use, it's id points to some other entities. So I can't loose it.
    Then, my special crawler gathered new info about person.
    Using sourceUri of Person(crawler has provided it) I can select already persisted person from DB.
    Now, my task is to completely remove some fields (this data must disappear from DB, totally, no orphaned links) from persisted person and replace them with values from new person gathered by crawler.
    What's better?
    1. Find persitedPerson using sourceUri
    2. Replace some fields of persitedPerson with new values taken from crawledPerson.
    3. em.merge(persistedPerson)
    OR
    1. Find persitedPerson using sourceUri.
    2. Set some fields of persitedPerson to NULL
    3. Merge persitedPerson
    4. Set new values to persitedPerson taken from crawledPerson.
    3. em.merge(persistedPerson)
    Seems like the first variant is enough. It will fork fine if annotations were set correctly (cascade={CascadeType.ALL} and other)
    Edited by: Holod on 10.11.2008 16:32
    Edited by: Holod on 10.11.2008 16:46

  • SAP ECC 6.0 -- Business Connector / Error:Input values do not contain IDOC

    Hello,
    We have a scenario R/3 4.6C ORDRSP to the SAP business connector which is running fine. When I send the first IDoc the routing roule is created automatically and it can be adapted.
    Now we switched to the ECC 6.0 system but I get the following error message:
    "Input values do not contain IDOC" and no routing roule is created either. The status of the IDoc is 03.
    Do you have any idea what the problem could be? Could it have anything to do with ECC 6.0?
    Thank you for your support.

    Hi,
    I hope you must have added new SAP ECC system under SAP tab on SAP BC page.
    To check exact error information:
    FIrst open SAP BC page in browser (http://localhoet:port)
    Go to transaction tab, and there under TID box, enter transaction id corresponding to SM58. And check what it says.
    About routing rule:
    BC automatically creates routing rule, if not you can edit and direct them to correct process flow, or you can create new routing rule, as BC need routing rule to move IDOC ahead.
    Please let us know further about error information, so that we can help you further.
    Divyesh

Maybe you are looking for

  • Want a single entry for alarms in the "AlarmsWindow"

    Hi, I have an alarm in Lookout that comes in fairly frequently.  This is normal for this alarm, it comes in and out of alarm by itself.  After the alarm clears itself it becomes blue (the unacknowledged color).  When the alarm goes back into alarm it

  • Update firmware to use iTunes with multiple speakers

    I updated iTunes today to the new version 6.02.23 mainly because I was anxious to use the new "multiple speakers" feature. When I went to try it, though, I found no option...just My Computer and AirTunes. All I had to do was update the firmware on my

  • Cisco prime infrastructure not detect IP address of clients

    hi all, I have Cisco Prime infrastructure 1.2 and when move to monitor >> clients tab it lists me all the clients in my network but their IP address list estates "not detected" ? please any advice? I appreciate your kindly support.

  • Developing hierarchy !!

    Hello SDN, Could somebody please help or guide me to know how can i develop a hierarchy to search for profit centre (Customer Fields)? i need to develop something like we have in SAP GUI in R/3 in t-code KE53 for profit centre. even the FM used in th

  • Labview and TI DSPs ?

    Hi, I bought (ouch.. that was years ago) a TMS320C5X ISA EVM. After having used C5X assembly to write DSP applications, I was wondering if this card could be used with NI LabVIEW (which I don't actually use though I would *really* be interested in sw