第一步:創建用戶
create user username identified by password;
第二步:給用戶賦值接觸鎖定(僅僅賦予會話權限)
grant create session to xxx;
第三步(登錄所要訪問表的用戶(xxx),執行如下語句,並把結果保存為sql文件):
select 'GRANT ALL ON '||table_name||' to username;' from user_tables;
第一步:創建用戶
create user username identified by password;
第二步:給用戶賦值接觸鎖定(僅僅賦予會話權限)
grant create session to xxx;
第三步(登錄所要訪問表的用戶(xxx),執行如下語句,並把結果保存為sql文件):
select 'GRANT ALL ON '||table_name||' to username;' from user_tables;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。