?
Solved

How do i call Oracle function from Coldfusion

Posted on 2004-08-22
3
Medium Priority
?
384 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 1000 total points
ID: 11867380
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

764 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