Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Find "current_schema"

Re: Find "current_schema"

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 6 Oct 2006 14:59:25 +0100
Message-ID: <0K2dnUqf97Il_LvYnZ2dnUVZ8tadnZ2d@bt.com>

"klabu" <klabu76_at_gmail_dot_com> wrote in message news:12ico51gtb8b0ad_at_corp.supernews.com...
> after I do
> "alter session set current_schema = scott"
>
> How do I later find out/verify what my "current_schema" is ?
>
> Thanks
>
>

Just checked on 9.2.0.6

select sys_context('userenv','current_schema') from dual;

-- 
Regards

Jonathan Lewis
http://www.oracle.com/technology/community/oracle_ace/ace1.html#lewis

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
Received on Fri Oct 06 2006 - 08:59:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US