我在oracle10G 数据库中建了一个用户名p 建了一些表,又建了一个用户d .用户d看不到p用户的表(p 和d权限一样)我想用d看p用户的表如何处理

解决方案 »

  1.   

    需要授权啊.   grant select tablename to username;
      

  2.   

    Oracle 新用户的默认权限只能在自己的schema中操作,想看其他用户的表,就赋权限吧,grant select username.tablename to username;
      

  3.   

    权限问题..
    要么授权。
    要不就定义成DBA...  
      

  4.   

    SQL> show user
    User is "SYS"
     
    SQL> create user x identified by x;
     
    User created
     
    SQL> grant resource to x;
     
    Grant succeededSQL> connect x/x@cbdb;
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 
    Connected as x
     
    SQL> create table tx(a int);
     
    Table created
     
    SQL>  connect s/s@cbdb as sysdba
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 
    Connected as SYSSQL> create user y identified by y;
     
    User created
     
    SQL> grant create session to y;
     
    Grant succeededSQL> grant select on x.tx to y;
     
    Grant succeededSQL> connect y/y@cbdb
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 
    Connected as y
     
    SQL> select * from x.tx;
     
                                          A
    ---------------------------------------
     
    SQL> 
      

  5.   

    我在oracle10G 数据库中建了一个用户名p 建了一些表,又建了一个用户d .用户d看不到p用户的表(p 和d权限一样)我想用d看p用户的表如何处理?用户d下:
    1、select * from  p.tablename;
    2、grant select(,update,...) on tablename to p;
       select * from  tablename;
    3、create public synonym tablename for p.tablename;
       select * from  tablename;
    这样就可以直接看到p下的表的内容。