gdufo

 

oracle 用户管理

Managing users

1.create a user: database authentication

sql> create user juncky identified by oracle default tablespace users
     temporary tablespace temp quota 10m on data
     password expire
     [account lock|unlock]
     [profile profilename|default];


2.change user quota on tablespace

sql> alter user juncky quota 0 on users;

    #0  代表以后不能再新增对像,之前已经建好的还将保留

3.drop a user

sql> drop user juncky [cascade];
   #[cascade],删除与用户相关的所有对像,如table, index,trriger
   #如果当前用户正连接在oracle上,是不能够被删除的。

4. monitor user

view: dba_users , dba_ts_quotas

posted on 2009-11-23 16:00 gdufo 阅读(180) 评论(0)  编辑  收藏 所属分类: Database (oracle, sqlser,MYSQL)

导航

统计

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

收藏夹

Hibernate

友情链接

搜索

最新评论

阅读排行榜

评论排行榜