如题,在ORACLE 10g中,某个数据库有多个用户可访问,我想控制单个用户只能访问该数据库下面的特定数据表,其他数据表则无权访问,请问这样的功能该怎么实现?谢谢大家!

解决方案 »

  1.   

    create user abcd identified by password123;grant connect to abcd;grant select on scott.emp to abcd; --这里实现想给他权限查询的表
    grant select on scott.dept to abcd; --这里实现想给他权限查询的表
      

  2.   


    conn abcd/password123create synonym emp for scott.emp;
    create synonym dept for scott.dept;再建立同义词以后,你就可以看到表了,有一种本地的感觉
      

  3.   

    create user abcd identified by password123; grant connect to abcd; grant select on scott.emp to abcd; 
    grant select on scott.dept to abcd;  同意,当然,你可以用grant all privileges on scott.emp to abcd来把对这个表的所有操作权限授予abcd;