易截截图软件、单文件、免安装、纯绿色、仅160KB

ORACLE SQL优化 ORACLE执行计划

Last login: Mon Feb  8 14:13:19 2010 from 192.168.1.249
ipnet
-bash-3.00$
-bash-3.00$ ipnet
-bash: ipnet: command not found
-bash-3.00$ su - oracle
Password:
eastcsu: incorrect password
-bash-3.00$ eastcom
-bash: eastcom: command not found
-bash-3.00$ su - oracle
Password:
[oracle@ipnet-td2 ~]$
[oracle@ipnet-td2 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Feb 8 14:14:08 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL> su^H^H^H
SP2-0042: unknown command " - rest of line ignored.
SQL> conn ipnet/ipnet1234@ORAC^H^H^H
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> ^[[A^H               " - rest of line ignored.
SQL> 042: unknown command "
SQL> conn ipnet/ipnet1234@ORCL
Connected.
SQL> set timn^H
SP2-0158: unknown SET option "tim"
SQL> set timing on
SQL> set autot traceonly
SQL> select v.NAME_CN from vendor v, vendordevicetype vt, devicetype t where t.name = vt.device_type_name and v.name = vt.vendor_name and t.name_cn = '防火墙';
Elapsed: 00:00:00.01
Execution Plan
----------------------------------------------------------
Plan hash value: 497066359
--------------------------------------------------------------------------------
------------------
| Id  | Operation                     | Name             | Rows  | Bytes | Cost
(%CPU)| Time     |
--------------------------------------------------------------------------------
------------------
|   0 | SELECT STATEMENT              |                  | &n


相关文档:

ORACLE物化视图 物化视图的快速刷新


带UNION ALL物化视图的快速刷新
1.   定义的查询的union all操作必须在最顶等级(查询重写后)
2.   物化视图日志指定rowid和including new values
3.   如果表设涉及到一个大量的insert或者直接路径加载,deletes,update,指定sequencea
4.   from列表 ......

oracle 存储图片的存储过程[转]

 C:\>sqlplus /nolog
  SQL*Plus: Release 9.2.0.1.0 - Production on 星期三 1月 19 14:46:21 2005
  Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
  SQL> connect chanet/chanet@oradb;
  已连接。
  SQL> CREATE TABLE IMAGE_LOB (T_ID VARCHAR2 (5) NOT NULL,T_IMAGE ......

【转】 Oracle学习:分区表和索引

Oracle学习:分区表和索引
http://tech.it168.com/a2009/0609/585/000000585998.shtml
什么时候使用分区:
  1、 大数据量的表,比如大于2GB。一方面2GB文件对于32位os是一个上限,另外备份时间长。
  2、 包括历史数据的表,比如最新的数据放入到最新的分区中。典型的例子:历史表,只有当前月份的数据可以被修改, ......

SQL Server 2005: Recursive Hierarchies to XML

Suppose we have a recursive hierarchy stored in a relational database and we want to write it to XML.  This might be for a variety of reasons – e.g. as a pre-cached input to a UI control, to export to another system using a pre-defined format, etc.
 
In SQL Server 2000, in order to ......

SQL server循环中每隔一段时间,运行一次语句

最近做一个项目,说起来比较恶,是从另一个表中读取数据送到这个表中.而且要用触发器循环这些内容再发出去.
可是如果这个数据量很大的话,会一下子挂死.所以就想到了.能不能,每次我传一点,隔几秒再送一点.
下面是一个简单的例子
declare @i int
set @i=1
while @i<101
begin
insert into Cname ([name],csex,Number) ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号