DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Coonect to another server in stored procedure?

  1. #1
    Join Date
    Jun 2001
    Posts
    103
    Hi all.
    Can I connect to another oracle server in one stored procedure?
    Is it possible?
    If possible,What is syntax?
    connect? logon?
    Best regards.

  2. #2
    Join Date
    Oct 2000
    Posts
    467
    first create a db link from where you want to access data in your stored procedure.
    Once the db link is created you can use your stored procedures to access data from the other database using the @dblink clause.

    Vinit

  3. #3
    Join Date
    Oct 2000
    Posts
    467
    Sorry, the reply posted earlier is just a work around but i hope that is what you are intending to do. I do doubt if you can connect using the connect command.
    Vinit

  4. #4
    Join Date
    Jun 2001
    Posts
    103
    Hello vinit.
    Thank you very much for reply.
    I need connection to any DB server(Oracle,DB2,ODBC,...) in my stored procedure. db link can not do this operation.
    What is syntax for connection?
    I am waiting for reply.
    Cheers.

  5. #5
    Join Date
    Jul 2001
    Location
    Singapore(Asia)-WebCentre business company
    Posts
    456
    why do u need a connect from within a procedure to another server?
    ..so depends on ur purpose perhaps we can help?
    ngwh,
    Singapore.

  6. #6
    Join Date
    Oct 2001
    Posts
    4
    Hello ngwh
    we have some rows in oracle and need to insert into a supra dabase . we make a cursor and change connection and insert
    into supra . it's ok ?

  7. #7
    Join Date
    Jun 2001
    Posts
    103
    Hi friends.
    This thread will be continued by Mr. Bigdeli.
    He is my colleague.
    Best Regards.

  8. #8
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    i doubt it you can connect to a supra database from oracle without some kind of gateway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width