Archive for 2月 26th, 2008

一个sql tuning的例子

今天同事遇到一个mysql语句执行慢的问题,叫我帮忙看看,具体语句如下:
select Products.ProductID,Name from Products 
where Products.ProductID in
(
 select ProductID from Price 
  INNER JOIN vendors ON (price.VendorID = vendors.VendorID)
 where (  price.ExpiryDate > now() or YEAR(Price.ExpiryDate) = 1 )
  and vendors.Status = ‘1′ 
  and Price.MemberID=@memberID and Price.Disable=’false’ and IsHistory=0
)
and Disable=’false’
他说单独执行括号内的子查询,速度很快,没有那个子查询速度也很快,但合并起来后速度就很慢!

expdp时出现UDE-00008

今天在做expdp测试时出现如下错误:
D:\ oracle \product\10.1.0\db_1\BIN>expdp test/test@bright parfile=c:\exp.par
Export: Release 10.1.0.2.0 - Production on 星期二, 26 2月, 2008 14:45
Copyright (c) 2003, oracle .  All rights reserved.
连接到: oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
自动启用 FLASHBACK 以保持数据库完整性。
启动 “TEST”.”SYS_EXPORT_SCHEMA_06″:  test/********@bright parfile=c:\exp.par
正在使用 BLOCKS 方法进行估计…
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 24.25 MB
处理对象类型 SCHEMA_EXPORT/USER
处理对象类型 SCHEMA_EXPORT/SYSTEM_GRANT
处理对象类型 [...]

Page 1 of 11

    搜索本站

    站点日历

    2月 2008
    « 1   3 »
     123
    45678910
    11121314151617
    18192021222324
    2526272829  

    订阅本站

    文章分类

    最新日志

    热点文章

    日志存档

    常用标签