Switching schemas in Oracle makes no sense, because schemas are tied to
the user. In fact you don't login to oracle with a username but with a
schema name. Schema and username are the same things. It is not like MySQL
where you have Databases that denote these object groups and are separate
from users.
However, this is not something that is confined. If you track which
schemas you want to access, and have the proper grants issued.. You can
always access any object with the following notion:
schema_name.object_name
This is irregardless of which schema you are logged into. However, the
proper grants need to be issued and can only be issued if you are logged
into the schema that owns those objects.
For example..
Table A is in Schema X and Table B is in schema Y.. X wants to access B
and Y wants to access A..
So you have to login as Y and
GRANT SELECT,UPDATE,INSERT,DELETE ON B TO X;
Then login as X and
GRANT SELECT,UPDATE,INSERT,DELETE ON A TO Y;
Then if you are logged in as X you can do
SELECT * FROM Y.B;
And logged in as Y
SELECT * FROM X.A;
Hope that helps,
Carl Furst
**********************************************************
MLB.com: Where Baseball is Always On