a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 71|回复: 0

[综合] Oracle常遇问题解析10

[复制链接]
发表于 2012-8-4 13:54:49 | 显示全部楼层 |阅读模式
40. 出现java.exe的解决办法?  6 P5 I7 _. \) S; r
一般是将oracleorahomexihttpserver改成手工启动可以的  
3 E3 S4 ^4 p. J6 ]" f9 ]  Ux是8或9  
4 a; B$ Q' W% q: G4 e$ t  
0 K  q" `% G0 q" N/ z( X6 i41. 如何给表、列加注释?  
5 v1 A, ]" x' O: H! g; W- j: Psql>comment on table 表 is ’表注释’;  
; b! J' Y3 \) g注释已创建。  
4 v1 J9 o& A/ V( l; Q9 }# Psql>comment on column 表.列 is ’列注释’;  
4 C  H5 D& m  s! P注释已创建。  
9 C) R9 b! y* Q8 asql> select * from user_tab_comments where comments is not null;  * q' }( ?$ |& W3 ?+ U8 i
  
1 |9 j1 Y. v* J* u  O42. 如何查看各个表空间占用磁盘情况?  
+ H# I& |" s0 J8 m0 l4 Tsql> col tablespace format a20  7 l5 t  j# P5 C( J
sql> select  
7 ]; y4 Y+ Q0 l' W7 R1 z3 Hb.file_id 文件id号,  
' B! S& X+ k) e% `b.tablespace_name 表空间名,  
; Q6 }# g& A0 c7 \1 Yb.bytes 字节数,  
! E. B: J* f0 G7 y(b.bytes-sum(nvl(a.bytes,0))) 已使用,  + w  y& J9 b7 z8 y; B2 e7 S
sum(nvl(a.bytes,0)) 剩余空间,  # ^$ a/ [% |. }
sum(nvl(a.bytes,0))/(b.bytes)*100 剩余百分比  , D: j5 `7 H  q( l
from dba_free_space a,dba_data_files b  
) W& D: G  n) r# ^& dwhere a.file_id=b.file_id  
, Q' o5 A2 O4 u5 Fgroup by b.tablespace_name,b.file_id,b.bytes  
) q, y* a8 _1 o3 n/ g- `order by b.file_id
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-2 22:49 , Processed in 0.265149 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表