oracle如何优化多表连接,oracle sql优化之多表连接优化

oracle sql优化之多表连接优化

Use equality first.

使用等连接

Use range operators only where equality does not apply.

只有在等连接不可用的情况下事由区间连接

Avoid use of negatives in the form of !=

or NOT.

避免使用 != 或者 not

Avoid LIKE pattern matching.

避免使用 LIKE匹配

Try to retrieve specific rows and in small numbers.

尝试查找特殊的列和在小的数目中

Filter from large tables first to reduce rows joined.

Retrieve tables in order from the most highly filtered table downwards;

preferably the largest table has the most filtering applied.

过滤大表减少连接的行数,从过滤多的表向下查找,尽可能的过滤大表

Tip

The most highly filtered table is the table having the

smallest percentage of its rows retrieved, preferably the largest

table.

Use indexes wherever possible except for very small

tables.

除非很小的表,无论什么情况多有索引

Let the Optimizer do its job.

让优化器做优化

相关文档:

ORACLE里锁有以下几种模式:

0:none

1:null 空

2:Row-S 行共享(RS):共享表锁,sub share

3:Row-X 行独占(RX):用于行的修改,sub exclusive

4:Share 共享锁(S):阻止其他DML操作,share

5:S/Row-X 共享行独占(SRX):阻止其他事务操作,share/sub exclusive

6:exclusive 独占(X):独立访问使用,exclusive ......

一、Enterprise Manager 10g

默认情况下,安装Oracle时,会安装EM。它是位于数据库服务器上的HTTP服务器。

(1)启动EM

要确保OracleDBConsole服务已经启动。

启动服务:emctl start dbconsole

关闭服务:emctl stop dbconsole

访问EM:http://服务器名称:端口号/em

端口号可在$ORACLE_HOME/install/pro ......

我们都都知道在controlfile中记录着每一个archivelog的相关信息,当然们在OS下把这些物理文件delete掉后,在我们的

controlfile中仍然记录着这些archivelog的信息,在oracle的OEM管理器中有可视化的日志展现出,当我们手工清除archive目录下的文件后,这些记录并没有被我们从controlfile中清除掉,也就是oracle并不 ......

原创于2007年04月12日,2009年10月15日迁移至此。

windows xp,数据库oracle 10.2.0。1

没有备份,基本上是默认安装,好像还不是归档模式

症状:sqlplus只有sysdba用户能进去,其他用户进去一概报:ora-01033:oracle正在初始化或关闭

而且sysdba用户进去之后能执行select sysdate from dual,但是执行select use ......

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值