create user 用户名 identified by 密码

解决方案 »

  1.   

    1、请问如何指定表空间和临时表空间
    2、我用管理员身份登录远程库后,如何用sqlplus语句修改另一用户的权限,
    例如test用户,对表1有select和update权限,对表2有select权限,对表3无权操作,
    我要增加test用户的权限使其对表1、2、3都有select、update、insert、delete的权限,请问应如何执行sqlplus语句?
    3、请问查看test用户权限的sqlplus语句怎么写?
    谢谢
      

  2.   

    create user username identified by password;grant select ,insert,update on tableOwner.tablename to username;select * from user_tab_privis;
    select * from user_sys_privis;
      

  3.   

    create user username identified by password default tablespace yourtablespace;
      

  4.   

    再请教如何用sqlplus语句查看数据库中有哪些用户?
      

  5.   

    select * from dba_users;
      

  6.   

    1、用select * from user_tab_privis和select * from user_sys_privis提示表不存在,假设数据库是test,里面有表table1,table2,table3,用户名是abc,那么怎样查用户abc具有那些权限?
    2、用grant select ,insert,update on tableOwner.tablename to username只能对库中的表逐个授权,但库里有几十个表,我不想一个一个的操作,请问怎样可以一次过对库中所有的表都授权?
      

  7.   

    如果你想在sql中能访问所有表,授予dba权限即可。如果你想再pl/sql中能访问所有表,必须一个一个的授权(自己的表除外)。
      

  8.   

    我借花献佛了,你试试这个看如何:
    grant select,insert,update any table on tableOwner to username;
      

  9.   

    grant select,insert,update any table on tableOwner to username不对,提示语句出错。
    select * from user_tab_privis和select * from user_sys_privis也提示出错。