Crystal Reports can't add stored procedure using Oracle Provider for OLE DB

Hello,
I am trying to bind an oracle stored procedure to a crystal report through Visual Studio 2008.
This oracle stored procedure returns a ref cursor.
I am using an oracle 11g database (11.2.0.2.0) .
When I use the Oracle Provider For OLE DB driver to bind the store procedure with the report, I get the following error message:
Description : ORA -06550 Line 1 Column 7
PLS 00306 wrong number of types or arguments to the "Strored Procedure Name"
But When I use the Microsoft OLE DB provider for oracle driver, I can bind the stored procedure to the report successfully .
I cannot use the Microsoft OLE DB provider for oracle driver because it does not support the CLOB data type which I plan on having the stored procedure return once I can get everything working.
I have tried setting PLSQLRSET = 1 IN "HKEY_LOCAL_MACHINE\SOFTWARE\KEY_OraDb11g_home1\OLEDB", but that does not seem to work either
Any assistance would be greatly Appreciated
My Stored procedure is very simple as the moment (I just need to get it working then I'll add more stuff). Here's what it looks like:
CREATE OR REPLACE PACKAGE PROMO.PKG_REPORT as
TYPE OUT_Type IS REF CURSOR;
procedure Report_ThisReport (
p_ThisIdField IN number,
IO_CURSOR IN OUT OUT_Type
end PKG_REPORT;
CREATE OR REPLACE PACKAGE BODY PROMO.PKG_REPORT as
procedure REPORT_ThisReport (
p_ThisIdField IN number,
IO_CURSOR IN OUT OUT_Type
IS
BEGIN
OPEN IO_CURSOR FOR
SELECT ThisField
FROM ThisTable
WHERE ThisIdField = p_ThisIdField ;
END REPORT_ThisReport;
end PKG_REPORT;
Edited by: 894988 on Nov 3, 2011 2:45 PM
Edited by: 894988 on Nov 3, 2011 2:46 PM
Edited by: 894988 on Nov 3, 2011 2:47 PM

It seems that some questions posted here on the XE forum are really questions about other Oracle technologies.
Concretely, for you there is an Oracle Provider for OLE DB Forum that is active and a terrific resource for you to use.
Oracle Provider for OLE DB
Cheers!

Similar Messages

  • Unable to add a stored proc through Oracle Provider for OLE DB

    I want to bind an oracle stored procedure to a report. This oracle stored procedure returns a cursor.
    Problem Definition:
    When I use the "Oracle Provider For OLE DB driver." to bind the store procedure with the report, I am getting the following message.
    Description : ORA -06550 Line 1 Column 7
    PLS 00306 wrong number of types or arguments to the "Strored Procedure Name"
    But When I use "Microsoft OLE DB provider for oracle" driver, I can bind the stored procedure to the report successfully .
    Please help me in resolving this problem.
    My Stored procedure is something like this.
    CREATE OR REPLACE PACKAGE GroupsPackage
    AS
    TYPE CURSOR_TYPE IS REF CURSOR;
    PROCEDURE usp_SelectGroups (int intInputI IN ,Dresults_cursor OUT CURSOR_TYPE);
    END;
    CREATE OR REPLACE PACKAGE BODY GroupsPackage
    AS
    PROCEDURE usp_SelectGroups (int intInputI IN ,results_cursor OUT CURSOR_TYPE)
    AS
    BEGIN
    OPEN results_cursor FOR
    SELECT GroupID, GroupName, GroupDescription, LastUpdateDate
    FROM Groups
    ORDER BY GroupName;
    END;
    END;

    I think the following SAP Note would help you
    Symptom
    You create a BusinessObjects report and call an Oracle stored function through an object defined in Designer. The stored function name contains a number (like MyFunc2). You refresh the query and receive the error, "Connection or SQL sentence error (DA0005)" followed by, "ORA-06553: PLS-306: wrong number or types of arguments in call to '<function name>' 6552."
    You see the incorrect SQL when you open the query panel in BusinessObjects.
    Cause
    The function defined on the database has several parameters, each separated by a comma. BusinessObjects replaces this comma by a concatenation operator ('||'). Thus the database does not understand the SQL statement.
    Resolution
    ****CONFIGURATION*****
    Business Objects version 5.x
    Oracle database version 8.1.6
    *********RESOLUTION*****
    Here are two workarounds for this issue:
    Workaround 1
    Modify the SQL generated in the query panel.
    1. Replace the concatenation operators ('ll') with commas.
    2. Check the option "Do not regenerate SQL."
    Workaround 2
    Rename your Oracle function to a name with no digits or numbers.
    Regards,
    Raghavendra

  • Access Oracle from SQL Server using Oracle Provider for OLE DB

    Using
    - SQL Server 2000 SP4
    - Oracle 10g
    - Oracle10g Provider for OLE DB Version 10.1.0.4.0
    - Oracle 10g client
    Able to create linked server in SQL server to Oracle 10g and display list of tables in Oracle. However, when execute query, it gives
    Server: Msg 7320, Level 16, State 2, Line 1
    Could not execute query against OLE DB provider 'OraOLEDB.Oracle'.
    OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ICommandText::Execute returned 0x80040155].
    Any idea what is the problem ?

    I'm having the same error message...But I'm connecting to a Oracle 8i DB......
    I think this has to do with SP4 for SQL....I will test this tonight....

  • Crystal report : can't add table in the samples provided by SAP

    Hello,
    I tried to add tables in the generic samples provided  by SAP.  I used the database expert and just added a new table but when I save the report in SAP and want to run it it is blank.
    Is there another way to add a table ?
    BR

    Already tried all those tricks!
    My question is concerning the standard layouts provided by SAP (downloaded from marketplace). The idea behind those reports is that you can use them as Templates. 
    The tables are not hardcoded with the table.field name but with a specific syntax that allows you to use those templates in any type of document (ex : you can use the template of sales order for delivery and invoices). The problem is that if you add a new table the report doesn't work!
    Thank you for the response anyway.
    Best Regards,
    Arnaud

  • Can i add a servlet in oracle database for webservices without java and how?

    HI
    can i add a servlet in oracle database for webservices without java and how?
    Please help
    Thanks

    Dear Frank,
    I have done as follows
    created a form with a button, and in my button pressed event I wrote
    WEB.SHOW_DOCUMENT('javascript:openMyURL("http://192.168.1.34/HELP/ADMF0005.html");', '_Self');
    and in my formsweb.cfg I have the following
    HTMLbeforeForm=<script> function OpenMyURL(page){window.open(page,"myURL","width=700,width=400,top=0,left=0,toolbar=no,menubar=no"); } </script>
    When I click on the button it is coming with toolbar , etc as well as no page found is coming with the following in the address bar.
    javascript:openMyURL("http://192.168.1.34/HELP/ADMF0005.html");
    My html view source comes as below for the form
    <HEAD><TITLE>Oracle9iAS Forms Services</TITLE></HEAD>
    <BODY >
    <script> function OpenMyURL(page){window.open(page,"myURL","width=700,width=400,top=0,left=0,toolbar=no,menubar=no"); } </script>
    <!-- Forms applet definition (start) -->
    <OBJECT classid="clsid:CAFECAFE-0013-0001-0009-ABCDEFABCDEF"
    codebase="/forms90/jinitiator/jinit.exe#Version=1,3,1,9"
    WIDTH="1000"
    HEIGHT="660"
    HSPACE="0"
    VSPACE="0">
    <PARAM NAME="TYPE" VALUE="application/x-jinit-applet;version=1.3.1.9">
    <PARAM NAME="CODEBASE" VALUE="/forms90/java">
    <PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
    I am using Forms [32 Bit] Version 9.0.2.7.0

  • Calling SQL Stored Procedure using Oracle Gateway

    Hi
    Do you know how i can call a stored procedure with parameters from Oracle using oracle gateway?

    Don't know which gateway you are using. Only the transparent gateway for SQL Server and Sybase that have support for stored procedures.
    Take a look at case 7 which shows how to do this.
    Rem case7.sql
    Rem
    Rem Copyright (c) Oracle Corporation 2000. All Rights Reserved.
    Rem
    Rem NAME
    Rem case7.sql
    Rem
    Rem DESCRIPTION
    Rem SQL script which executes the demo case7 for the
    Rem Transparent Gateways
    Rem
    Rem NOTES
    Rem The database link GTWLINK should be created before you can
    Rem run this demo file
    Rem
    Rem MODIFIED (MM/DD/YY)
    Rem kpeyetti 11/09/00 - Created
    Rem
    SET ECHO ON
    DROP TABLE LOCAL_GTW_DEPT;
    CREATE TABLE LOCAL_GTW_DEPT (DEPTNO INTEGER, DEPTNAME VARCHAR2(14));
    SELECT * FROM LOCAL_GTW_DEPT;
    DECLARE
    DNAME VARCHAR2(14);
    BEGIN
    "GetDept"@GTWLINK(10,DNAME);
    INSERT INTO LOCAL_GTW_DEPT VALUES (10, DNAME);
    END;
    SELECT * FROM LOCAL_GTW_DEPT;

  • Installing a VB application using Oracle Provider for OLEDB

    Hi all,
    I have a corporate VB application that uses the Oracle 9i client.
    The Oracle Client is on a network disk, so all my clients will not need to install on their client machines.
    I am using Wise for Windows Installer to install the application on each client machine.
    I need to include on the installation package the "Oracle Provider for OLEDB" files.
    How can I do this?
    Thank you all,
    Ardates Cruz.

    The standard way to use the unmanaged Oracle.DataAccess is to install an Oracle client on any machine that wants to use the application.
    It is possible to avoid that installation by including a bunch of DLLs and some other files in the application, but it's far more cumbersome than using the managed client. Here's a link to get you started on that: http://stackoverflow.com/questions/13721025/deploying-and-configuring-odp-net-to-work-without-installation-with-entity-frame

  • Crystal Report can't add Currency field when connect to SAP Infosets.

    Hi,
    I created a simple Crystal Report which connect SAP Infosets.
    Everything is fine except I add a "Currency" field into report. Three errors returned.
    Fail to retrieve data from database -> Database connector error :'Syntax error in program SAPLHRPADINA1' -> Database connector Error: 'RFC_CLOSED'
    Do you have any idea?

    Hi,
    can you run a InfoSet query based on the InfoSet ?
    Can you create a QuickView on top of the InfoSet ?
    ingo

  • Calling a stored procedure using Oracle Ole Db provider

    I am looking for an example of syntax used to call a stored procedure from VB.Net using the Oracle OleDB provider. I have been using the Microsoft provider MSDAORA but need to move to the Oracle provider due to upgrade. The syntax used with the MSDAORA provider does not work with the Oracle provider.

    Hi,
    Please refer to the Populate DataSet with Multiple REF Cursors Sample available at the following URL:
    http://otn.oracle.com/sample_code/tech/windows/ole_db/oledb92/index.html
    Check the PopulateProducts method available in the ViewProducts.cs file that call a database stored procedure "getProductsInfo" . This code is written in C# you may want to convert it to VB.NET syntax.
    Thanks,
    Jagriti
    OTN IDC Team.

  • Oracle OLEDB driver can't execute stored procedure in Oracle 8

    Hello, I have a problem when execute a Delphi program, occurs the next error:
    'ORA-06574: Function LEOCLAVEROL references package state, cannot execute remotely'
    LEOCLAVEROL is a function PL/SQL, with a process included in it compiled in Borland C, the function is called from a SELECT (ADOQuery) in a Delphi program.
    Scenario
    User:
    Windows XP
    Oracle Client 8i Ver 8.1.7.0
    Driver= OraOLEDB.Oracle.1
    Provider=MDAC ADO Ver 2.7
    Server:
    Oracle8 Release 8.0.5.2.1 runing Windows NT 4 Service Pack 6
    (The process is OK with Oracle 8i !!!!)
    Anybody help me?
    Thanks
    Osky

    Hello, I have a problem when execute a Delphi program, occurs the next error:
    'ORA-06574: Function LEOCLAVEROL references package state, cannot execute remotely'
    LEOCLAVEROL is a function PL/SQL, with a process included in it compiled in Borland C, the function is called from a SELECT (ADOQuery) in a Delphi program.
    Scenario
    User:
    Windows XP
    Oracle Client 8i Ver 8.1.7.0
    Driver= OraOLEDB.Oracle.1
    Provider=MDAC ADO Ver 2.7
    Server:
    Oracle8 Release 8.0.5.2.1 runing Windows NT 4 Service Pack 6
    (The process is OK with Oracle 8i !!!!)
    Anybody help me?
    Thanks
    Osky

  • Error while calling a stored procedure using SQLJ

    I am calling a stored procedure defined inside a package through a SQLJ script. The first parameter of that procedure is a IN OUT parameter which is used as a ROWID for creating a cursor. That ROWID value is the same for every record in the table, thereby enabling us to create a cursor.
    When I give a hard-coded value as a parameter, I get an error stating that the assignment is not correct as the query is expecting a variable and not a literal. Hence I removed the hard-coded value and included a dymanic value in the SQLJ call.
    String strVal = "A";
    #sql{CALL ASSIGNMENTS_PKG.INSERT_ROW :{strVal},'SALARY_CODE_GROUP','BU',3,105,sysdate,1,sysdate,1,1)};
    Here "ASSIGNMENTS_PKG" is a package name and INSERT_ROW is the procedure.
    When the SQLJ program is run, I get an error stating:
    "PLS-00201: identifier 'A' must be declared"
    I read the error message, but I am not able to understand where I need to give the GRANT permission to.

    If you're using Oracle Provider for OLE DB (OraOLEDB) to execute this stored procedure, you need to set PLSQLRSet attribute. This attribute can be set in registry, connection string, or command object. Please refer to User Documentation for more information.

  • How to add Stored Procedures to Version Control

    My system mainly relies on stored procedures and I recently noticed I don’t have the version control for my database.
    So, my question is: How can I add stored procedures to version control?

    Once you have a database in a SQL Server Database Project, integrating to Source control is the same as any Visual Studio project. First you configure Visual Studio to use TFS for Version Control:
    Then you can configure a workspace connected to a TFS server and add your projects to source control.
    See, eg
    Walkthrough: Exploring Team Foundation Version Control
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Crystal Report can only retrieve 1 row of data

    We are using the following configuration:
    - Microsoft Windows 2003 Server R2 for x64
    - Microsoft .Net Framework 3.0 for x64
    - Oracle Client 10g 10.2.0 for x64, which inlcudes Oracle Provider for OLE DB 10.2.0.2.21
    - Crystal Report 10 redistributable for x64, from Visual Studio 2005
    With that configuration, each time we run a report in ASP.Net, we can only retrieve 1 row of data, even though the data is more than that. We have no issue running the same report in 32 bit (same configuration as above, but 32bit).
    For the meantime, we use ODBC connection, and it runs well. But, ODBC is slow and since the system that we build is still under heavy testing, if any problem occurs during report generation, it locks up other reports and we have to restart the IIS. So, ODBC connection is definitely a no-no.
    Please help.

    I have the same problem which is assigned uder bug:6623430
    Still waiting for fix...

  • Cant connect to Ora8.1.6 db using OLEDB provider for Ora8.1.7 cant find 8.1.6 OLEDB

    Hello,
    I need to connect to an Oracle 8.1.6 Database using OLEDB. Currently, we have one workstation with an ODBC connection and has an OLEDB Provider for Oracle 8.1.6. I can connect to Oracle using OLEDB on this machine (Winnt4 SP4) and see data from the tables. But I need to connect to the same Oracle DB from another workstation (Winnt4 SP6).
    I dowloaded the OLEDB Provider for Oracle8i from the Oracle Website, and on install I observed that this one was for Oracle 8.1.7. I keep getting an error message that it can't resovle the Service Name. I have played with the Net8 Configuration assistant for Oracle8i and the other selection for Oracle8.0 or 7.0. But I keep getting the same error on the NT SP6 machine. I have looked at the tnsnames.ora file on the SP6 machine and the SP4 machine. They are different, and I tried to make the .ora file on the SP6 machine match the .ora file on the SP4 machine but still can't resolve the Service Name. I would be very grateful if someone could help me out - either finding an earlier OLEDB Provider or some configuration trick.
    Many thanks,
    Rich Protzel

    Did you ever get this issue resolved? Do you know where I can get the Oracle Provider for OLE DB for 8.1.6?
    Aaron

  • How to use a stored procedure in oracle reports

    How to use a stored procedure in oracle reports

    Dear,
    In report triggers you can write your procedure/functions or call it like
    function AfterPForm return boolean is
    begin
    myprocedure(:mydate);
    return (TRUE);
    end;
    Thanks
    Jamil

Maybe you are looking for

  • SSTP VPN fails with Error 0x80092013 when certificate is issued by an Enterprise CA

    I have spent several days trying to configure an SSTP VPN in an environment with a 2008R2 Enterprise CA server without much luck. I have been using the example found at   http://technet.microsoft.com/en-us/library/cc731352(v=ws.10).aspx which works v

  • Use cellular data for iTunes Match & Radio but not app Updates

    Is there any way to set an iOS device so that it will allow using cellular data for iTunes Match and iTunes Radio but not downloading app Updates. I want to be able to set my wife's phone so that the apps are automatically updated over Wifi but she c

  • Can no longer use the same appleid on several iPads for FaceTime

    Hi there, Using iOS 6, I was able to have my appleid on the family iPads and by having 6 emails registered for FT, an email for each iPad, I was able to FT them INDIVIDUALLY, and they could FT each other INDIVIDUALLY as well. I was able to select and

  • How to drop several classes in a single command

    Is there any way to drop classes using wildcards? It is very anoying having to drop class by class instead of being able to specify something like com.whatever.*

  • Defaulting BP Roles in CRMM_ACCOUNT

    Hi, We are working with the PCUI in 4.0. Within the CRMM_ACCOUNT application we would like to default a specific BP role when a user is creating an account in the system. Currently when a user creates an account, the General BP, Activity Partner, Bil