In SQLPlus client window or on the server. logging in as SchemaB:
Select * from SchemaA.TableA -->> returns all data
In TOAD window. logging in as SchemaB (same as #4):
Select * from SchemaA.TableA -->> returns ORA-00942: Table or view does not exist
Help? The fact that I can’t do it in TOAD, but can in SQLPlus client window AND on the server tells me that there is something/setting in TOAD that’s preventing me from seeing the data. Anyone has any idea what that is?
I don’t think you have to reconnect after performing a grant, but you might want to disconnect and reconnect in Toad.
If that’s not it, you might try running a “SET ROLE ROLEA” command after you’ve connected as SchemaB, although if you don’t have to do that in SQL*Plus, you shouldn’t have to do that in Toad either.
I can reproduce the ORA-942 in Toad (as well in SQL*Plus) but only when the role is not default. The following query shows “NO” for the DEFAULT_ROLE field. When I make the role default then “select * from schema.table” returns data as expected. I don’t know of anything specific in Toad that would change that other than on the “Oracle|Roles and Editions” page in options. Do you have anything set in there?
In SQLPlus client window or on the server. logging in as SchemaB:
Select * from SchemaA.TableA -->> returns all data
In TOAD window. logging in as SchemaB (same as #4):
Select * from SchemaA.TableA -->> returns ORA-00942: Table or view does not exist
Help? The fact that I can’t do it in TOAD, but can in SQLPlus client window AND on the server tells me that there is something/setting in TOAD that’s preventing me from seeing the data. Anyone has any idea what that is?
Thanks, guys. I did a bunch of things that seemed to have resolved my issue. I’m not sure which of the “bunch of things” I did actually fixed it. I rebooted TOAD. I also set the default_role to “YES” but I’m not sure if it was set to “YES” to begin with or not. Any way, much appreciate the responses.