用user1下运行
grant all on table1 to user2
我认为不可能拥有,只能说user2有对象的所有权限。主人应该只有一个。

解决方案 »

  1.   

    谢谢楼上的指点,这样说,那两个用户就不可以拥有同样的表吧?
    还有,我刚才用grant all on table1 to user2 试了,
    然后切换用户为user2,可找不到table1表?
    谢谢!
      

  2.   

    要加owner.table_name
    select * from user1.table1
      

  3.   

    多谢,明白了,那如果要将整个数据库授权给user2呢?
    可不可以用 grant all on  数据库名 to user2 ?
      

  4.   

    grant all on table_name to user2 
      

  5.   

    那如果要将整个数据库授权给user2呢?
    不可以那么说的,数据库的权限有很多,因为数据库对象就有很多。要分别授权。
      

  6.   

    sql>connect system/pass
    sql>grant select on user1.Table1 to user2;
    sql>connect user2/pass
      

  7.   

    to:  welyngj(平平淡淡) 
    那这样说,如果整个数据库都要授权给user2的话,岂不是要反复地授权?
      

  8.   

    系统有
    DROP ANY TABLE   Drop or truncate tables or table partitions in any schema 
     
    INSERT ANY TABLE   Insert rows into tables and views in any schema 
     
    LOCK ANY TABLE   Lock tables and views in any schema 
     
    SELECT ANY TABLE   Query tables, views, or materialized views in any schema 
     
    UPDATE ANY TABLE   Update rows in tables and views in any schema 还有很多的具体的权限。