上一页 1 2 3 4 5 6 7 8 ··· 32 下一页
摘要: 当hosts文件配置错误时,用sqlplus登录后startup nomount,就会报错ORA-00000 [oracle11g@testdb2 dbs]$ sqlplus "/ as sysdba" SQL*Plus: Release 11.2.0.4.0 Production on Mon A 阅读全文
posted @ 2016-02-04 17:11 馒头斋 阅读(1657) 评论(0) 推荐(0)
摘要: 1.建立索引的时机:若表中的某字段出现在select、过滤、排序条件中,为该字段建立索引是值得的。2.对于like '%xxx'的模糊查询,普通的索引是无法满足的,需要建立全文索引。3.对于有多个条件的,比如: "...where a=xxx and b=yyy","...where a=xxx o 阅读全文
posted @ 2016-02-04 13:19 馒头斋 阅读(1191) 评论(0) 推荐(0)
摘要: 某前台sql语句,简化后如下SELECT products_name,products_viewed FROM `products_description` ORDER BY products_viewed DESC,products_name LIMIT 0,20; 该语句经常大批量出现在慢日志中 阅读全文
posted @ 2016-02-04 13:16 馒头斋 阅读(1675) 评论(0) 推荐(0)
摘要: 相关查询非常慢,通过程序拿到了相关sqlexplainexplain SELECT DISTINCT(o.orders_id), o.oa_order_id, customers_email_address, o.order_type, ot.text AS total_value, o.track 阅读全文
posted @ 2016-02-04 13:14 馒头斋 阅读(325) 评论(0) 推荐(0)
摘要: where group by联合使用 select 列a,聚合函数 from 表名 where 过滤条件 group by 列a having 过滤条件 group by 字句也和where条件语句结合在一起使用。当结合在一起时,where在前,group by 在后。即先对select xx fr 阅读全文
posted @ 2016-02-04 13:12 馒头斋 阅读(3630) 评论(0) 推荐(0)
摘要: 1 产品DG备库安装 16494615 补丁 主库停止向备库传输日志 alter system set log_archive_dest_state_2=defer; alter system set log_archive_dest_state_4=defer; alter system set 阅读全文
posted @ 2016-02-03 20:34 馒头斋 阅读(664) 评论(0) 推荐(0)
摘要: 主库 alter system switch logfile; alter system set log_archive_dest_state_2='defer'; select switchover_status from v$database; alter database commit to 阅读全文
posted @ 2016-02-03 20:25 馒头斋 阅读(751) 评论(0) 推荐(0)
摘要: AWR中有 DB time这个术语,那么什么是DB time呢? Oracle10gR2 官方文档 给出了详细解释(Oracle10gPerformance Tuning Guide 5.1.1.2 Time Model Statistics) The most important of the t 阅读全文
posted @ 2016-02-02 15:23 馒头斋 阅读(780) 评论(0) 推荐(0)
摘要: 在我们查看awr报告的时候总是会有一个关键指标需要注意,那就是DB time,这个指标一般都是通过awr报告来看到的。比如我们得到的awr报告头部显示的下面的信息,我们就清楚的知道DB time是1502.06 mins,相对于Elapsed time来说,将近有20倍的压力。这个问题肯定需要关注。 阅读全文
posted @ 2016-02-02 15:22 馒头斋 阅读(442) 评论(0) 推荐(0)
摘要: 在建设数据仓库过程中,经常会有大量数据,短时间内表中数据量有限,查询性能还可以,但随着时间的延长,表中数据量迅速增加,查询速度就会变慢,性能下降,这时就要考虑对表进行分区。 一、oracle的分区 当表中的数据量不断增大,查询数据的速度就会变慢,应用程序的性能就会下降,这时就应该考虑对表进行分区。表 阅读全文
posted @ 2016-02-02 12:33 馒头斋 阅读(471) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 32 下一页