|
ng users ############
show parameter os;
create user testuser1 identified by kxf_001;
grant connect,createtable to testuser1;
alter user testuser1 quota 10m on tablespace_name;
/*创建用户*/
create user user_name identified by password default tablespace tablespace_name temporary tablespace tablespace_name quota 15m on tablespace_name password expire;
/*数据库级设定缺省临时表空间*/
alter database default temporary tablespace tablespace_name;
/*制定数据库级的缺省表空间*/
alter database default tablespace tablespace_name;
/*创建os级审核的用户,需知道os_authent_prefix,表示oracle和os口令对应的前缀,'OPS$'为此参数的值,此值可以任意设置*/
create user user_name identified by externally default OPS$tablespace_name tablespace_name temporary tablespace tablespace_name quota 15m on tablespace_name password expire;
/*修改用户使用表空间的限额,回滚表空间和临时表空间不允许授予限额*/
alter user user_name quota 5m on tablespace_name;
/*删除用户或删除级联用户(用户对象下有对象的要用CASCADE,将其下一些对象一起删除)*/
drop user user_name [CASCADE];
/*每个用户在哪些表空间下有些什么限额*/
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> 更多精彩:学习网->http://www.haohao888.com.cn 网络编程->http://www.51wlpc.com 电脑设备->http://www.xpmaster.cn
|