Solved

How do i call Oracle function from Coldfusion

Posted on 2004-08-22
3
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
suramsureshbabu earned 250 total points
ID: 11867380
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
Make the most of your online learning experience.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
Starting up a Project

691 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