PLS-00201 when trying to call ORA_HASH from a function

SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for Solaris: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
SQL> select ora_hash('GOOBERS') from dual;
ORA_HASH('GOOBERS')
1552467184
SQL> create or replace function my_hash(x in varchar2) return number is begin return ora_hash(x); end;
2 /
Warning: Function created with compilation errors.
SQL> show errors
Errors for FUNCTION MY_HASH:
LINE/COL ERROR
1/56 PL/SQL: Statement ignored
1/63 PLS-00201: identifier 'ORA_HASH' must be declared
If anyone has some ideas on this it would be great to hear from you. Thanks.

Thanks Maxim & Rakesh, that worked.
It does look like a bug. The return on it's own works with other functions e.g. ASCII etc. but not ORA_HASH.
The select from dual version is painfully slow (e.g. 25 x times) though so I think I'll use dbms_utility.get_hash_value instead for now. I was planning to use that version in 9i anyway as my app still needs to run on 9i - but I was trying to get the ORA_HASH working for 10g as it is incredibly fast.
Will definitely log it though.

Similar Messages

  • Error when calling webservice from oracle function.

    Hi,
    I am getting following error when i am trying to call webserivce from oracle function. Please can anyone suggest the required solution. Below is the error obtained.
    Thanks.
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "UL" does not match start-element tag "P"
    Error at line 15
    ORA-06512: at "SYS.XMLTYPE", line 54
    ORA-06512: at "SCOTT.DEMO_SOAP", line 87
    ORA-06512: at "SCOTT.WEB_SERVICE", line 17

    The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call

  • XML Error while calling webservice from oracle function.

    I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
    select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "H4" does not match start-element tag "P"
    Error at line 9
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
    ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11

    The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call

  • When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    delete off any apps that are asking for the wrong apple id and download/sync them over from the correct one

  • Get error message when trying to launch bridge from CC 64 bit.

    Get error message when trying to launch Bridge from Photoshop CC 64 bit.  "Cannot complete command because extension cannot be loaded."  Need fix.  Thanks.

    Hi Adobe Bubba,
    Please uninstall the software, run the cleaner tool, restart your machine and install again.
    Cleaner tool: http://www.adobe.com/support/contact/cscleanertool.html .
    Regards,
    Romt Sinha

  • 2nd gen A TV I can hear but not see on the TV when trying to stream TV from the iPad2

    2nd Gen ATV I can hear but not see on the TV when trying to stream TV from the iPad2

    You can look at the ipad under settings, general, about and see if it's 4.3.3.
    Or when you connect the ipad to the computer with itunes, it'll tell you on the first tab if you need an update.

  • From an iPhone 5, I receive the following error message when trying to download content from a radio show app:  "Alert Could not parse feed."   How do I fix?

    From an iPhone 5, I receive the following error message when trying to download content from a radio show app:  "Alert Could not parse feed."   How do I fix?

    Since you're using a 3rd party app, suggest contacting the app developer or looking at their support site for help.

  • When trying to download app from itunes store I get message: Apple Id has been disabled.  I  have reset my password, but the problem has not been resolved.

    When Trying to download applications from the itunes store, I receive a message that my Apple Id has been disabled.  I reset my password, accessed my Itunes Account successfully, but when trying to download, the same message appears.

    You need to contact Apple Support, particularly iTunes Store support team.  Cheers!

  • When trying to upload pictures from my camera I get this message although I have uploaded from the same camera in the pastiPhoto cannot import your photos because there was a problem downloading an image.

    When trying to upload pictures from my camera I get this message although I have uploaded from the same camera in the past, "iPhoto cannot import your photos because there was a problem downloading an image."

    Can you access the images with Image Capture (in your Applications Folder) ?

  • I get an error message when trying to download apps from the app store.  "safari can not open the page because the address is invalid".  Please help!!

    i get an error message when trying to download apps from the app store.  "Safari can not oprn the page because the address is invalid"

    You can't use Safari to download iPad apps. Only use iTunes/App Store.
     Cheers, Tom

  • Getting error message when trying to play songs from library saying original file could not be found

    when trying to play songs from library, getting message saying original file could not be found .. my full library all says the same .. can anyone help ?

    Hello Ceeclass,
    I suggest this article named iTunes: Finding lost media and downloads found here http://support.apple.com/kb/TS1408.
    It should help you locate the media that is not playing in the iTunes library.
    Take care,
    Sterling

  • Please help! error message when trying to download pictures from iphone5 to macbook pro

    Hello everyone,
    lately I have been having some issues when trying to download pictures from my iphone to my iphoto library. Whenever I try to do so this message pops up "The following file could not be imported. The file is in an unrecognized format." Would anyone happen to know why this is happening? I was always able to transfer my pictures from my phone to my laptop before, so I don't know why this is happening now.
    Thank you very much to whomever might be able to solve this problem for me!!

    "The following file could not be imported. The file is in an unrecognized format."
    if you look at the error message - is the filename mentioned? What kind of file is it? A JPEG? A video?
    Can you import the files from your iPhone with Image Capture?

  • ITunes crashing when trying to sync books from iPad

    When trying to sync books from iPad to iTunes, iTunes crashes causing Microsoft error message. Any ideas?

    There may be a corrupted video or image file on your iPad.
    Try to download from the iPad using Image Capture instead and save the photos to a folder. If that succeeds, you can check the files for corruption before importing them to iPhoto.

  • IPhoto freezing when trying to import photos from iPhone

    iPhoto has started freezing when trying to import photos from an iPhone. The device is recognised but just get "loading . . . " message with no photos appearing. Has anyone else seen this?

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Error when trying to load data from ODS to CUBE

    hi,
      Iam getting a short dump  when trying to load data from ODS to CUBE. The Run time error is 'TYPELOAD_NEW_VERSION' and the short text is 'A newer version of data type "/BIC/AZODS_CA00" was found than one required.please help me out.

    Hi,
    Check this thread.........Ajeet Singh  has given a good solution here.........
    Re: Error With Data Load-Getting Canceled Right Away
    Also check SAP note: 382480..................for ur reference............
    Symptom
    A DART extraction job terminates with runtime error TYPELOAD_NEW_VERSION and error message:
    Data type "TXW_INDEX" was found in a newer version than required.
    The termination occurs in the ABAP/4 program "SAPLTXW2 " in "TXW_SEGMENT_RECORD_EXPORT".
    Additional key words
    RTXWCF01, LTXW2U01, TXW_INDEX
    Cause and prerequisites
    This problem seems to happen when several DART extraction jobs are running in parallel, and both jobs access table TXW_INDEX.
    Solution
    If possible, avoid running DART extractions in parallel.
    If you do plan to run such jobs in parallel, please consider the following points:
    In the DART Extract configuration, increase the value of the parameter "Maximum memory allocation for index (MB)" if possible. You can estimate reasonable values with the "File size worksheet" utility.
    Run parallel DART jobs on different application servers.
    As an alternative, please apply note 400195.
    It may help u.........
    Regards,
    Debjani.......

Maybe you are looking for