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 3313546
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:07:40+00:00 2026-05-17T22:07:40+00:00

Problem Conditions I have a very simple Oracle (11g) Stored Procedure that is declared

  • 0

Problem Conditions

I have a very simple Oracle (11g) Stored Procedure that is declared like so:

CREATE OR REPLACE PROCEDURE pr_myproc(L_CURSOR out SYS_REFCURSOR)
is
   BEGIN
     OPEN L_CURSOR FOR
       SELECT * FROM MyTable;
   END;

This compiles correctly. The cursor contains col1, col2 and col3.

In SSRS, i have a Shared Data Source that uses Oracle OLEDB Provider for Oracle 11g:

Provider=OraOLEDB.Oracle.1;Data Source=LIFEDEV

(Plus the user credentials).

What Works OK:

  • The stored procedure executes
    correctly in PL/SQL Developer
  • The ‘test connect’ in works fine in SSRS
  • A query string of SELECT * FROM MyTable; with Command Type of ‘text’ produces the correct fields in the SSRS report.
  • .NET Oracle Provider instead of Oracle OLE DB Provider

What Fails:

If i change the Command Type to ‘Stored Procedure’ and enter ‘pr_myproc’, when I click ‘OK’ Visual Studio 2005 (service pack 2) simply hangs/crashes.

Does anyone have any knowledge/experience of this?

Any help would be most appreciated. Thanks.

FURTHER INFORMATION

I’ve modified the provider from the Oracle OLE DB Provider to the .NET Oracle Provider, and, magically, it works.

This would seem to indicate an issue with the Oracle provider.

Any more thoughts?

  • 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-05-17T22:07:41+00:00Added an answer on May 17, 2026 at 10:07 pm

    We got to the bottom of this.

    On the environment where the procedure resided, we have a substantial data dictionary. The two providers when looking up information use two different queries.

    Here is the one the Oracle Provider used, taking 10+ minutes:

    select * from (select null  PROCEDURE_CATALOG
                          , owner PROCEDURE_SCHEMA
                          , object_name PROCEDURE_NAME
                          , decode (object_type, 'PROCEDURE', 2, 'FUNCTION',  3, 1) PROCEDURE_TYPE
                          , null PROCEDURE_DEFINITION
                          , null DESCRIPTION
                          , created DATE_CREATED
                          , last_ddl_time DATE_MODIFIED 
                  from all_objects where object_type in ('PROCEDURE','FUNCTION') 
                  union all 
                  select null PROCEDURE_CATALOG
                              , arg.owner PROCEDURE_SCHEMA
                              , arg.package_name||'.'||arg.object_name PROCEDURE_NAME
                              , decode(min(arg.position), 0, 3, 2) PROCEDURE_TYPE
                              , null PROCEDURE_DEFINITION
                              , decode(arg.overload, '', '', 'OVERLOAD') DESCRIPTION
                              , min(obj.created) DATE_CREATED
                              , max(obj.last_ddl_time) DATE_MODIFIED 
                  from all_objects obj, all_arguments arg 
                  where arg.package_name is not null 
                  and   arg.owner = obj.owner 
                  and   arg.object_id = obj.object_id 
                  group by arg.owner, arg.package_name, arg.object_name, arg.overload ) PROCEDURES  
    WHERE PROCEDURE_NAME = '[MY_PROCEDURE_NAME]' order by 2, 3
    

    More info can be found here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.