How to find schema name in Oracle ? when you are connected in sql session using read only user

前端 未结 3 1178
猫巷女王i
猫巷女王i 2021-02-18 15:29

I am connected to a oracle database with a read only user and i used service name while Setting up connection in sql developer hence i dont know SID ( schema ).

How can

3条回答
  •  无人及你
    2021-02-18 16:04

    Call SYS_CONTEXT to get the current schema. From Ask Tom "How to get current schema:

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

提交回复
热议问题