Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle SQL Developer How To Default To Other Users Tables?

Tags:

sql

oracle

In order to see all of the tables in our companies DB I have to go find the main sys account. Is there a way to default my connection so that it shows the other users tables?

like image 459
Clive Avatar asked Nov 07 '09 11:11

Clive


People also ask

How do I change the default directory in SQL Developer?

Going to Tools > Preferences > Database > Worksheet allows to set "default path to look for scripts".

How do I connect to another user in SQL Developer?

In your SQL Developer screen shot you're looking at the 'Other Users' section of the navigation panel on the left, under your existing connection as SYS. and then if you run as a script the statements after that will be performed as that user - and it will disconnect and revert to SYS when the script finishes.


2 Answers

Any table that your connecting account has at least SELECT privileges on will show up in the "Other Users" node of the navigation tree. If the table does not show up there then it is a database permissions issue, not a SQL Developer configuration issue.

like image 113
dpbradley Avatar answered Sep 28 '22 22:09

dpbradley


Think you don't want to repeated type otheruser.tablename in all your queries. If that is the case you want to run this

alter session set current_schema = otheruser;
like image 24
Ram Avatar answered Sep 28 '22 23:09

Ram