欢迎访问 codePeon 的个人空间

收藏帖

  • java 存储过程调用shell脚步问题

    2006-03-06 13:48:39   /   Oracle开发

    :oSQL> call2dbms_java.grant_permission('DBO','SYS:java.io.FilePermission','/home/oracle/wcd/1.sh','execute');Call completed.SQL> commit;Commit complete.SQL> conn dbo/dboConnected.SQL> exec rc('/home/oracle/wcd/1.sh');PL/SQL procedure successfully completed.SQL>:o系统命名都没有问题 调用shell就不行奇怪create or replace and compile java source named util asimport java.io.*;import java.lang.*;public class Util extends Object{
  • 请教查询语句的写法?

    2005-10-12 12:24:40   /   Oracle数据库管理

    table T,列:serial_no我想能够查询一下serial_no这个字段的不连续的值。例如:serial_no123468910我想一个sql语句查出来缺失的号码,显示结果为:57
  • 原创+突发奇想+分享-----关于分组后字段拼接的问题

    2005-07-22 12:57:03   /   Oracle开发

    最近在论坛上,经常会看到关于分组后字段拼接的问题,大概是类似下列的情形:SQL> select no,q from test2/NOQ---------- ------------------------------001n1001n2001n3001n4001n5002m1003t1003t2003t3003t4003t5003t612 rows selected最后要得到类似于如下的结果:001n1;n2;n3;n4;n5002m1003t1;t2;t3;t4;t5;t6通常大家都认为这类
  • 什么時候不用直方圖

    2005-07-02 09:35:03   /   Oracle数据库管理

    1All predicates on the column use bind variables.2The column data is uniformly distributed.3The column is unique and is used only with equality predicates.1當綁定變量2不太明白什么是uniformly distributed.3看不明白希望大家指教,謝謝
  • 请教sort-merge join 问题

    2005-05-20 15:24:10   /   Oracle入门与认证

    UESTION NO: 7Which of the following queries will mostly likely require a sort-merge join?A. Two-table equijoin with no indexesB. Two tables equijoin with one indexC. Two-table equijoin in which both tables are indexed on the join columnD. SELECT DISTINCT on a single tableAnswer: B----should be A???
  • 如何sql查询出连续号码段

    2005-04-26 16:16:00   /   Oracle开发

    问题求助,请高手指点..我有一个表结构,fphm,kshm2014,000000012014,000000022014,000000032014,000000042014,000000052014,000000072014,000000082014,000000092013,000001202013,000001212013,000001222013,000001242013,00000125(第二个字段内可能是连续的数据,可能存在断点。)怎样能查询出来这样的结果,查询出连续的记录来。就像下面的这样?2014,00000001,000000052014,00000009,000000072013,00000120,000001222013,00000124,00000125
  • 关于hash join的原理的疑惑

    2005-04-01 15:43:18   /   Oracle数据库管理

    hash join原理介绍http://www.itpub.net/315494.html二. Hash Join原理我们用一个例子来解释Hash Join算法的原理,以及上述所提到的术语。考虑以下两个数据集。S={1,1,1,3,3,4,4,4,4,5,8,8,8,8,10}B={0,0,1,1,1,1,2,2,2,2,2,2,3,8,9,9,9,10,10,11}Hash Join的第一步就是判定小表(即build input)是否能完全存放在hash area内存中。如果能完全存放在内存中,则在内存中建立hash table,这是最简单的hash join。如果不能全部存放在内存中,则build input必须分区。分区的个数叫做fan-out。Fan-out是由hash_area_si
  • 索引的“可选择性”对查询性能的影响

    2005-03-23 11:23:22   /   Oracle数据库管理

    索引的“可选择性”是指在该索引列里存储不同值的数目和记录数的比。比如某个表的记录数是1000条,而该表的索引列的值只有900个不同的值(有100个是相同或是空)。这样索引的可选择性为900/1000为0.9 。这样当然效果就不好,最好的索引可选择性(如主键索引)是1.0 。索引的可选择性是衡量索引的利用率的方法,比如在极端的情况下,一个表记录数是1000,而索引列的值只有5个不同的值,则索引的可选择性很差(只有0.005)。这样的情形使用全表扫描要比采用索引还好。样本表:create table sh_objects as select * from dba_obje
  • hash join算法原理

    2005-01-24 16:01:58   /   Oracle数据库管理

    这两天仔细研究了一下hash join,包括其实现原理,总结了一下,请大家指正。
  • 对hash-join的理解

    2004-09-22 19:54:04   /   Oracle数据库管理

    hash-join的具体实现原理??1. Oracle performs a full table scan on each of the tables and splits each into asmany partitions as possible based on the available memory.2. Oracle builds a hash table from one of the partitions (if possible, Oracle selects apartition that fits into available memory). Oracle then uses the correspondingpartition in the other table to probe the hash table. All partition pairs that donot fit into memory are placed onto disk.上面两点无法理解,哪位朋友
111/212>

我的资料

Open Toolbar