create user userName identified by password;
select 'grant select on user1.'||table_name||' to user2;' from all_tables where owner = 'user1';
而後執行受權語句session
grant create session,resource to user2