- 博客(9)
- 资源 (10)
- 收藏
- 关注
原创 Oracle listener lsnrctl
lsnrctl(Listener Control)是一个SQL*Net工具,用于控制数据库listener,这个工具提供了命令用于控制listener的启动、停止,查看listener的状态,改变listener的配置参数等。lsnrctl介绍在命令行中输入lsnrctl,你将得到:C:\Documents and Settings\Administrator>lsnrctlL
2014-09-28 10:56:18 2760
原创 Oracle参数查看方法小结
Oracle提供了大量的系统参数,下面是查询方法小结。系统当前参数系统当前参数涉及到这些视图:v$parameter、v$parameter2、v$system_parameter、v$system_parameter2和v$spparameter。v$parameter存放session级的参数,如果没有被"alter session"修改,默认和system级的参数值相同,下面
2014-09-24 13:03:36 10530
原创 Oracle性能分析10:重建索引续-常用SQL
上一节讲了重建索引的原因和重建方法,这节继续介绍几个常用的SQL语句和存储过程。查询所有失效的全局索引select index_name, status from user_indexes where table_name = upper(table_name) and status = 'UNUSABLE'查询所有失效的分区索引select index_name
2014-09-22 16:52:34 1593
原创 Oracle性能分析9:重建索引
当索引出现问题时,会导致严重的性能问题,索引问题包括索引不可用、索引碎片导致性能下降,我们需要一些手段在检测索引的问题,并解决这些问题。这一篇将为你讲述怎么定位索引问题,并提供了解决的办法。索引不可用索引不可用的原因有很多,包括: 1)索引空间耗尽,导致SQL*Loader更新索引失败; 2)创建索引的过程中实例失败; 3)唯一键有重复值; 4)某个索引的顺序与sorted
2014-09-22 12:48:27 3680
原创 Oracle性能分析7:创建索引
在创建索引时,我们往往希望能够预估索引大小,以评估对现有工程环境的影响,我们也希望创建索引的过程能够最小化的影响我们正在运行的工程环境,并能查看索引的状况。预估索引大小预估索引大小,最好的办法是在测试环境中创建它,测试环境最好包含完整的工程环境数据,否则只有通过部分数据来推算完整的索引大小。如果不能搭建测试环境,Oracle提供了存储过程DBMS_SPACE.CREATE_INDEX_
2014-09-17 17:45:39 1863 1
原创 Oracle性能分析8:使用索引
这一节主要讲述索引的使用,首先介绍怎么在查询中避免使用索引,然后介绍优化器怎么判断是否使用索引,并介绍了强制使用索引的方法,最后介绍了Oracle的并行处理方法。避免使用索引虽然你创建了索引,但有些查询你可能需要避免使用这些索引,或者你为了做一些测试,希望看看各种情况下查询的情况,也希望能够避免使用一些索引或者索引扫描方式。Oracle提供了方式来达到这些目地,就是在查询中使用hint信息
2014-09-15 16:52:57 2517 1
原创 Oracle性能分析6:数据访问方式之索引扫描
这节将介绍各种索引扫描方式,在了解了各种索引扫描方式的特点后,你就可以判断你的执行计划中使用的扫描方式是否正确,并可以针对获取的信息作出改进。索引唯一扫描在下面的场景中使用相等条件时,数据库使用索引唯一扫描。 1)查询条件中包含唯一索引中的所有列时; 2)查询条件使用主键约束列时。下面是一个实际的例子,在表historyalarm中创建如下唯一索引:create uniqu
2014-09-11 10:46:47 3153
原创 Oracle性能分析5:数据访问方式之索引结构和扫描方式介绍
上篇文章讲述了全扫描,这篇文章将介绍索引的结构和扫描方式,在后面将开始讲述每一种扫描方式。当Oracle通过索引检索具体的一列或多列的列值时,就会执行索引扫描。首先我们来看看索引节点包含的数据。索引节点包含的数据索引可以被创建在表的单列或者多列上,索引中包含了这些列的值、rowid和一些其它信息,我们关心的只有列值和rowid。由于索引带有列值,应此如果你的SQL语句只涉及到索引的列,
2014-09-09 17:25:16 1564
原创 Oracle性能分析4:数据访问方法之全扫描
SQL语句执行时,Oracle的优化器会根据统计信息确定表的访问方式,一般来说,有两种基本的数据访问方式:1)全扫描。在全扫描(全表扫描或者快速全索引扫描)中,多个块被读入到一个IO运算中。2)索引扫描。索引扫描首先扫描索引叶子块以取得特定的行id(rowid),然后利用这些行id来访问父表取得实际的行数据,访问通过单块读取来完成。这里主要讲解全扫描方式,后面将介绍索引扫描。使用全扫描当对
2014-09-01 16:24:38 2805
hadoop-part3
2015-08-04
hadoop-part2
2015-08-04
hadoop-part1
2015-08-04
linux教学课件:Advanced Programming in the Linux Environment
2009-11-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人