posts - 431,  comments - 344,  trackbacks - 0

          sqlplus /nolog
          SQL>conn /as sys

          CREATE USER "TEST"  PROFILE "DEFAULT"
          IDENTIFIED BY "test" DEFAULT TABLESPACE "TEST" ;

          grant connect,resource,dba to "someuser" with admin option;
           
          查看當前用戶的缺省表空間
              SQL>select username,default_tablespace from user_users;

          查看當前用戶的角色
              SQL>select * from user_role_privs;

          查看當前用戶的系統權限和表級權限
              SQL>select * from user_sys_privs;
              SQL>select * from user_tab_privs;

          查看所有用戶
              SQL>select   username   from   all_users;

          posted on 2009-03-10 15:58 周銳 閱讀(184) 評論(0)  編輯  收藏 所屬分類: Oracle
          主站蜘蛛池模板: 会东县| 关岭| 临湘市| 永和县| 开平市| 东宁县| 稻城县| 沛县| 云阳县| 原阳县| 区。| 军事| 体育| 新宾| 高邑县| 天台县| 临澧县| 惠州市| 姚安县| 荃湾区| 香格里拉县| 老河口市| 三都| 疏附县| 万全县| 大厂| 云阳县| 邳州市| 千阳县| 饶平县| 五原县| 志丹县| 姜堰市| 永宁县| 青浦区| 宣威市| 文水县| 枝江市| 马尔康县| 塘沽区| 绥中县|