Solved

How do i call Oracle function from Coldfusion

Posted on 2004-08-22
3
352 Views
Last Modified: 2013-12-16
How do i call oracle function from Coldfusion using cfstoredproc.
Below is my oracle function:

FUNCTION Get_Load_Lock (pm_source IN VARCHAR2) RETURN BOOLEAN

IS
v_lock  SNDSV_REF_CODES.rv_high_value%TYPE;

BEGIN
    BEGIN
            SELECT rv_high_value INTO v_lock
            FROM SNDSV_REF_CODES
            WHERE rv_domain = 'E-EKSAIS'
            AND rv_type = 'CONTROL'
            AND rv_low_value = 'LOCK - '||pm_source
            AND record_status = 'E'
            FOR UPDATE OF rv_high_value NOWAIT;

            ROLLBACK;

      EXCEPTION WHEN OTHERS THEN
        v_lock := 'Y';
      END;

      IF v_lock = 'N' THEN
          RETURN TRUE;
      ELSE
          RETURN FALSE;
      END IF;

END Get_Load_Lock;

Note: pm_source = PAYMENT.
0
Comment
Question by:shakker
3 Comments
 
LVL 7

Accepted Solution

by:
suramsureshbabu earned 250 total points
ID: 11867380
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now