[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::rdb_60

Title:Oracle Rdb - Still a strategic database for DEC on Alpha AXP!
Notice:RDB_60 is archived, please use RDB_70..
Moderator:NOVA::SMITHISON
Created:Fri Mar 18 1994
Last Modified:Fri May 30 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5118
Total number of notes:28246

4978.0. "TG4RDB and Stored procedures" by UKVMS3::RKNIGHT () Wed Jan 29 1997 11:30

    I know that this may be the wrong conference, but I am getting a little
    desperate.
    
    I am trying to call a stored procedure defined within a version 6.0-15
    Rdb Database from an Oracle RDBMS 7.1.5.2.4.  I have installed the
    TG4RDB (Oracle's transparent gateway to Rdb) and have successfully
    selected data from the Rdb database.
    
    I am hoping that someone reading this may have had a similar experience
    and give me a few pointers or some examples.
    
    Thanks
    
    Richard
T.RTitleUserPersonal
Name
DateLines
4978.1more info needed....NOVA::BRYDENWed Jan 29 1997 15:018
        Could you perhaps elaborate on what problems you are seeing? What
        does the procedure do? Can you see your process attach in the
        monitor log? Is the call the only thing being done in the attach?
        If you select data prior to making the call is that successful?
        
        I think we need a bit more info before we can help/
        
        Dave
4978.2Thanks for the reply, butUKVMS3::RKNIGHTThu Jan 30 1997 04:372
    Actually, all I want to know is if it can be done and an example of how
    to call it from the Oracle SQLPLUS session.
4978.3Ha, I am not alone!chsr38.ch.oracle.com::ROHRThe Packers did it!Thu Jan 30 1997 05:159
    >>>  Actually, all I want to know is if it can be done and an example of how
    >>>  to call it from the Oracle SQLPLUS session.
         
    Me two. 
    
    I have a request open with INFODEC.us and Response.uk (TAR 837602.1)
    for this. Happy to see I am not alone...
    
    /Regina 
4978.4Don't worry - but you are aloneukvms3.uk.oracle.com::PJACKSONOracle UK Rdb SupportThu Jan 30 1997 07:0914
>    I have a request open with INFODEC.us and Response.uk (TAR 837602.1)
>    for this. Happy to see I am not alone...
    
    Sorry, but I gave your TAR to Richard :-(
    
    I think that what you need to do to make the call is to create a link
    to the Rdb database, and then invoke the procedure as you would an
    Oracle7 remote procedure. From SQL*Plus I think it is something like
    
    EXECUTE procname@link(param);
    
    I haven't tried it though - I've just had a look at the manuals.
     
    Peter
4978.5Why does this end up in the Rdb camp?chsr38.ch.oracle.com::ROHRThe Packers did it!Thu Jan 30 1997 07:3013
    
    >>>  Sorry, but I gave your TAR to Richard :-(
                
    Wait a minute: you mean I have a question about an original Oracle
    product (as compared to an ex-DEC product), submit it to the what I
    think correct channel with people who should know, and it ends up in 
    our camp anyway just because there is Rdb on the other end? 
    
    At least you seem to have documentation, so I'll leave it with you
    guys...  ;-)
    
    /Regina
     
4978.6ukvms3.uk.oracle.com::PJACKSONOracle UK Rdb SupportThu Jan 30 1997 08:1512
>                   -< Why does this end up in the Rdb camp? >-
    
    The email mentioned Rdb so it was forwarded to the Rdb Support group
    recipient - me. I saw that it didn't belong in our group, so I spoke to
    someone in the right group - Richard, who has abandoned Rdb for the
    delights of supporting Oracle7 :-) Since he has been rather busy today,
    I thought I would try to help, by looking in the manual.
    
    Besides, I suspect that such calls will be moving to our group when
    native connect is released.
    
    Peter
4978.7what errors were being returned?NOVA::BRYDENThu Jan 30 1997 15:398
        
        I would still like to know what happens when you try to invoke the
        procedure. does Rdb generate errors? if so what are they?
        
        .0 said that they could attach to the database and run a select,
        so we know that the attach works, what happens with the procedure?
        
        Dave
4978.8No errors so farukvms3.uk.oracle.com::PJACKSONOracle UK Rdb SupportFri Jan 31 1997 04:2014
>        I would still like to know what happens when you try to invoke the
>        procedure. does Rdb generate errors? if so what are they?
    
    We haven't tried it yet. We were trying to work out how to do it. The
    syntax is different from Rdb (no CALL statement) and the Oracle7 Server
    SQL Reference manual has nothing about invoking a procedure.
    
    Richard is going to try it this morning (I don't know how to invoke
    SQL*Plus).
    
    Will some future version of SET DIALECT ORACLE LEVELn allow procedures
    to be invoked without using CALL?
    
    Peter
4978.9More info requiredUKVMS3::RKNIGHTFri Jan 31 1997 04:5832
    Right, I have tried to run a procedure from an Oracle SQL*Plus
    session.  The database link from Oracle to Rdb works ok as i explained
    in 0.  However, when I do the call to the procedure using the format
    below which myself and Pete have managed to decifer from the manuals I
    getthe error message given:
    
    SQL> begin
      2  p1@rkrdb('10');
      3  end;
      4  /
    p1@rkrdb('10');
    *
    ERROR at line 2:
    ORA-06550: line 2, column 1:
    PLS-00313: 'P1' not declared in this scope
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    
    The procedure P1 is defined within Rdb as:
    
    CREATE MODULE DATA_INSERT
      LANGUAGE SQL
      AUTHORIZATION RKNIGHT
    PROCEDURE P1
         ( :X CHAR(5) );
         BEGIN
           INSERT INTO S (SNUM) VALUES (:X);
         END;
    END MODULE;
    
    Richard
    
4978.10And the answer from INFODEC is...chsr38.ch.oracle.com::ROHRThe Packers did it!Mon Feb 03 1997 03:1325
    Received:                       Sent: February 2, 1997 11:07pm
    From:     Marcus MacNeill <MMACNEIL.US.ORACLE.COM>
    To:       RROHR.CH
    Subject:  Fwd: Question about TG4Rdb
    Cc:       infodec
    Quote:  In chaos, the experienced business traveller finds opportunity.
    
    Hi Regina,
    
    I'm afraid the answer is no.  Base development introduced the ability
    to call stored procedures from a transparent gateway starting with the
    transparent gateway 4.0 kernel.  Although we have ported 4.0 internally, 
    we are not planning a 4.0-based TG4RDB release until we receive a version 
    of the transparent gateway toolkit that is built on R7.3 (the current
    4.0 kernel is built on 7.2).
    
    For more information about where we stand regarding TG4RDB and TG4RMS,
    please see the current OpenVMS Product Line Update on the Corp
    Repository (under the "Digital" InfoKit).
    
    Regards,
    
    -- Mac