SQL>conn sys/password as sysdba;    --以sys账户登录
SQL>create user user_name identified by password 
SQL>default tablespace users
SQL>quota unlimited on users;       --创建用户user_name
SQL>grant create session to user_name;
SQL>grant create table to user_name;  --授权给用户user_name
接下来user_name可以创建表,且可对其所创建的表进行所有操作。

解决方案 »

  1.   

    用户建好了,现在想把一张表从user1 导到user2。 如何操作呢?
      

  2.   

    SQL>create table user2.new_table as
    SQL>select * from user1.old_table
      

  3.   

    inerst into user2 select * from user1
      

  4.   

    c:\sqlplus system/manager
    sql> create user <user_name> identified by <passwd> default tablespace   <tablespace_name> temporary tablespace si_temp;sql>grant dba, connect, resource, create table to <user_name>;sql>create table table_name (a varchar2(10));
      

  5.   

    在user2登陆情况下
    SQL>select * from user1.old_table
    提示说表不存在
    如何解决?
      

  6.   

    需要授权:
    SQL>conn sys/password as sysdba;    
    SQL>grant select to user2 on user1.old_table;
      

  7.   

    grant select to user2 on user1.old_table;
    提示缺少on 关键字?
      

  8.   

    不好意思,改为:
    grant select on user1.old_table to user2
      

  9.   

    事情是这样的:
    我建一个表 aaaaa     本来应该在user_new里面的,现在是存在于user_old
    我跟据飞扬兄给的语句,建好了用户,但是现在用user_new登陆建表,提示【表空间‘system’中无权限】     如何解决这个问题,并将user_old的表aaaaa导入到user_new的表aaaaa?
      

  10.   

    回复人: alexwoowf(吴) ( ) 信誉:100  2003-12-30 18:29:41  得分:0 
     
     
      
    事情是这样的:
    我建一个表 aaaaa     本来应该在user_new里面的,现在是存在于user_old
    我跟据飞扬兄给的语句,建好了用户,但是现在用user_new登陆建表,提示【表空间‘system’中无权限】     如何解决这个问题,并将user_old的表aaaaa导入到user_new的表aaaaa?----------------------------------------------------------------------
    你的新建用户user_new是创建在了system表空间中,
    如果你严格按照上面的语句来创建语句且赋予相应的权限,应该不会出现你说的这种现象。