Solved

Can views be defined on dblinks

Posted on 2014-04-08
6
226 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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
oracle global variables 4 51
PL/SQL Two statements 6 50
sql for Oracle views 8 37
ORA-12560: TNS:protocol adapter error 8 48
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.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to take different types of Oracle backups using RMAN.

706 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

19 Experts available now in Live!

Get 1:1 Help Now