当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: 通过SQL*PLUS我们可以构建友好的输出,满足多样化用户需求。
 

 

    摘要:其实所有的死锁最深层的原因就是一个——资源竞争。 表现一: 一个用户a 访问表a(锁住了表a),然后又访问表b,另一个用户b 访问表b(锁住了表b),然后企图访问表a。这时用户a由于用户b已经锁住表b,它必须等待用户b释放表b,才能继续,好了他老人家就只好老老实实在这等了。 同样用户b要等用户a释放表a才能继续这就死锁了。 解决方法: 这种死锁是由于你的程序的bug产生的,除了调整你的程序的逻辑别无他法。 仔细分析你程序的逻辑: 1......
 ·sql server的六种数据移动方法    »显示摘要«
    摘要:1.通过工具dts的设计器进行导入或导出 dts的设计器功能强大,支持多任务,也是可视化界面,容易操作,但知道的人一般不多,如果只是进行sql server数据库中部分表的移动,用这种方法最好,当然,也可以进行全部表的移动。在sql server enterprise manager中,展开服务器左边的+,选择数据库,右击,选择all tasks/import data...(或all tasks/export data...),进入向导模式,按提示一......


用SQL PLUS构建excel或html输出
上一页   ...

示例如下:

1.main.sql脚本: [oracle@jumper utl_file]$ more main.sql set linesize 200 set term off verify off feedback off pagesize 999 set markup html on entmap on spool on preformat off spool tables.xls @get_tables.sql spool off exit

2.get_tables.sql脚本: [oracle@jumper utl_file]$ more get_tables.sql select owner,table_name,tablespace_name,blocks,last_analyzed from all_tables order by 1,2;

3.执行并获得输出: [oracle@jumper utl_file]$ sqlplus "/ as sysdba" @main sql*plus: release 9.2.0.4.0 - production on mon apr 25 10:30:11 2005 copyright (c) 1982, 2002, oracle corporation. all rights reserved. connected to: oracle9i enterprise edition release 9.2.0.4.0 - production with the partitioning option jserver release 9.2.0.4.0 - production disconnected from oracle9i enterprise edition release 9.2.0.4.0 - production with the partitioning option jserver release 9.2.0.4.0 - production [oracle@jumper utl_file]$ ls -l tables.xls -rw-r--r-- 1 oracle dba 69539 apr 25 10:30 tables.xls [oracle@jumper utl_file]$

此处输出为xls文件,通过下图我们可以看到输出效果: 560)this.style.width=560; onmousewheel = javascript:return big(this) src="/files/uploadimg/20061124/1205370.jpg">

把main.sql脚本中的,spool tables.xls更改为spool tables.htm,我们可以获得htm格式输出,效果如下图: 560)this.style.width=560; onmousewheel = javascript:return big(this) src="/files/uploadimg/20061124/1205371.jpg">

(责任编辑:铭铭 mingming_ky@126.com tel:(010)68476636)

【相关文章:三款国产双路双核服务器对比导购

【扩展阅读:双路双核64位 曙光部门级服务器评测

【扩展信息:中小企业怎么买双核服务器


    摘要:11月26日外电消息,业内分析师日前指出,在短期内,微软的新一代操作系统vista不可能在很大程度上刺激内存厂商市场份额的增长,因为当前的大部分新pc机已经拥有足够的内存来运行vista。据《西雅图时报》报道,micron、qimonda、三星和hynix等内存厂商此前均表示,vista的上市必将引发内存需求高峰。但是,目前美国2/3的pc机已拥有1g的内存,该配置已经满足了安装vista的需求。 而且,多家分析机构也表示,计算机用户并不会在短期内迅速升级......
» 本期热门文章:

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