Question

Asked on 1998-10-25 at 19:14:34ID: 25453113

How to return Recordset in Oracle Stored Procedure?

by: kahhoe120

Rating7.2Very Good

hi Follks!

I am currently working on a project that require me to use Oracle.  For security reason (say my boss and blar blar blar), I need to call an Oracle Stored Procedure with some parameters and expect it to return a recordset.  I have tried in on SQL Server 6.5 and it works (Great job SQL Server!).  However when I tried it with Oracle I realise it is not so easy.  I have consult some Oracle Experts and they do have some suggestion.

Currently I really need information with the following question before I go in further.
1. It is really true that Oracle SP doesn't return RecordSet (Seems to be true as their SELECT statement must use INTO.)
2. Some expert told me to use Cursor.  How to?
3. Is collection class or package a solution?  And How?
4. What good books are there around?  I don't seems to understand anything from the Oracle Press.

Thanks you in advance!



Best Regards,
Kah Hoe

  1. How to get return date from Oracle?
    Need a query or procedure that if its before noon return yesterday's date else return today's date
  2. How to write Stored Procedures that work under…
    Is it possible to write SPs (if you stick to Ansi-SQL) that would run under all 3 db-types? (Our with as less differences as possible). And if so what would be the guidline? Our application supports these 3 dbs and in order to make use of SPs it would be better to have only one code for a SP instead of having SP-code for all 3 Dbs. Thanks for your hel…
  3. How do I call an Oracle stored procedure from S…
    Hi, I'm trying to call an Oracle stored procedure from SQL server using a linked server and can't get this working. What I've done so far is the following: 1. I created a store procedure SQL_SP1 on SQL server which is on Window server . Then I created a store procedure on Oracle which is on Unix server (Oracle_SP1) 2.…
  4. How to store data for different language in Oracl…
    I'm developing a Java web application. My application need to support multiligual and we need to store the data entered by user into database. User can input data in different language. So, would like to know what we need to configure in Oracle 10g? What field size shld i declared if let say the input size is 10 char?
  5. Oracle stored procedure to return a data set
    Hi, I need an Oracle stored procedure to return a data set. Please advice.

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
oracle recordset return
Participating Experts
3
Solution Grade
B

Replies

 by: dslavin

Posted on 1998-10-25 at 23:04:53ID: 28201817

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 1998-10-27 at 04:20:50ID: 28201818

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kahhoe

Posted on 1998-10-27 at 05:28:52ID: 28201820

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: kahhoe

Posted on 1998-10-27 at 05:29:21ID: 28201821

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: cramer

Posted on 1998-10-27 at 06:41:53ID: 28201822

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: i81u812

Posted on 1998-10-28 at 13:25:14ID: 28201823

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert