Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDTs and Java

Status
Not open for further replies.

engineer2100

Programmer
Feb 7, 2002
285
US
Hi All,

I am facing a typical issue using Types in Java.

Scenario

I have two schemas A and B.

I have all Types created in Schema A i.e A is the owner of the Types.

I also have a role Role_X that has been granted EXECUTE priv on these types.

Now the Role (Role_X) has been granted to Schema B.

Issue

My front end code (java) connects to Schema B and makes use of these types.

The code fails throwing an error - Invalid type

Am I missing anything here.

Please help.

Thanks,
Engi
 
Added to this. The code works if i directly connect to Schema A (the owner of Types)
 
A procedure can't use privs assigned via a role. If you directly assign the privs to Schema B, your code will work.

Bill
Oracle DBA/Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top