• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Can views be defined on dblinks

Interview question - Can views be defined on dblinks
0
d27m11y
Asked:
d27m11y
3 Solutions
 
MikeOM_DBACommented:
YES
CREATE VIEW MyTable_at_Dblink
AS
SELECT * FROM MyTable@dblink;

Open in new window

:p
0
 
DavidSenior Oracle Database AdministratorCommented:
Usual reminder to include synonyms and object privileges as appropriate.  And of course to pre-create the actual link :)
0
 
slightwv (䄆 Netminder) Commented:
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
 
Steve WalesSenior Database AdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 
d27m11yAuthor Commented:
Please close this question
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now