创建用户:
create user username identify by password default tablespace tablespacename1 temporary tablespace tablespacename2;删除用户:
drop user username[cascade];

解决方案 »

  1.   

    创建用户:
    create user username identify by password default tablespace tablespacename1 temporary tablespace tablespacename2;在创建后的用户并不能立即进行使用,因为这时它没有任何权限,你要对新建的用户进行相应的授权才可以使用,通常把资源角色以及连接角色赋予新建的用户。grant resource,connect to user_name;删除用户:
    drop user username[cascade];
      

  2.   

    创建用户
    create user zhao
    identified by password
    default tablespace accounting_tbs
    quota 100M/unlimited on accounting_tbs
    quota 500k on indx
    temporary tablespace temptbs
    profile accounting_users授权给用户
    grant connect to zhao锁定/解锁用户
    alter user zhao account lock/unlock修改用户
    alter user zhao
    identified by aaaaaa
    default tablespace users删除用户
    drop user zhao cascade用户信息字典
    all_users/dba_users/user_users 数据库用户的信息
    dba_ts_quotas/user_ts_quotas 用户的表空间配额信息
      

  3.   

    drop user username[cascade];