简体   繁体   English

在SQL Developer中显示数据库链接的数据库中的表

[英]Display tables from a DB linked Database in SQL Developer

I have a normal Oracle schema where I can see all the tables and if you click on one, it pops up a new tab with the contents in it, perfect. 我有一个普通的Oracle模式,可以在其中看到所有表,如果单击其中一个,它会弹出一个新的选项卡,其中包含所有内容,非常完美。

I also have a Database that is connected via DbLink, and I can see all the tables when I execute a query: 我还有一个通过DbLink连接的数据库,执行查询时可以看到所有表:

SELECT TABLE_NAME FROM ALL_TABLES@TARGET_DB;

However, I would like this list from the above query to show up similarly how tables are displayed under the schema of a normal database. 但是,我希望上述查询中的此列表能够类似地显示在普通数据库的模式下如何显示表。 Is this possible with SQL Developer ? SQL Developer有可能吗?

By "pop up", if you are talking about "completion insight" property of the SQL developer code editor, I am pretty sure the vanilla SQL developer doesn't provide the completion insight for remote tables queried using dblinks (Not atleast the version 3). 通过“弹出”,如果您在谈论SQL开发人员代码编辑器的“完成洞察力”属性,我可以肯定香草SQL开发人员不会为使用dblinks查询的远程表提供补全洞察力(版本3以上) )。

I don't think the devs would bother to add this feature, as it would simply make the code editor work more and give a sluggish end user experience for the developer. 我认为开发人员不会费心添加此功能,因为它只会使代码编辑器工作更多,并给开发人员带来缓慢的最终用户体验。 Think about all the extra parsing work and network delays before the code completion popup appears. 在代码完成弹出窗口出现之前,请考虑所有额外的解析工作和网络延迟。

Update based on your comment: It looks like you want to add a new connection. 根据您的评论进行更新:您似乎想添加新的连接。 To add a new connection, 要添加新的连接,

  1. Right click on the "Connections" in the left pane and select "New Connection" 右键单击左窗格中的“连接”,然后选择“新建连接”
  2. Fill in the DB details (credentials, hostname,port,etc.,) in the resulting form 在结果表单中填写数据库详细信息(凭证,主机名,端口等)

PS: This should belong in superuser. PS:这应该属于超级用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM