批量修改表权限:

sql样例:

1    grant references, alter, index on BDP_CBW.TMP_T_TELE_INFO to CBW;
2    grant references, alter, index on BDP_CBW.T_PARAM_ENUM to CBW;
3    grant references, alter, index on BDP_CBW.T_ORG_INDUSTRY_ATTRIBUTE_8888 to CBW;

当然了,BDP_CBW地下还有很多表要写,每个手动编写会很麻烦,直接用一个sql语句生成所有要执行的代码:

select 'grant references, alter, index on BDP_CBW.'||t.table_name||' to CBW;' from all_all_tables t where t.owner='BDP_CBW';

这样就生成了所有更改表权限的语句.

其他的批量操作也可以借鉴

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-09-09
  • 2021-09-26
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案