Hash value and duplicate value

Hi,
1. I get hash value in my report for the fields which has zero value. So how can show zero value instead of hash value.
2. Then i do have duplicate values for few fields and for this duplicate value report is showing no value. And i want to display value of the fields even if there is dupliacte values.
How is this two options possible.
Regards,
Rohini

Hi Bhanu & Anil,
This BEx has taken away my peace from last few days. But iam enjoying with it.
Anyways.. here is the example
Shopping Cart no|Creation date|end date|start time|endtime
1000574 | 06/12/2005 | 06/14/2005 | 09:19:02 | 15:39:03
        | 06/15/2005 | 06/21/2005 | 17:34:06 | 18:00:00
        |            |            | 18:01:00 | 18:15:00
1000678 | #          | #          | #        | #  
Here u can see third record of SC 1000574 has same start date and end date thus that fileds remain blank.
And SC 1000678 is an example when fileds value is blank and it gives hash vaue
Regards,
Rohini

Similar Messages

  • Avoiding null and duplicate values using model clause

    Hi,
    I am trying to use model clause to get comma seperated list of data : following is the scenario:
    testuser>select * from test1;
    ID VALUE
    1 Value1
    2 Value2
    3 Value3
    4 Value4
    5 Value4
    6
    7 value5
    8
    8 rows selected.
    the query I have is:
    testuser>with src as (
    2 select distinct id,value
    3 from test1
    4 ),
    5 t as (
    6 select distinct substr(value,2) value
    7 from src
    8 model
    9 ignore nav
    10 dimension by (id)
    11 measures (cast(value as varchar2(100)) value)
    12 rules
    13 (
    14 value[any] order by id =
    15 value[cv()-1] || ',' || value[cv()]
    16 )
    17 )
    18 select max(value) oneline
    19 from t;
    ONELINE
    Value1,Value2,Value3,Value4,Value4,,value5,
    what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
    thanks,
    Edited by: orausern on Feb 19, 2010 5:05 AM

    Hi,
    Try this code.
    with
    t as ( select substr(value,2)value,ind
            from test1
            model
            ignore nav
            dimension by (id)
            measures (cast(value as varchar2(100)) value, 0 ind)
            rules
            ( ind[any]=  instr(value[cv()-1],value[cv()]),
            value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
                                               and ind[cv()]=0     THEN ',' || value[cv()] END      
    select max(value) oneline
    from t;
    SQL> select * from test1;
            ID VALUE
             1 Value1
             2 Value2
             3 Value3
             4 Value4
             5 Value4
             6
             7 value5
             8
    8 ligne(s) sélectionnée(s).
    SQL> with
      2   t as ( select substr(value,2)value,ind
      3          from test1
      4          model
      5          ignore nav
      6          dimension by (id)
      7          measures (cast(value as varchar2(100)) value, 0 ind)
      8          rules
      9          ( ind[any]=  instr(value[cv()-1],value[cv()]),
    10          value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
    11                                             and ind[cv()]=0     THEN ',' || value[cv()] END 
    12          )
    13        )
    14   select max(value) oneline
    15   from t;
    ONELINE
    Value1,Value2,Value3,Value4,value5
    SQL>

  • Differences between sql id and hash value

    Hello All,
    I have read the following from Tom's web site. Ask Tom "What is a child cursor"
    Dear Tom,
    Appreicate your services to the oracle community.
    What is the column combinations which is leading to SQL_ID.  is SQL_ID = hash_value + address ?  Regards Lalitha
    Followup   August 28, 2012 - 1pm UTC:
    sql id = hash( sql statement )
    hash value is maintained for backward compatibility, sqlid is a new, better hash.
    I am just wondering what did he mean when he said "hash value is maintained for backward compatibility, sqlid is a new, better hash."?
    If both of them are the output of hash function, could someone please explain clearly what is the differences between SQL_ID and HASH_VALUE?
    Thanks for your help.

    SQL_ID is just a fancy representation of hash value | Tanel Poder's blog: IT & Mobile for Geeks and Pro…
    Regards
    Jonathan Lewis

  • Hash Values in BODS

    Hello Experts,
    I am a newbie to Data Services. We are using Data Services XI 3.0 Premium. I was given a task to identify duplicates by using hash values so that there is no loss of data and at the same time we can identify the duplicates. I was able to find that functionality in Oracle. But client wants the functionality in Data Services, before it loads into Oracle. I looked everywhere, couldn't find the right information. Help would be really appreciated. Please let me know if any further information needed.
    Thank you for going through my post. I really appreciate your time.
    Thank you,
    Sandeep.

    Hi
    As per your statement "to identify duplicates considering bunch of columns together" you can implement logic using BODS built in function "gen_row_num_by_group"
    create new column in query transformation say "Dup_find" with data type int
    write logic in mapping tab as below
    gen_row_num_by_group( field1 ||  field2 || field3 || ....... ) and drag the subsequent fields in group by tab as well
    the above logic will return the row ids per group
    example
    FIELD1     FIELD2     FIELD3     DUP_FIELD
    A                    B                    C                    1
    A                    B                    C                    2
    A                    B                    C                    3
    D                    E                    F                    1
    G                    H                    I                     1
    take two query transformations in parallel
    In first query transformation, you have to filter the duplicate records using "WHERE" clause
    WHERE DUP_FIELD > 1 ( map this to one temp table to catch duplicate records )
    in second  query transformation, you can consider only unique records using "WHERE" clause
    WHERE DUP_FIELD = 1 ( map this to second temp table to catch unique records )
    hope it helps in your requirement
    Thanks
    Ahalya

  • Crystal 2008 not showing a Hash Value correctly

    We are using a SQL database with Crystal 2008.
    The Problem:
    We are having some issues displays the hash value of a varchar(20) in our crystal reports. Every value in the field is either going to be a Null or 20 characters long. We are getting varying length characters, when it should not. And it is showing blank for some of the records when the double check shows that they exist.
    What can we do to make Crystal 2008 show these fields correctly? I can use a command but that is a temporary solution for a reoccuring problem with the field in question.
    Thank you for your time!
    Dan

    We use EncryptbyCert() function in SQL. It returns only a value that is either null or 20 characters long. That is all I am able to give for information about that.

  • Delete hash value row in Bex report output

    Hi All,
    Can anybody suggest how can i remove hash value(not assigned) row in Bex report out put.
    my report looks like this:
    rows
    project position
      (hierarchy)
      WBS element
        (hierarchy)
        Order
    For each Project position and WBS element hierarchies, i did supress the " not assigned" tick in hiearchy attributes in RSH1.
    but in colums i have budget as one of the column.
      this budget comes from project position nodes to last node of WBS element but not in order, for order it will be blank but after this order a new row coming up with bold" Not assigned" with that budget amount against this not assigned.
    My problem is how can i get rid of this not assinged entire row. I search so many links in SDN, they talk about just to replace the not assigned  to some other value as blank or something like that.
    Please suggest me how can i get rid of this.
    i did tried to restrict Order with "#" but then the whole budget column getting blank.
    Regards
    Robyn.

    HI Arun,
    As i mentioned earlier, i have gone through these links, they just talk about replacing # value or Not Assigned  to some other value or blank.
    my issue is i need to get rid of that entire row.
    when i drop proj def hierarchy ,then wbs hierachy starts, sometimes at the end of wbs hierarchy i get row with #
    and sometimes after wbs hierarchy ,then order row then # row is coming.
    even after i tick supress unassigned nodes in both Projdef and wbs hierarchies.
    i am not supposed to simply replace #( not assigned) symbol or text with some other symbol or text ( thats what they discussing in these links).
    i created that macro they said in those links but its just deleting # symbol to blank not the whole row.
    hope i made my issue clear.
    i have seen so many other links as well
    [Re: Bex macros]
    Regards
    Robyn.

  • Hash values coming in extraction,how to rectify

    Dear All,
    During Extraction we are getting hash values,for which our extraction is getting failed,we manually edit the psa and doing the load from PSA to Cube,is there a way where we can restrict this hash values
    so our extraction din failed,in rskc all values are maintaide including hash.
    pls suggest.
    Thanks,
    Sapta

    Hi,
         Characters whose hexadecimal value is 00-1F these will be displayed as # and we think this is maintained in RSKC and even then the load is failed... the invalid characters are displayed as # and there by u need to stop them . Even With ALL_CAPITAL u will not be able and it wont be good to use ALL_CAPITAL in rskc.  this is part of code which i used to eliminate such cases.........and this is absolutely working fine... it will be invalid characters....
    DATA: L_S_ERRORLOG TYPE RSSM_S_ERRORLOG_INT,
             G_ALLOWED_CHAR(300) TYPE C.
    IF G_ALLOWED_CHAR IS INITIAL.
    CALL FUNCTION 'RSKC_ALLOWED_CHAR_GET'
    IMPORTING
    E_ALLOWED_CHAR = G_ALLOWED_CHAR.
    ENDIF.
    concatenate G_ALLOWED_CHAR 'abcdefghijklmnopqrstuvwxyz£Ö@[]' into G_ALLOWED_CHAR.
    in the above concatentate statement add all the characters which u want to allow apart from the allowed characters .....**
    do.
    if not RESULT co g_allowed_char.
    shift RESULT+sy-fdpos left.
    else.
    exit.
    endif.
    enddo.
    Here result is the field for which say invalid characters are coming ...above is the code to remoce invalid characters from the field Result.....
    Regards
    vamsi

  • Calculating HASH values with WCCP

    Ok, I'm just not getting the HASH calculations.  Can somebody please explain how the HASH values translate into subnets?
    Thanks,
    Patrick

    Patrick,
    I'm not a 100% sure of the algorithm used to determine what subnet is assigned to which WCCP bucket.  However, I do know it involves an XOR of various L3 and L4 header fields in the packet.
    To view the how the calculation has been performed you can run the hidden IOS command
    show ip wccp hash <dst-ip> <src-ip> <dst-port> <src-port>
    Router# show ip wccp 61 hash 0.0.0.0 10.88.81.10 0 0
    WCCP hash information for:
        Primary Hash:   Src IP: 10.88.81.10
      Bucket:   9
        WCCP Client: 10.88.81.12
    Router#
    Hope this helps,
    Mike Korenbaum
    Cisco WAAS PDI Help Desk
    http://www.cisco.com/go/pdihelpdesk

  • Calculating hash values for really big files

    I am using the following code to calculate the hash values of files
    public static String hash(File f, String algorithm)
                throws IOException, NoSuchAlgorithmException {
            if (!f.isFile()) {
                throw new IOException("Not a file");
            RandomAccessFile raf = new RandomAccessFile(f, "r");
            byte b[] = new byte[(int) raf.length()];
            raf.readFully(b);
            raf.close();
            MessageDigest messageDigest = MessageDigest.getInstance(algorithm);
            messageDigest.update(b);
            return toHexString(messageDigest.digest());
        }Now the problem is, for really big files, 100 MB or over, I get an OutOfMemoryError.
    I have used the -Xms and -Xms options to increase the JVM heap size, and untimately made it to work. However, I think this is lame and there is also a limit to the -Xmx option.
    Is there any other way I can calculate the hash values of these really big files?
    Thanks a lot in advance.

    why do u open the file the way u do ?
    why to u upload ALL the file AT ONCE into the memory ?
    i would do it like this:
    FileInputStream fis = new FileInputStream (f);
    int fileSize = f.available();
    byte buffer[] = new byte[1000];
    MessageDigest messageDigest = MessageDigest.getInstance(algorithm);
    for(int read = 0;read < fileSize;read +=1000;)
    if(fis.available() > 1000)
    fis.read(buffer, read, 1000);
    else if(fis.available() > 0)
    fis.read(buffer, read, fis.available());
    else
    break;
    messageDigest.update(b);
    fis.close();
    return toHexString(messageDigest.digest());

  • Problem w. hash-value calculation for CLOB with DBMS_UTILITY.GET_HASH_VALUE

    Hello Oracle-Experts,
    I had to calculate hash-values for a corrorponding CLOB-field (see my post 'Buffer to small ORA-22835 error after migration from 9i to 10g' in forum 'database general').
    I calculate the hash-values with the DBMS_UTILITY.GET_HASH_VALUE, e.g:
         SQL> SELECT DBMS_UTILITY.GET_HASH_VALUE(LPAD('X',3998,'X'),1,POWER(2,30)) FROM dual;
         DBMS_UTILITY.GET_HASH_VALUE(LPAD('X',3998,'X'),1,POWER(2,30))
         1053896858
    Because the calculation failed with 10g I had taken a closer look at this function and realised the following results:
    VALUE                                             DBMS_UTILITY.GET_HASH_VALUE(VALUE,1,POWER(2,30))
    LPAD('X',3997,'X') 557754150
    LPAD('X',3998,'X')      1053896858
    LPAD('X',3999,'X')          888036750
    LPAD('X',4000,'X') 162062978
    LPAD('X',4001,'X')          162062978
    LPAD('X',4002,'X') 162062978
    LPAD('X',10000,'X') 162062978
    It seems to me that I can't use this function for clob-values with a length greater than 4000 characters because of collisions. Maybe someone with experience
    can give me a hint to handle this problem. Worst case i had to write my own CLOB_2_HASH function.
    TIA + Best regards
    Matthias

    Yeah, the 4000-byte limit would be a factor in working CLOBs. I if you only had 4000 bytes you would not need a CLOB in the first place.
    If you don't find something better then writing your own function might be the thing to do.

  • Who will generate hash value

    Hi Everyone,
    I need some information about hash value getting generated for every new SQl
    I think that PGA will generate hash value every time
    thanks in advance
    Shareef

    912856 wrote:
    Hi Everyone,
    I need some information about hash value getting generated for every new SQl
    I think that PGA will generate hash value every time
    PGA would "generate" the value? Isn't it that the hash-values are generated by hash functions ? If you want information about how the parsing works, please read,
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/optimops.htm#i21299
    And,
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/sqllangu.htm#CNCPT1740
    Aman....

  • The selected signed file could not be authenticated. The file might have been tampered with or an error might have occured during download. Please verify the MD5 hash value against the Cisco Systems web site

    I am trying to load any 9.0.3 firmware on my UCM 5.0.4.2000-1 server. Every newer firmware I load throws the following error. I have verified the MD5 is correct and also downloaded the file several times with the same result. I can load the same firmware file on another UCM server and it loads fine. Any ideas?
    Thanks in advance!
    Error Message:
    The selected signed file could not be authenticated. The file might have been  tampered with or an error might have occured during download. Please verify the  MD5 hash value against the Cisco Systems web site:  9b:b6:31:09:18:15:e7:c0:97:9f:e6:fe:9a:19:94:99
    Firmware File: cmterm-7970_7971-sccp.9-0-3.cop.sgn
    UCM version: 5.0.4.2000-1

    Thanks for your reply. We have a lab environment where I maintain  UCM 5.0, 5.1, 6.0, 6.1, 7.0, 7.1 and 8.0 servers each running the latest released firmware for our QA testing team. I have downloaded and installed the latest device packages but find that if I try to install any firmware newer then 8.3.1 on either 5.0.4 or 6.0 i start getting MD5 hash authentication errors. It looks like 9.0.3 firmware should work on UCM 5.0 and 6.0 so I am lost as to why I can't seem to update any firmware for any model phone if it is newer then version 8.3.1 on either 5.0 or 6.0. while 5.1 and 6.1 work without issues. Maybe it is just a bug. I mostly wanted to see if anyone else has experienced this or if it is just me.

  • Create hash value for clob column ?

    Hi,
    does anybody know a way to calculate a hash value for a clob column (9i) ?
    DBMS_UTILITY.GET_HASH_VALUE could only handle varchar2(4000).
    Thank you!
    Regrads
    Michael
    Message was edited by:
    mseiwert

    I can't reproduce it on my 10.2.0.4.0. CTL file:
    load data
    INFILE *
    Replace into table samp
    fields terminated by ","
    trailing nullcols
    no,
    col1 Char(100000000) ,
    col2 Char(100000000) enclosed by '"' and '"'
    BEGINDATA
    1,asdf,"assasadsdsdsd""sfasdfadf""sdsdsa,ssfsf"
    2,sfjass,"dksadk,kd,ss""dfdfjkdjfdk""sasfjaslaljs"Loading:
    SQL> Create table samp
      2  (
      3  no number,
      4  col1 clob,
      5  col2 clob
      6  );
    Table created.
    SQL> host sqlldr scott/tiger control=c:\temp\samp.ctl log=c:\temp\samp.log
    SQL> select * from samp
      2  /
            NO
    COL1
    COL2
             1
    asdf
    assasadsdsdsd"sfasdfadf"sdsdsa,ssfsf
             2
    sfjass
    dksadk,kd,ss"dfdfjkdjfdk"sasfjaslaljs
            NO
    COL1
    COL2
    SQL> SY.

  • OSD fails during WinPE Install drivers - "The hash value is not correct"

    Hello everyone,
    We are facing a strange problem during OSD for one of the hardware models. We are on SCCM 2012 R2, and mainly build Windows 7
    x86 machines on various Lenovo models.
    I can see this problem I have encountered has been discussed elsewhere on this forum (especially SCCM 2007 threads) but not really sure what I have
    observed is the issue being discussed. Here is the problem....<o:p></o:p>
    We have a laptop (Lenovo x240) which has been building perfectly fine for as long as I can remember. However since last 2 days when I try to build
    the same model, we get the above error during the driver installation stage (in WinPE).<o:p></o:p>
    I referred to some of the other threads and MS blogs where they say file names with extended ASCII character may break the hash of the files (packages)
    being downloaded during OSD resulting in the error(http://blogs.technet.com/b/smsandmom/archive/2008/10/09/configmgr-2007-smsts-error-hash-could-not-be-matched-for-the-downloaded-content.aspx).
    The point is I have manually gone into the Command prompt (F8) during driver downloading stage (right after apply OS image) and checked that the drivers are getting downloaded fine (but there is not enough time for me to check individual sub folders for the
    extended ascii character problem). When it comes to installing the drivers, the TS fails and immediately the whole of the driver packages folder under D:\_SmsTaskSequence\Packages\PackageID folder becomes empty.
    There is nothing much logged in the ts log either.<o:p></o:p>
    Any thoughts? The only thing that has changed in our environment in the last 2 weeks is that we have upgraded from SCCM
    2012 SP1 to R2(CU3). All the other models have built ok since and only X240 is running into this issue.
    Would recreating the driver pack be an option here? I also understand that we also can configure the TS to refer to the package media directly from
    the DP share (instead of downloading) but we would rather not get into that at this stage as we have not tested the TS with that configuration (it might open another can of worms with package command lines etc.)
    One more point - This "The hash value is not correct" error message is only logged on the SCCM status messaging system (which can be viewed
    under the Monitoring wunderbar - Status Message Queries). I do not find it on the ts log file interestingly.
    Any help is much appreciated.<o:p></o:p>

    I've only seen this once before in a ConfigMgr 2012 RTM environment and after fighting it for a few days I ended up simply recreating the driver packages.
    -Nick O.

  • DBMS_CRYPTO MD5 hash value does not match 3rd party MD5 free tool

    Hello,
    I am using Oracle Version: 11.2.4.
    I have a problem where the MD5 value from DBMS_CRYPTO does not match the hash value from 3rd party MD5 free tool (MD5 Checksum Calculator 0.0.5.58 or WinMD5Free v1.20) and also the MD5 hash value calculated by an ingestion tool where I am transferring files to. The MD5 hash value that the ingestion tool calculates is the same as the 3rd party MD5 free tools I have. This occurs only on some of the XML files that I generate using XSQL(xmlserialize, xmlagg, xmlelement, etc.) and DBMS_XSLPROCESSOR on a Linux OS. The XML files are transferred from the Unix OS to my Windows 7 OS via filezilla.
    I found a thread on this forum that also had a similar issue so I copy/paste the java functions. They are listed below(both are the same expect for the character set):
    create or replace java source named "MD5_UTF_8" as
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.sql.Clob;
    import java.sql.Blob;
    public class MD5_UTF_8 {
    private static final byte [] hexDigit = {
    '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'
    /** Converts a byte array to a hex string
    * Returns an empty string if the byte array is null
    public static final String toHexString(byte [] bytes) {
    if (bytes == null) return new String("");
    StringBuffer buf = new StringBuffer(bytes.length * 2);
    for (int i = 0; i < bytes.length; i++) {
    buf.append((char) hexDigit[((bytes >>> 4) & 0x0F)]);
    buf.append((char) hexDigit[(bytes & 0x0F)]);
    return buf.toString();
    // Convert Hex String to Byte Array
    public static final byte[] byteArrayFromHexString(String str) {
    byte[] bytes = new byte[str.length() / 2];
    for (int i = 0; i < bytes.length; i++)
    bytes = (byte) Integer.parseInt(str.substring(2 * i, 2 * i + 2), 16);
    return bytes;
    public static String getMD5HashFromClob(Clob inhalt) throws Exception{
    MessageDigest algorithm;
    StringBuffer hexString;
    String s = null;
    String salida = null;
    int i;
    byte[] digest;
    String tepFordigest = inhalt.getSubString(1L, (int)inhalt.length());
    try {
    algorithm = MessageDigest.getInstance("MD5_UTF_8");
    algorithm.reset();
    algorithm.update(tepFordigest.getBytes("UTF-8"));
    digest = algorithm.digest();
    s = toHexString(digest);
    } catch (java.security.NoSuchAlgorithmException nsae) {
    s = "No es posible cifrar MD5";
    return s;
    sho err
    alter java source "MD5_UTF_8" compile
    sho err
    CREATE OR REPLACE FUNCTION get_md5_UTF_8_CLOB(inhalt CLOB) RETURN VARCHAR2 DETERMINISTIC
    AS LANGUAGE JAVA
    name 'MD5_UTF_8.getMD5HashFromClob(java.sql.Clob) return java.lang.String';
    create or replace java source named "MD5" as
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.sql.Clob;
    import java.sql.Blob;
    public class MD5 {
    private static final byte [] hexDigit = {
    '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'
    /** Converts a byte array to a hex string
    * Returns an empty string if the byte array is null
    public static final String toHexString(byte [] bytes) {
    if (bytes == null) return new String("");
    StringBuffer buf = new StringBuffer(bytes.length * 2);
    for (int i = 0; i < bytes.length; i++) {
    buf.append((char) hexDigit[((bytes >>> 4) & 0x0F)]);
    buf.append((char) hexDigit[(bytes & 0x0F)]);
    return buf.toString();
    // Convert Hex String to Byte Array
    public static final byte[] byteArrayFromHexString(String str) {
    byte[] bytes = new byte[str.length() / 2];
    for (int i = 0; i < bytes.length; i++)
    bytes = (byte) Integer.parseInt(str.substring(2 * i, 2 * i + 2), 16);
    return bytes;
    public static String getMD5HashFromClob(Clob inhalt) throws Exception{
    MessageDigest algorithm;
    StringBuffer hexString;
    String s = null;
    String salida = null;
    int i;
    byte[] digest;
    String tepFordigest = inhalt.getSubString(1L, (int)inhalt.length());
    try {
    algorithm = MessageDigest.getInstance("MD5");
    algorithm.reset();
    algorithm.update(tepFordigest.getBytes());
    digest = algorithm.digest();
    s = toHexString(digest);
    } catch (java.security.NoSuchAlgorithmException nsae) {
    s = "No es posible cifrar MD5";
    return s;
    sho err
    alter java source "MD5" compile
    sho err
    CREATE OR REPLACE FUNCTION get_md5_CLOB(inhalt CLOB) RETURN VARCHAR2 DETERMINISTIC
    AS LANGUAGE JAVA
    name 'MD5.getMD5HashFromClob(java.sql.Clob) return java.lang.String';
    I created the above java functions and added the calls to them in my package to see what hash values they would produce but I am getting "ORA-29532: Java call terminated by uncaught Java exception: java.nio.BufferOverflowException " the XML is about 60mb.
    package code sniippets:
    declare
    l_hash raw(2000);
    l_checksum_md5 varchar2(2000);
    l_checksum_md5_utf_8 varchar2(2000);
    Begin
    t_checksum := lower(RAWTOHEX(dbms_crypto.hash(src=>l_clob,typ=>dbms_crypto.hash_md5)));
    l_hash := get_md5_CLOB (l_clob);
    l_checksum_md5 := lower(rawtohex(l_hash));
    l_hash := get_md5_UTF_8_CLOB (l_clob);
    l_checksum_md5_UTF_8 := lower(rawtohex(l_hash));Please help,
    Thank You in advance
    Don
    Edited by: 972551 on Nov 21, 2012 12:18 PM
    Edited by: sabre150 on Nov 21, 2012 11:06 PM
    Moderator action : added [code ] tags to format properly. In future please add them yourself.

    >
    I have a problem where the MD5 value from DBMS_CRYPTO does not match the hash value from 3rd party MD5 free tool (MD5 Checksum Calculator 0.0.5.58 or WinMD5Free v1.20) and also the MD5 hash value calculated by an ingestion tool where I am transferring files to. The MD5 hash value that the ingestion tool calculates is the same as the 3rd party MD5 free tools I have.
    I found a thread on this forum that also had a similar issue so I copy/paste the java functions.
    >
    And in that thread (Re: MD5 HASH computed from DBMS_CRYPTO does not match .NET MD5 I provided the reason why DBMS_CRYPTO may not match hashes produced by other methodologies.
    I have no idea why you copied and posted all of that Java code the other poster and I provided since code has NOTHING to do with the problem you say you are having. Thte other poster's question was how to write Java code that would produce the same result as DBMS_CRYPTO.
    You said your problem was understanding why DBMS_CRYPTO 'does not match the hash value from 3rd party MD5 free tool ...'. and I answered that in the other forum.
    >
    The Crypto package always converts everything to AL32UTF8 before hashing so if the .NET character set is different the hash will likely be different.
    See DBMS_CRYPTO in the PL/SQL Packages and Types doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_crypto.htm
    If you look at the spec header for the DBMS_CRYPTO package it shows this note:
    -- Prior to encryption, hashing or keyed hashing, CLOB datatype is
    -- converted to AL32UTF8. This allows cryptographic data to be
    -- transferred and understood between databases with different
    -- character sets, across character set changes and between
    -- separate processes (for example, Java programs).
    -- If your 3rd party MD5 free tool (MD5 Checksum Calculator 0.0.5.58 or WinMD5Free v1.20) do not use the AL32UTF8 character set then the hashes will likely be different. You can't modify DBMS_CRYPTO so if the hashes need to match you need to use 3rd party tools that either use the correct character set or can be configured to use the correct character set.
    The problem in the other thread was how to WRITE Java code that uses the correct character set and I showed that OP how to do that.
    So unless you are writing your own Java code all of that code you copied and pasted is useless for your use case.

Maybe you are looking for

  • ESS team claendar appears extremely slow

    Hello, we use employee self services with a SAP NetWeaver Portal 7.0. A few days ago we installed patch level 38 to our SAP HR 600. Since then the team calendar view in our portal appears extremely slow. We get no error message and the leaving times

  • I am getting an error message "key not valid for use in specified state"

    I am trying to install adobe photoshop elements 12  I just bought and when it says install I click the button and up pops " key not valid for use in specified state" any body know what to do.

  • Have iMac running OSX 10.5.8, where can I find the upgrade?

    have iMac running OSX 10.5.8, where can I find the upgrade?

  • Best phone for whatsapp? [And cheap!]

    I own a Nokia Asha 201(qwerty) which came with a whatsapp, but I couldn't use it because it caused the internet to always be on. It doesn't have the option to switch the internet off, due to which I had to get rid of whatsapp. Otherwise I didn't real

  • Help itunes won't open

    Hi i recently defragmented my computer and in doing so i had to delete some stuff. Now everytime i open itunes it says 'itunes cannot run because some of its required files are missing. Please reinstall itunes'. I reinstall itunes and it does the sam