dbTalk Databases Forums  

from sql server to oracle to ANOTHER oracle

comp.databases.oracle.server comp.databases.oracle.server


Discuss from sql server to oracle to ANOTHER oracle in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alberto Marchi
 
Posts: n/a

Default from sql server to oracle to ANOTHER oracle - 11-10-2011 , 09:57 AM






I have a linked server to a oracle db, that works.

I have to write a query from sql server that connecto to the oracle
server, and the use a database link from that oracle db to another
oracle db. I'm not able to find the syntax.

I try to write something like

SELECT * FROM
LINKTOORACLE..mm510TAL.CSHDET@ORAGATE2

but it does not work

questions
1) is is possible to use nested dblinks ?
2) if so, how ?

thank you!

Reply With Quote
  #2  
Old   
onedbguru
 
Posts: n/a

Default Re: from sql server to oracle to ANOTHER oracle - 11-10-2011 , 08:27 PM






On Nov 10, 10:57*am, Alberto Marchi <alberto.rol... (AT) gmail (DOT) com> wrote:
Quote:
I have a linked server to a oracle db, that works.

I have to write a query from sql server that connecto to the oracle
server, and the use a database link from that oracle db to another
oracle db. I'm not able to find the syntax.

I try to write something like

*SELECT * FROM
* LINKTOORACLE..mm510TAL.CSHDET@ORAGATE2

but it does not work

questions
1) is is possible to use nested dblinks ?
2) if so, how ?

thank you!


use a synonym that points to the second linked table?

Reply With Quote
  #3  
Old   
Mark D Powell
 
Posts: n/a

Default Re: from sql server to oracle to ANOTHER oracle - 11-11-2011 , 02:28 PM



On Nov 10, 9:27*pm, onedbguru <onedbg... (AT) yahoo (DOT) com> wrote:
Quote:
On Nov 10, 10:57*am, Alberto Marchi <alberto.rol... (AT) gmail (DOT) com> wrote:





I have a linked server to a oracle db, that works.

I have to write a query from sql server that connecto to the oracle
server, and the use a database link from that oracle db to another
oracle db. I'm not able to find the syntax.

I try to write something like

*SELECT * FROM
* LINKTOORACLE..mm510TAL.CSHDET@ORAGATE2

but it does not work

questions
1) is is possible to use nested dblinks ?
2) if so, how ?

thank you!

use a synonym that points to the second linked table?- Hide quoted text -

- Show quoted text -
This is what we have done when going from one Oracle to another non-
sqlnet compatable version, that is, from Oracle_1 we reference an
object in Oracle_2 which is actuall just a remote synonym to Oracle_3.

If this will not work with SQL Server via ODBC/OLE then try replacing
the synonyms in the middle Oracle with views that reference the
objects in the second Oracle.

HTH -- Mark D Powell --

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.