本人想利用oracle自带的MD5来加密。提示错误如下:
SQL> select dbms_obfuscation_toolkit.MD5(password) from hr_user;select dbms_obfuscation_toolkit.MD5(password) from hr_userORA-06553: PLS-307: 有太多的 'MD5' 说明与此次调用相匹配高手帮忙!

解决方案 »

  1.   

    PLS-00307 too many declarations of 'string' match this callCause: The declaration of a subprogram or cursor name is ambiguous because there was no exact match between the declaration and the call and more than one declaration matched the call when implicit conversions of the parameter datatypes were used. The subprogram or cursor name might be misspelled, its declaration might be faulty, or the declaration might be placed incorrectly in the block structure.Action: Check the spelling and declaration of the subprogram or cursor name. Also confirm that it's call is correct, it's parameters are of the right datatype, and, if it is not a built-in function, that it's declaration is placed correctly in the block structure.
      

  2.   

    MD5 算法的使用
    SQL>var v_test varchar2(32);
    SQL> begin
      2  :v_test:=RawToHex(UTL_RAW.Cast_To_Raw(DBMS_OBFUSCATION_TOOLKIT.MD5(input_string=>'ABC')));
      3  end;
      4  /