Creating a Oracle 10g stored procedure as a datasource for  crystal 9 repor

Can someone direct me to instructions or information on how to create a Oracle 10g stored procedure as a datasource for  my Crystal  Reports 9.0  report?

i've found this example for you
http://www.pdssoftware.com/newsletter/mar07/page6.htm
and you could be able to get the guides from the SAP guide website for the products
http://help.sap.com/businessobject/product_guides/
hope this was helpful
good luck
Amr

Similar Messages

  • Connect the schema via oracle 10g stored procedures

    Hi,
    How to connect the another schema through the oracle stored procedures?.I have the 3 in parameters like username,password,hoststring
    and i have admin password also.For example i have logged to the admin user and i need to execute the procedures with 3 in parameters.i want to connect the another schema through the stored procedures with crenditials(3 in parameters).The stored procedures has been created in admin user.
    Please give me your ideas ASAP.
    Thanks&Regards
    N.Sivaraman

    Create procedure create_db_link (user, paswword, host) as
    begin
    execute immediate' CREATE DATABASE LINK TEST CONNECT TO  || user || ' IDENTIFIED BY  || paswword || '  USING ''' || host || ''';
    end;
    Create procedure drop_db_link as
    begin
    execute immediate' DROP DATABASE LINK TEST';
    end;
    Create procedure main as
    begin
    create_db_link;
    select whateever into v_whatever from TableA@test;
    drop_db_link;
    end;

  • How to use a stored procedure as a datasource in Crystal Report for Eclipse

    Hi All,
    I've written a stored procedure in oracle 10g with few input parameters and one refcursor output parameter. I want to use this stored procedure as a data source for creating a report in "Crystal Report For Eclipse 3.6.0".
    When I tried to add this stored procedure to the report using the connection explorer, I don't see any option to do this. But when I try to add any table, it shows options like "Add to the current report"....
    Can anybody assist me how to use a stored procedure as a data source in "Crystal Report For Eclipse"?
    Which driver should I use to connect to the oracle database? I tried using JDBC Driver for Oracle.
    Thanks in advance.

    Did you solve your problem? How did you do?

  • How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?

    Hi
    How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
    This is my Input data.
    11/25/2007.
    By using below query, it is inserted into database.
    sql>Insert into tblname values(to_date('11/25/2007','MM/DD/YYYY'));
    But using stored procedure, the same query is not running.
    It shows error like
    ORA-01843: not a valid month ORA-06512: at line 1
    Procedure:
    create or replace procedure Date_Test(datejoin in DATE) is
    begin
    insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    end Date_Test;
    I had used 'nls_date_language = american' also.
    Prcodeure is created but not worked in jsp. The same error is thrown.
    Pls provide a solution

    This might help you....
    SQL> Create Table DateTest(col1 Date);
    Table created.
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    BEGIN Date_Test('11/25/2007'); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    BEGIN Date_Test(To_Date('11/25/2007','mm/dd/yyyy')); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at "CTBATCH.DATE_TEST", line 3
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(datejoin);
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> Select * from DateTest;
    COL1
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in VarChar2) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'mm/dd/yyyy'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select * from DateTest;
    COL1
    25-NOV-07
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL>

  • Creating Threads in Java Stored procedures

    Can I create threads inside Java Stored procedures?
    or is there a restriction?
    Thanks
    Kal

    Can I create threads inside Java Stored procedures?
    or is there a restriction?
    Thanks
    Kal Hi Kal,
    I don't mean to be rude, but have you tried it? Personally, I
    haven't tried it (since I didn't have the need).
    You don't say what version of Oracle DBMS you are using, but I
    am using 8.1.7.3 on Solaris 7, and according to Oracle's
    "Oracle 8i Java Developer's Guide", there is no restriction
    (of-course, that depends on what you call a "restriction" :-)
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83728/03writ11.htm#1003094
    Hope this helps.
    Good Luck,
    Avi.

  • Is is possible to create Socket using Java Stored Procedures/Function(Ora)?

    Hello Friends,
    Is is possible to create Socket using Java Stored Procedures/Function in Oracle?
    OR
    How I can send a message from oracle to Java Desktop Application which is working like server program?
    Please Guide !!

    J3Ganesh wrote:
    Hello Friends,
    Is is possible to create Socket using Java Stored Procedures/Function in Oracle?No, Oracle was very careful to take that feature out of the JDK provided in Oracle 10/11, but you can buy that feature back for, if I remember correctly, about 5000 dollars. (I actually raised a service request on this and then told my rep what I thought about the answer I received--some thing along the line of money grubbing so and so....)
    How I can send a message from oracle to Java Desktop Application which is working like server program?You can make a table and poll it from time to time from the Java side and write and commit what ever you want to the table. I do not know any way to send a signal from Oracle DB an external Java application--Java or PL/SQL stored procedure.

  • CREATE SEQUENCE from a stored procedure

    Hello,
    Is it possible, to create a sequence object from an own written stored procedure? Can I reinitialize the actual value of a sequence object without recreating it from a stored procedure?
    Thank you for recommendations,
    Matthias Schoelzel
    EDV Studio ALINA GmbH
    Bad Oeynhausen

    maybe this example might be of some help.
    SQL> create or replace procedure dy_sequence (pSeqName varchar2,
      2                                           pStart number,
      3                                           pIncrement number) as
      4    vCnt     number := 0;
      5  begin
      6    select count(*) into vCnt
      7      from all_sequences
      8     where sequence_name = upper(pSeqName);
      9 
    10    if vCnt = 0 then
    11      execute immediate 'create sequence '||pSeqName||
    12                        ' start with '||to_char(pStart)||
    13                        ' increment by '||to_char(pIncrement);
    14    else
    15      execute immediate 'alter sequence '||pSeqName||' increment by '||to_char(pIncrement);
    16    end if;
    17  end;
    18  /
    Procedure created.
    SQL> -- create the sequence by calling the dy_sequence procedure
    SQL> execute dy_sequence ('test_sequence',1,1);
    PL/SQL procedure successfully completed.
    SQL> select test_sequence.nextval from dual;
       NEXTVAL
             1
    SQL> -- alter the sequence to increment by 2
    SQL> execute dy_sequence ('test_sequence',0,2);
    PL/SQL procedure successfully completed.
    SQL> select test_sequence.nextval from dual;
       NEXTVAL
             3
    SQL>

  • Problem creating dataset using db2 stored procedure in Eclipse BIRT

    Hi,
    I am using DB2 9.7 Express Edition in Eclipse BIRT(version 2.5.1) for generating reports. I have used Type4 driver for jdbc connection.
    For that, I have established jdbc connection using db2jcc.jar and db2jcc_license_cu.jar files.
    I have successfully created data source, say DB2BIRT having following requisites-
    Driver Class - com.ibm.db2.jcc.DB2Driver ( v3.50)
    Driver URL - jdbc:db2://localhost:50000/database_name
    User name - user_name
    Password - Password
    I have written some stored procedures and trying to use resultsets from those stored procedures into my report..
    The stored procedures having involvement of only single resultset are working absolutely fine for new dataset using above DB2BIRT.
    But, I am unable to create new dataset using stored procedures those having involvement of multiple resultsets.
    I am getting following error as -
    org.eclipse.birt.data.engine.odaconsumer.PreparedStatement$SequentialResultSetHandler getMoreResults
    SEVERE: Cannot get more result sets from the statement.
    Cannot get the result set.
    SQL error #1: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
    org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot get the result set.
    SQL error #1: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
    com.ibm.db2.jcc.b.SqlException: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
    at org.eclipse.birt.report.data.oda.jdbc.CallStatement.getMoreResults(CallStatement.java:1760)
    at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaAdvancedQuery.getMoreResults(OdaAdvancedQuery.java:214)
    at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement$SequentialResultSetHandler.getMoreResults(PreparedStatement.java:5183)
    at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.getMoreResults(PreparedStatement.java:792)
    at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.flushResultSets(PreparedStatement.java:1009)
    at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.close(PreparedStatement.java:980)
    at org.eclipse.birt.data.engine.executor.DataSource$DataSourceReleaser.run(DataSource.java:374)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.ibm.db2.jcc.b.SqlException: [jcc][10120][10943][3.50.152] Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null
    at com.ibm.db2.jcc.b.wc.a(wc.java:55)
    at com.ibm.db2.jcc.b.wc.a(wc.java:102)
    at com.ibm.db2.jcc.b.tk.db(tk.java:3118)
    at com.ibm.db2.jcc.b.tk.a(tk.java:1063)
    at com.ibm.db2.jcc.b.tk.getMoreResults(tk.java:908)
    at org.eclipse.birt.report.data.oda.jdbc.CallStatement.getMoreResults(CallStatement.java:1756)
    ... 7 more
    Moreover, I tried to resolve above issue by changing Driver Class from com.ibm.db2.jcc.DB2Driver ( v3.50) to com.ibm.db2.jcc.uw.DB2StoredProcDriver ( v3.50)
    So again while *"Test Connection"* for new Data source using this new driver class for stored procedure, there is an error reflection as -
    org.eclipse.birt.report.data.oda.jdbc.JDBCException: The selected driver cannot parse the given url.
    at org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.testConnection(JDBCDriverManager.java:627)
    at org.eclipse.birt.report.data.oda.jdbc.ui.util.DriverLoader.testConnection(DriverLoader.java:120)
    at org.eclipse.birt.report.data.oda.jdbc.ui.util.DriverLoader.testConnection(DriverLoader.java:133)
    at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper.testConnection(JDBCSelectionPageHelper.java:653)
    at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper.access$7(JDBCSelectionPageHelper.java:627)
    at org.eclipse.birt.report.data.oda.jdbc.ui.profile.JDBCSelectionPageHelper$7.widgetSelected(JDBCSelectionPageHelper.java:549)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.birt.report.designer.ui.dialogs.BaseDialog.open(BaseDialog.java:110)
    at org.eclipse.birt.report.designer.data.ui.actions.EditDataSourceAction.doAction(EditDataSourceAction.java:68)
    at org.eclipse.birt.report.designer.internal.ui.views.actions.AbstractElementAction.run(AbstractElementAction.java:70)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    Can anybody address my this issue for successful implementation of stored procedure(with involvement of multiple resultsets) for creating Data set in Eclipse BIRT ?
    I will be really thankful.
    Thanks in advance,
    Manasi

    Well, in my stored procedure I have used 2 to3 cursors(as per my business logic) and all cursors except one are holding result sets. That exceptional cursor is intended for holding as well as returning result set after call to the procedure. And its perfectly running on db2 and returning the desired output. The problem is with Eclipse. The same procedure is not working in Eclipse BIRT.

  • Creating universe from MySql stored procedure?

    Hi,
    I am new to BusinessObjects. I need to create universes based on the schema in our MySql database. However, when I tried to create one from a stored procedure, I fount that I wasn't allowed to do that or the option to insert a stored procedure was grayed out.
    Is it true that universe creation from MySql stored procedures not supported, or is it just something I didn't do right? Is there any workaround?
    Thanks in advance!

    jason Lee,
    You cannot combine universes with table structures with that of the stored procedures.Thats the reason in the existing universe the option is greyed out to insert stored procedures. You need to create a new universe thru design wizard and check the option to "create a universe through the stored procedure" in the first page.
    Let me know your results
    Thanks,
    Karthik

  • How many tables can i create in Oracle 10g ?

    hi every body !
    how many tables can create in oracle 10g ?
    thank you !

    Unlimited
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/limits003.htm

  • How to create stored procedures and use those in Crystal reports

    Hi All,
    Can anyone explain me how to create a stored procedure and use that stored procedure in Crystal reports. As I have few doubts in this process, It would be great if you can explain me with a small stored proc example.
    Thanks in advance.

    Hello,
    There is a document explainining how to use Oracle stored proc with Crystal reports.
    Check at:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1084c536-711e-2b10-e48a-924a60745253
    It is for older version but it should work and you can refer to it to get general idea how to start with it. It has a sample oracle stored proc and how to connect it from Crystal Reports.

  • Create table statement in stored procedures

    Hi,
    I am including the following statement in a stored procedure and receive the following error:
    STATEMENT:
    create table wrk_date (date date,
    qty smallint)
    tablespace temptabs;
    ERROR:
    PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
    begin declare exit for goto if loop mod null pragma raise
    return select update while <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql commit <a single-quoted SQL string>
    Is this statement not allowed or is there a possible syntax error above?
    I am using Oracle database version 8.0.5.
    Thanks.
    null

    Jimmy - You might want to buy the Following book from Oreilley Press Oracle Built in Pacakages it's very very good and came in handy when I has to write dynamic SQL (DBMS_SQL package).
    You might want to try www.bookpool.com which has technical books cheaper than amazon.
    Hope this helps.
    _Satish
    Oracle 8 Certified D.B.A.
    Sun Certified Sysadmin

  • How to see the table in se11 that has been created in oracle 10g directly

    hi,
    how to see the table in se11 that has been created at SQL> prompt in oracle 10g directly ?
    is there any procedure to attache directly created table  into sap ?

    I think you have to create it in SE11 first. Although you can probably use native SQL to access it from an ABAP program.
    Rob

  • Bug? SQL server 7 - Oracle 8i stored procedures

    I'm having a problem converting some SQL 7 stored procedures to Oracle using MW. The cursor definition appears to be garbage in some cases. See example as follows:
    *********** SQL 7 stored procedure *********
    CREATE PROCEDURE CLCClaim
    /* Procedure: CLCClaim */
    /* Description: Cascading delete to child tables */
    /* Table: CLClaim */
    /* Generated: 4/23/01 2:31:21 PM */
    @AuditUserId int,
    @AuditLctn varchar(20),
    @ClaimId int
    AS
    DECLARE
    @Trncnt int,
    @ErrorNumber int,
    @Id int,
    @Rows int,
    @ClsnId int
    SELECT @ErrorNumber = -1
    /* Save transaction count value */
    SELECT @Trncnt = @@TRANCOUNT
    /* Issue begin transaction if not already in a transaction */
    If @Trncnt = 0
    BEGIN TRANSACTION T1
    /* Build a cursor for finding child CLClaimAtchm rows */
    DECLARE CLClaimAtchmCursor Cursor For
    SELECT ClaimAtchmId, ClsnId
    FROM dbo.CLClaimAtchm
    WHERE ClaimId = @ClaimId
    /* Open the cursor */
    OPEN CLClaimAtchmCursor
    SELECT @ErrorNumber = @@ERROR
    If @ErrorNumber <> 0 GoTo ErrorHandler
    FETCH Next
    FROM CLClaimAtchmCursor
    INTO @Id, @ClsnId
    ... more follows, but this is the gist of it
    **** Oracle Procedure created by MW
    CREATE OR REPLACE PROCEDURE CLCClaim(
    AuditUserId NUMBER ,
    AuditLctn VARCHAR2 ,
    ClaimId NUMBER )
    AS
    StoO_selcnt INTEGER;
    StoO_error INTEGER;
    StoO_rowcnt INTEGER;
    StoO_crowcnt INTEGER := 0;
    StoO_fetchstatus INTEGER := 0;
    StoO_errmsg VARCHAR2(255);
    StoO_sqlstatus INTEGER;
    Trncnt NUMBER(10,0);
    ErrorNumber NUMBER(10,0);
    Id NUMBER(10,0);
    Rows_ NUMBER(10,0);
    ClsnId NUMBER(10,0);
    CURSOR CLClaimAtchmCursor IS SELECT omwb_emulation.globalPkg.trancount
    FROM CLClaimAtchm
    WHERE ClaimId = CLCClaim.ClaimId;
    CURSOR CLClaimDiagCursor IS SELECT StoO_error
    FROM CLClaimDiag
    WHERE ClaimId = CLCClaim.ClaimId;
    CURSOR CLClaimAdjdCursor IS SELECT StoO_error
    FROM CLClaimAdjd
    WHERE ClaimId = CLCClaim.ClaimId;
    CURSOR CLSvcLineCursor IS SELECT StoO_error
    FROM CLSvcLine
    WHERE ClaimId = CLCClaim.ClaimId;
    /* Procedure: CLCClaim */
    /* Description: Cascading delete to child tables */
    /* Table: CLClaim */
    /* Generated: 4/23/01 2:31:21 PM */
    /* Save transaction count value */
    BEGIN
    CLCClaim.ErrorNumber := -1;
    /* Issue begin transaction if not already in a transaction */
    CLCClaim.Trncnt := omwb_emulation.globalPkg.trancount;
    IF CLCClaim.Trncnt = 0 THEN
    /* Build a cursor for finding child CLClaimAtchm rows */
    /* Emulating @@TRANCOUNT functionality in Oracle model */
    omwb_emulation.globalPkg.trancount:=omwb_emulation.globalPkg.trancount+1;
    SAVEPOINT T1;
    END IF;
    NULL;/*DECLARE CURSOR CLClaimAtchmCursor */
    /* Open the cursor */
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    OPEN CLClaimAtchmCursor;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    END;
    CLCClaim.ErrorNumber := StoO_error;
    IF CLCClaim.ErrorNumber <> 0 THEN
    GOTO ErrorHandler;
    END IF;
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    FETCH CLClaimAtchmCursor INTO CLCClaim.Id, CLCClaim.ClsnId;
    EXCEPTION
    WHEN OTHERS THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    END;
    ...more follows, but the error is in the SELECT clause of the CURSOR declaration
    I'm having to manually fix the CURSOR declarations for these converted procedures.
    Is there a fix or workaround to prevent me from growing my collection of gray hairs?
    Thanks,
    Billy Smith

    William,
    I did a quick check on our latest code and got the following output:
    CREATE OR REPLACE PROCEDURE CLCClaim(
    AuditUserId INTEGER DEFAULT NULL,
    AuditLctn VARCHAR2 DEFAULT NULL,
    ClaimId INTEGER DEFAULT NULL)
    AS
    StoO_selcnt INTEGER;
    StoO_error INTEGER;
    StoO_rowcnt INTEGER;
    StoO_crowcnt INTEGER := 0;
    StoO_fetchstatus INTEGER := 0;
    StoO_errmsg VARCHAR2(255);
    StoO_sqlstatus INTEGER;
    Trncnt INTEGER;
    ErrorNumber INTEGER;
    Id INTEGER;
    Rows INTEGER;
    ClsnId INTEGER;
    CURSOR CLClaimAtchmCursor IS
    SELECT ClaimAtchmId, ClsnId
    FROM /*standalone*/sa.CLClaimAtchm
    WHERE ClaimId = CLCClaim.ClaimId;
    /* Procedure: CLCClaim */
    /* Description: Cascading delete to child tables */
    /* Table: CLClaim */
    /* Generated: 4/23/01 2:31:21 PM */
    /* Save transaction count value */
    BEGIN
    CLCClaim.ErrorNumber := -1;
    /*[SPCONV-ERR(26)]:('@TRANCOUNT') Global Variable treated as variable*/
    /* Issue begin transaction if not already in a transaction */
    CLCClaim.Trncnt := CLCClaim.TRANCOUNT;
    IF CLCClaim.Trncnt = 0 THEN
    /* Build a cursor for finding child CLClaimAtchm rows */
    SAVEPOINT T1;
    END IF;
    NULL;/*DECLARE CURSOR CLClaimAtchmCursor */
    /* Open the cursor */
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    OPEN CLClaimAtchmCursor;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    END;
    CLCClaim.ErrorNumber := StoO_error;
    IF CLCClaim.ErrorNumber <> 0 THEN
    GOTO ErrorHandler;
    END IF;
    BEGIN
    StoO_error := 0;
    StoO_rowcnt := 0;
    StoO_crowcnt := 0;
    FETCH CLClaimAtchmCursor INTO
    CLCClaim.Id, CLCClaim.ClsnId;
    EXCEPTION
    WHEN OTHERS THEN
    StoO_rowcnt := 0;
    StoO_selcnt := 0;
    StoO_error := SQLCODE;
    StoO_errmsg := SQLERRM;
    END;
    IF CLClaimAtchmCursor%NOTFOUND THEN
    StoO_sqlstatus := 2;
    StoO_fetchstatus := -1;
    ELSE
    StoO_sqlstatus := 0;
    StoO_fetchstatus := 0;
    END IF;
    END CLCClaim;
    If this is not sufficient please give a complete testcase and migration workbench version to support email address: [email protected] so the bug can be reproduced and logged.
    Turloch
    Oracle Migration Workbench Team

  • Oracle Packaged Stored Procedure

    I am failing in an attempt to access an Oracle database using the following php.
    The calls I have tested are as follows:-
    $query = "begin spPackage.spMemberDetails(:p_number,:cv_memberdetails); end;";
    $stmt = OCIParse($conn, $query )
    or die('Cannot parse query');
    OCIBindByName($stmt,":p_number",$number, -1)
    or die('First cannot bind variable');
    OCIBindByName($stmt, ":cv_memberdetails", &$array, -1)
    or die('Second cannot bind variable');
    OR
    $query = "begin spPackage.spMemberDetails(:p_number); end;";
    $stmt = OCIParse($conn, $query )
    or die('Cannot parse query');
    OCIBindByName($stmt,":p_number",$number, -1)
    or die('First cannot bind variable');
    I get the following error message:-
    ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'SPMEMBERDETAILS' ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    begin spPackage.spMemberDetails(:p_number); end;
    ^
    The 1st part of the stored procedure I am trying to use is as follows:-
    CREATE OR REPLACE PACKAGE "BIG"."SPPACKAGE" AS
    type memberdetail_type is record (
    r_mem_number members.mem_number%type,
    r_mem_sname members.mem_sname%type,
    r_mem_fname members.mem_fname%type,
    r_mem_title members.mem_title%type);
    type memberdetail_cur_type is ref cursor return memberdetail_type;
    PROCEDURE spMemberDetails(
    p_number cards.card_number%type, --varchar2                                 
    cv_memberdetails out memberdetail_cur_type);
    Please tell me what I am not understanding and where I have gone wrong.
    BTW I did not write the stored procedure.
    Message was edited by:
    user446320

    See Re: Calling stored procedure from php script.
    -- CJ

Maybe you are looking for

  • Expression help in SSIS!!!

    Hi, I have the below expression: ISNULL(@[User::PROCESS_DATE]) || TRIM (@[User::PROCESS_DATE]) == "" ? "1900-01-01" : (@[User::PROCESS_DATE]) == SUBSTRING(@[User::PROCESS_DATE],1,4) + "-" + SUBSTRING(@[User::PROCESS_DATE],5,2) + "-" + "1" i get the f

  • Hard Drives won't sleep..

    I first installed Leopard on my machine in August 2008 and after about 15 minutes of no activity it would put my system/hard drives to sleep. I could walk in the room and wouldn't hear any sounds coming from the computer. Earlier this week, I had to

  • ORA-01722 when opening a package in SQL Developer 1.2 with oracle 9iR1

    Hi, I use SQL Developer with Oracle Database 9i release 1. When I open a package in SQL Developer 1.2 (or 1.5) for editing, I receive the error ORA-01722. The package successfully opens but this message, which pops everytime, is really annoying. I mo

  • URGENT : How to retrieve Last Accessed Timestamp for all Users in GRC

    Dear Experts, Please help me with this urgent request. Appreciate your help in advance. My client is trying to understand the usage of the GRC application and would like to know information regarding the Last Accesse Time for all users who have logge

  • Characteristic derivation in COPA

    Hi I need to program a piece of code that retrieves a specific value out of a deriviation rule on SPART. Anyone now of a functionmodule/BAPI that can do this. Have been debugging transaction KEDE hours on end but have not found the "holy grail" yet.