随笔分类 -  Oracle

Oracle 性能维护一点
摘要:大数据量表的维护原则 1.如果此表经常CRUD,最好的办法是定期收集统计信息传递给oracle优化器,提高性能。例如dbms_stats.gather_table_stats命令。 可以做在ETL中,定期执行。 2.考虑使用业务常用字段来进行分区,例如时间或地域等。以提高表查询的效率。 视图创建原则 1.绝对禁止在视图的基础上再创建视图,为什么这样会影响性能? ... 阅读全文

posted @ 2015-02-19 10:11 tneduts 阅读(140) 评论(0) 推荐(0)

Oracle Stored Procedure demo
摘要:1.how to find invalid status stored procedure and recompile them?SELECT OBJECT_NAME , status FROM user_objects WHERE OBJECT_TYPE = 'PROCEDURE';Alter p... 阅读全文

posted @ 2015-02-17 12:37 tneduts 阅读(426) 评论(0) 推荐(0)

Varchar2 size how to decide?
摘要:When you execute a complicate store procedure, maybe it will execute a long time, maybe you want to change some logic,And retry, but when you recreate... 阅读全文

posted @ 2015-01-27 17:18 tneduts 阅读(213) 评论(1) 推荐(0)

Oracle PLSQL
摘要:Oracle :show explain planselect * from table(dbms_xplan.display);EXPLAIN PLAN FOR statementsIn fact, in a typical data warehouse environments, a bitma... 阅读全文

posted @ 2015-01-16 10:44 tneduts 阅读(213) 评论(0) 推荐(0)

导航