Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2004, 06:04 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to pratap_routray Send a message via Yahoo to pratap_routray
Default Connecting to a remote database server

Hi,
I have a problem where from within a store procedure getting executed in a DBase server, say, DB1, I want to connect to another remote database server say DB2 to get something retrieved so that the retrieved info could be used inside the stored procedure on DB1.

How can I do..Any help will be appreciated..
Off course, user id and pwd and IP and SID would be passed as parameters to the stored procedure.

Regards,
Pratap,India
 
Old December 31st, 2004, 06:02 AM
Authorized User
 
Join Date: Dec 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried using Data Link,

The creation syntax is,
Create Database link test_link connect to scott idetified by tiger using 'test.db';

--Where test.db is the TNS String Name which connects to the remote Dabtabase. This TNS String should be made in your db server pointing to remote DB server.
--Make the DB Link name same as that of GLOBAL_NAME of the remote DB.


Now you can select any table from the remote db using,

select * from emp@test_link;

Sujit

 
Old May 18th, 2007, 12:27 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I Just try that, it is ok
But when I receive some row (recordset) from remote database it reponse timeout
????

 
Old October 18th, 2007, 08:21 AM
Authorized User
 
Join Date: Oct 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

U can set timeout,the session will be increased.

With thanks
rajesh,
India





Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting to a remote Access Project Database bright_mulenga Access 3 August 23rd, 2006 06:18 AM
connecting to a remote Access Project Database bright_mulenga Access 2 August 15th, 2006 06:33 AM
connecting web server and remote db server via asp moreyt Classic ASP Databases 0 May 31st, 2005 12:13 AM
connect from web server to remote database Durwood Edwards Classic ASP Databases 0 June 24th, 2004 01:03 PM
connecting to remote server moushumi SQL Server 2000 3 March 29th, 2004 07:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.