Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8839075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:09:31+00:00 2026-06-14T10:09:31+00:00

I am developing a series of PL/SQL Stored Procedures in a package that open

  • 0

I am developing a series of PL/SQL Stored Procedures in a package that open REF CURSORs that are passed to the caller as OUT parameters for purposes of interoperability with another framework. I am using SQL Developer and recently started looking into using the testing features built into it.

I am looking for a way to validate the results of a REF CURSOR using SQL Developer’s Unit Testing framework. I developed some paging logic, and I want to ensure that it is operating correctly so I was hoping I could verify that I have the correct number of rows and that their row numbers are within the range of the appropriate page.

I found a similar question here, but that solution renders the unit tests absolutely useless (at least as far as I can tell) because it doesn’t actually perform any validation after running the procedure. If someone could explain how to validate it or show me what I’m missing from the solution from Oracle’s Forums, I would appreciate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:09:33+00:00Added an answer on June 14, 2026 at 10:09 am

    A Process Validation can be used to unit test datatypes that SQL Developer cannot handle.

    1. Create an implementation and link (synchronize) it with a dummy procedure or function.
    2. Set up parameters and results so that the Test completes with a Success
    3. Create a Process Validation with ‘User Pl/Sql Code’ using the template shown

    Template:

    DECLARE
      l_Cursor  SYS_REFCURSOR ;
    BEGIN
      OPEN l_Cursor FOR '<SQL goes here>' ;
      MY_PROCEDURE( l_Cursor ) ;
      <do validation>
      CLOSE l_Cursor;
      IF <not valid> THEN
        RAISE PROGRAM_ERROR ;
      END IF ;
    END ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a Java Web Application that runs a series of financial calculations for
Developing a series of POCOs on my project, and just realized that some of
I'm developing an app that handle sets of financial series data (input as csv
I'm developing a shell script that loops through a series of Postgres database table
I'm developing a full-screen web app for an iPad that will have a series
I am developing an iPhone application that allows to basically click through a series
Currently, I am developing a product that does fairly intensive calculations using MS SQL
I am developing an auto-builder that will run a series of steps in our
I'm developing an algorithm to parse a number out of a series of short-ish
I'm developing a web app (A) that serves as a front-end to another website

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.