create user <USER_NAME> identified by <PASSWORD>;

 

grant create session TO <USER_NAME>;

 

 

方法一  

有权限的用户执行

declare
cursor tab_names is select table_name from user_tables;
begin
for tab in tab_names loop
execute immediate 'GRANT SELECT ON '||tab.table_name||' to <USER_NAME>';
end loop;
end;

----------------------------------------------------------------------

方法二

用dba权限用户执行

select 'grant select on user1.'||table_name||' to user2;'
from all_tables
where owner = 'user1';

生成授权语句,再执行生成语句.

 

 

 

 

http://www.catgovind.com/oracle/how-to-grant-select-all-tables-and-views-to-user-oracle-db/

https://blog.csdn.net/maxracer/article/details/8434357

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2022-01-31
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
相关资源
相似解决方案