• 测试技术
  • 博客
  • 视频
  • 开源
  • 论坛
  • 沙龙
  • 下载
  • 杂志
  • 招聘

您的位置:您的位置:软件测试技术门户 >> 软件测试技术 >> 数据库 >> Oracle >> 查看资讯

字号: | 推荐给好友 上一篇 | 下一篇

oracle常用经典SQL查询

发布: 2008-10-20 11:00 | 作者: 不详 | 来源: 领测软件测试网采编 | 查看: 52次 | 进入领测软件测试网论坛讨论

领测软件测试网 软件测试技术门户3w/t3v&}u3SK:a


C5J x? o软件测试技术门户dzx[J$g
/*创建用户*/ 
a'e(L r)I,B(\N1~
zaC$WQ*B+Jcreate user user_name identified by password default tablespace tablespace_name temporary tablespace tablespace_name quota 15m on tablespace_name password expire; 
_h,t4c'{ G
5K] qB*luZ!pB R(c 
&S/o*S"mZ{
({Y\!LfnJ4Vu/P#|/*数据库级设定缺省临时表空间*/ 
@ c(Y,W5rfu软件测试技术门户Q#{*gCYF
alter database default temporary tablespace tablespace_name; 
%b7S-elX,p}
O ZVc*~3J"s?-f 
&Q6P L4R}
tEe+XW/*制定数据库级的缺省表空间*/  软件测试技术门户6b4SmSB:n*iPg

` yF.X;R*SWId+|alter database default tablespace tablespace_name;  软件测试技术门户4M TW!lG

:}!VP,Y[n]l-~ 
DjS$LM*y+K&G"a
y:A y2bN:}w7\/*创建os级审核的用户,需知道os_authent_prefix,表示oracle和os口令对应的前缀,’OPS$’为此参数的值,此值可以任意设置*/  软件测试技术门户b9ol)R W)F

QD |3MMo/P6|create user user_name identified by externally default OPS$tablespace_name tablespace_name temporary tablespace tablespace_name quota 15m on tablespace_name password expire; 
nel5dee}"tM
hzs C0~[\5I4RY8mW 
!E{$cW!y2e|V"]软件测试技术门户z1N'Rf^*s
/*修改用户使用表空间的限额,回滚表空间和临时表空间不允许授予限额*/ 
8fb7L HH V Y1e'qg$F?软件测试技术门户I9`!qVW