Q: session current_user vs user_tables etc
- From: yf110@xxxxxxxxxxxxxxxxxxx (Malcolm Dew-Jones)
- Date: 25 Jan 2006 14:42:37 -0800
I can use
alter session set current_schema=xxx
and then queries such as
select * from table_name_no_schema
will find the table in the xxx schema, just as if I was xxx to begin with.
However, if I do queries such as
select * from user_tables
then I see my own tables, not the xxx tables (which is understandable, I'm
not questioning that).
My question is, are there any views similar to the user_* views but to
access things within the current_schema, or must I use the all_* views and
filter everything by sys_context('USERENV','CURRENT_SCHEMA') ?
Feedback appreciated.
malcolm
.
- Follow-Ups:
- Re: Q: session current_user vs user_tables etc
- From: DA Morgan
- Re: session current_user vs user_tables etc
- From: Mark C. Stock
- Re: Q: session current_user vs user_tables etc
- Prev by Date: Re: whenever sqlerror is an unknown statement?
- Next by Date: Re: session current_user vs user_tables etc
- Previous by thread: Query Based on Reserved Word
- Next by thread: Re: session current_user vs user_tables etc
- Index(es):
Relevant Pages
|
|