alter session set current_schema=XX; col sys_context('userenv','current_schema') for a20 select user, sys_context('userenv','current_schema') from dual;
B的用户模式切换到A
create or replace trigger set_default_schema after logon on B.schema begin execute immediate 'alter session set current_schema=A(schema)'; end; /