Solved

Can views be defined on dblinks

Posted on 2014-04-08
6
228 Views
Last Modified: 2014-06-18
Interview question - Can views be defined on dblinks
0
Comment
Question by:d27m11y
6 Comments
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 168 total points
ID: 39986951
YES
CREATE VIEW MyTable_at_Dblink
AS
SELECT * FROM MyTable@dblink;

Open in new window

:p
0
 
LVL 23

Assisted Solution

by:David
David earned 166 total points
ID: 39987005
Usual reminder to include synonyms and object privileges as appropriate.  And of course to pre-create the actual link :)
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 166 total points
ID: 39987007
The above post shows how to use a link in a view.

You question asked can be taken another way:
Can you use a view in the remote database with a database link?

That too is yes:
select * from some_view@dblink;

As long as the user used for the dblink has select access on the objects.
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 40124033
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 

Author Comment

by:d27m11y
ID: 40142100
Please close this question
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now