[英]How to view other users' objects like mine in Oracle SQL Developer?
When I access other users' objects, I can do something like当我访问其他用户的对象时,我可以做类似的事情
select * from user_2.booking_table;
given that I have the privileges over user_2
's objects.鉴于我对user_2
的对象拥有特权。
Using the console, I know I can do使用控制台,我知道我可以做到
alter session set current_schema=user_2;
to avoid prefixing user_2
in front of object's name - so I can do避免在对象名称前添加user_2
前缀 - 所以我可以这样做
select * from booking_table;
as if booking_table
is my table without specifying user_2
each time.好像booking_table
是我的桌子,但每次都没有指定user_2
。
If I want to bring similar idea to GUI client...如果我想给 GUI 客户端带来类似的想法......
Using Oracle SQL Developer, under each connection, I know I can browse other users' objects under the tree node Other Users
> user_2
> Tables
/ Views
/ Indexes
etc...使用 Oracle SQL Developer,在每个连接下,我知道我可以在树节点Other Users
> user_2
> Tables
/ Views
/ Indexes
等下浏览其他用户的对象...
Is there anyway I can "import" user_2
's objects so that they appear under my Tables
, Views
, Indexes
, etc under the connection, as if they look like they are my objects?无论如何我可以“导入” user_2
的对象,以便它们出现在我的Tables
、 Views
、 Indexes
等下的连接下,就好像它们看起来像是我的对象一样?
No. We show you what you have, or what other schemas have.不,我们会向您展示您所拥有的,或其他模式所拥有的。
The only way to get close to what you're looking for is if you were to create synonyms to tables in other schemas, then you can ask SQL Developer to present those as TABLES in your connection list.接近您要查找的内容的唯一方法是,如果您要为其他模式中的表创建同义词,那么您可以要求 SQL Developer 在连接列表中将它们呈现为 TABLES。
I'm logged in as a user with an 'empty' schema, at least as far as tables are concenred.我以具有“空”模式的用户身份登录,至少就表而言。
I enable this filter check item, and click 'OK' -我启用此过滤器检查项目,然后单击“确定”-
I talk about this in detail here. 我在这里详细讨论一下。
Disclaimer: I'm the product manager for Oracle SQL Developer.免责声明:我是 Oracle SQL Developer 的产品经理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.