Avatar of lunadl
lunadl
Flag for United States of America asked on

Synchronize read only view in SQL Server with view in Oracle

I have a SQL Server 2005 running a server and I would like to have a view/table created based on the contents of an existing view on a remote Oracle Server. All the permissions are configured and the Oracle home has been installed. Query the view on Oracle from my app server is too slow so I need the app to query a table/view on the SQL Server. It will be read only and no need to for updating. The title says synchronized but setting up the table to update incrementally is fine as well.
Microsoft SQL ServerOracle Database

Avatar of undefined
Last Comment
Paulo Pimenta

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Paulo Pimenta

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
lunadl

ASKER
Sure did help, I have the linked database, called ORACLE_LINK. Now, doing a simple select from this is tripping me up. I want to select a view called my_info. Why won't this work:
Select * from ORACLE_LINK..APPS.my_info
SOLUTION
Paulo Pimenta

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
lunadl

ASKER
I got it to work by using openquery within the select statement, but it still runs just as slow since its querying Oracle directly. To get static versions of the view on my local sql server how would i go about doing that. A high-level response will suffice. Thank you for your quick response.
lunadl

ASKER
Ones that are updated regularly at intervals.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
SOLUTION
Paulo Pimenta

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.