I am new to this forum and already searched for 45 minutes to find a solution for my problem. I hope you can help me.
A Gateway to a remote Microsoft SQL Database
was installed on a Oracle Server (Oracle 12c
). The tsnnames.ora
file was appropiately set up.
For the connection, I created a database link (In the Oracle DB) as follows:
CREATE DATABASE LINK TEL CONNECT TO "fb_B2C" IDENTIFIED BY "passwort" USING 'dg1msql';
When I now execute the Select statement:
SELECT "name" FROM "sys"."databases"@TEL
it shows me the according databases. Among others, I can see the AB_Colors
database.
Now, I want to select a view in the AB_Colors
database.
Due to the fact I can connect to this database via Excel, I know that in the database AB_Colors, there are 10 Views(A,B,C,..). I would like to select the View C from the database AB_Colors
via the DB LInk.
Owner of the View is b2b
.
How do i need to formulate the select statement to do it?
I already tried different writings:
SELECT * FROM b2b.C@TEL;
SELECT * FROM "AB_colors"."b2b"."C"@TEL;
SELECT * FROM [AB_Colors].[b2b].[C]@TEL;
The common error message is: View/Table does not exist
I highly appreciate your help,
Fedja