Question

I have 2 users : UserA and UserB

UserA owns packages and procedures. I want UserB to be able to READ those packages and procedures, and not execute or modify them.

so I did this :

grant debug any  procedure to UserB;

Using Toad, UserB can now read UserA's packages.

But using Oracle SQL Developer, this is not working.

Is there an option in SQL Developer than I need to enable? Or do I need to grant more things to userB ?

I am using Oracle 10g R2

Was it helpful?

Solution

If you're used to using Toad, Sql developer interface is similar but a bit different. I'm guessing here, but you're probably Connecting as UserB, and expecting to see all schema objects under Connections. However, in Sql Developer, what is shown under Connections is only objects owned by that connected user, not all objects.

You want to use "Schema Browser" in Sql Developer. To do this, just right click onto the UserB connection and choose Schema Browser. You will then have a drop-down at the top left corner of the page to select the owner you wish (UserA in this case). The second drop-down under that is to select the type of object (table, function, procedure, package, etc...)

Hope that helps.

OTHER TIPS

Updating SQL Developer from version 2.1.1.64 to 3.2 solved the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top