your friend is wrong!
the user is a new one!

解决方案 »

  1.   

    【ORACLE回复手册】.txt
    ===============================================================
    此文章已经作为回复使用次数:
    ==============================================================================================================================
    创建表空间,用户,赋权限问题
    此文章已经作为回复使用次数:1
    ===============================================================
    connect system/manager@testdb
    1.创建表空间:
    create tablespace library 
      datafile 'c:\oracle\oradata\test3\library.ora' size 10m;2.创建用户
    create user "LIBUSER" profile "DEFAULT" IDENTIFIED BY "yourpassword"
       default tablespace "LIBRARY"
       temporary tablespace "temp"
       account unlock ;3.赋权限:
    grant "CONNECT","DBA","RESOURCE",CREATE ANY TABLE ,UNLIMITED TABLESPACE
    TO "LIBUSER"删权限
    revoke "CONNECT","DBA","RESOURCE",CREATE ANY TABLE ,UNLIMITED TABLESPACE from "LIBUSER"
    给你看个东东,所以权限,用户作为字符串的话一定要大写~~~SVRMGR> connect system/manager@test2
    连接成功。
    SVRMGR> revoke "RESOURCE" FROM "KXD"
         2> ;
    语句已处理。
    SVRMGR> grant "resource" to "kxd";
    grant "resource" to "kxd"
          *
    ORA-01919: 作用'resource'不存在
    SVRMGR> grant "RESOURCE" to "kxd";
    grant "RESOURCE" to "kxd"
                        *
    ORA-01917: 用户或作用'kxd'不存在
    SVRMGR> grant "resource" to "KXD";
    grant "resource" to "KXD"
          *
    ORA-01919: 作用'resource'不存在
    SVRMGR> grant "RESOURCE" to "KXD";
    语句已处理。
    SVRMGR>