当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 1、查看表空间的名称及大小 select t.tablespac
 

 

 ·自己做的数据绑定控件    »显示摘要«
    摘要:很久都没有写一点东西了,最近一直在学习.net,前两天看到椰子林写的一篇《asp.net分页组件学与用》,于是自己就跟着做了一遍,一次成功,在此向他表示感谢,也向他那种共享的精神致敬!可是后来我发觉这个组件用起来有点麻烦,在page_load里面不但要得到记录集,还要写sql语句分页,最后还要自己写代码将包含数据的<table></table>输出到客户端,于是我就想呀要是......
 ·ora-01650    »显示摘要«
    摘要:数据库很多表频繁报错 ora-01688 ora-01650 等错误ora-01650: unable to extend rollback segment %s by %s in tablespace %s cause: failed to allocate extent for the rollback segment in tablespace. action: use the alter ......


Oracle维护常用SQL语句

1.查看表空间的名称及大小

from dba_tablespaces t, dba_data_files d 【程序编程相关:用C#建立自己的Web服务器

select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size 【推荐阅读:WIN2000中断描述符表(NTOSKR

group by t.tablespace_name; 【扩展信息:消息队列服务

where t.tablespace_name = d.tablespace_name

2.查看表空间物理文件的名称及大小

select tablespace_name, file_id, file_name,

round(bytes/(1024*1024),0) total_space

from dba_data_files

order by tablespace_name;

3.查看回滚段名称及大小

select segment_name, tablespace_name, r.status,

(initial_extent/1024) initialextent,(next_extent/1024) nextextent,

max_extents, v.curext curextent

from dba_rollback_segs r, v$rollstat v

where r.segment_id = v.usn(+)

order by segment_name ;

4.查看控制文件

select name from v$controlfile;

5.查看日志文件

select member from v$logfile;

6.查看表空间的使用情况

select sum(bytes)/(1024*1024) as free_space,tablespace_name

from dba_free_space

group by tablespace_name;

select a.tablespace_name,a.bytes total,b.bytes used, c.bytes free,

(b.bytes*100)/a.bytes "% used",(c.bytes*100)/a.bytes "% free"

from sys.sm$ts_avail a,sys.sm$ts_used b,sys.sm$ts_free c

where a.tablespace_name=b.tablespace_name and a.tablespace_name=c.tablespace_name;

7.查看数据库库对象

select owner, object_type, status, count(*) count# from all_objects group by owner, object_type, status;

8.查看数据库的版本 

select version from product_component_version

where substr(product,1,6)=´oracle´;


...   下一页
 ·窗体标题栏外的拖动操作    »显示摘要«
    摘要:窗体标题栏外的拖动操作 (作者:张均洪) 2004-9-3 我们知道对窗体的拖动只需要点住标题栏,拖动鼠标就可以了.但有些时候我们想在窗体的标题栏外的区域实行拖动窗体的操作.这时就要需要我们自已写些代码了,下面是我的做法,供大家参观. 新建一个窗体form1,并放入两个radiobutton控件,第一个是确定是否窗体拖动,第三个是确定是否指定某一区域进行窗体拖动. 以下是窗体代码: us......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE