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

oracle优化器

What circumstances we use ALL_ROWS and what circumstances we use FIRST_ROWS optimizer mode? This article is written in oracle9i.
First_rows attempts to optimize the query to get the very first row back to the client as fast as possible. This is good for an interactive client server environment where the client runs a query and shows the user the first 10 rows or so and waits for them to page down to get more.
All_rows attempts to optimize the query to get the very last row as fast as possible. This makes sense in a stored procedure for example where the client does not regain control until the stored procedure completes. You don't care if you have to wait to get the first row if the last row gets back to you twice as fast. In a client server/interactive application you may well care about that.
In TOAD or SQL Navigator, When we select the data, it display immediately. But it does not mean that, it is faster. If we scroll down, it might be fetching the data in the background mode. First_rows is best place for OLTP environment. Also in some reporting environment, if user wants to see initial data first and later see the rest of the data, then first_rows is good option. When we run the query in the stored procedure, first_rows would not be a good choice, all_rows is good option here, because, there is no use to fetch the first few records immediatley inside the stored procedure.
Let us demonstrate the FIRST_ROWS/ALL_ROWS optimizer hint.
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
SQL> create table testtable as select * from user_objects;
Table created.
SQL> create index idx on testtable(object_type);
Index created.
SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'SCREPORT',TABNAME => 'TESTTABLE',ESTIMATE_PER
CENT => 10, METHOD_OPT => 'FOR ALL COLUMNS SIZE 1', CASCADE => TRUE);
PL/SQL procedure successfully co


相关文档:

全面学习ORACLE Scheduler特性(3)使用Programs

二、使用Programs
  在论坛中偶尔见过有人讨论如何在ORACLE中执行操作系统命令,或是ORACLE数据库外的应用。应该说在9i及之前的版本中,虽然说并非完全无法实现(其实还是有多种方式能够变相实现的),不过复杂的实现方式让DBA使劲了力,伤透了心,费劲了事儿。
  进入10g版本之后,就完全不必如此费神,因为有了DBMS ......

Oracle的内存管理

oracle数据库实例启动时,需要分配共享内存,启动后台进程。
oracle数据库使用的内存主要涉及到:PGA和SGA。
一、 PGA
Program Global Area,顾名思义是程序全局区,是服务器进程(Server Process)使用的一块包含数据和控制信息的内存区域,PGA是非共享的内存,在服务器进程启动或创建时分配,并为Server Process排他访 ......

关于Oracle SID存在解決办法

1、   开始->设置->控制面板->管理工具->服务    
停止所有Oracle服务。    
   
2、   开始->程序->Oracle   -   OraHome81->Oracle   Installation   Products->   ......

Webspere配备Oracle RAC 数据源的问题

Webspere配备Oracle RAC集群数据源,Oracle双机的IP为10.10.10.121与10.10.10.122 ,范例名位别为orcl一与orcl二,服务名叫oracledbservice,采取联接串应为:
jdbc:oracle:thin:@(description=(ADDRESS_LIST=(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.121)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10 ......

jboss oracle rac 详解!

一.在WEBLOGIC上配备了一个多池,利用WEBLOGIC提供的负荷均衡谋略,将并发均衡的诀别到两个节点上。详细配备在如次参考资料或附件中。
参考资料:http://www.oracle.com/technology/products/weblogic/howto/rac/index.html
二.直接施用了RAC的载荷均衡对策。
在Oracle中找出tnsnames.ora这个资料。在配备数据源时,UR ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号