oracle数据库设置
数据库设计方面:1:数据库块大小选择(db_block_size)默认是8k,块越大,装的行记录就越多,所需的块就越少,读取记录产生的io就越少OLAP(数据仓库)特点是一般用户不多,并发不大,查询方式最多是使用全表扫描...
nested loops 和hash join的一点测试
第一种情况:表上没有索引 ,cbo自动选择 hash join SQL> select count(*) from t; COUNT(*)---------- 50371SQL> select count(*) from t1; COUNT(*)----------&nb...
oracle enterprise manager配置简介
oracle enterprise manager 简称为 OEM 在oracle中可以通过图形化界面进行设置 从oracle10g开始,oracle引入了全新的基于web方式发布的enterprise manager,并且分为了2个产品,database control 和 gri...
等待事件 log file sync 小解
1:在网上找了这么一段话,关于 log file sync的解释The Oracle "log file sync" wait event is triggered when a user session issues a commit (or a rollback). The user session will signal or p...
快速定位sql语句执行内容
如果系统运行很慢,那么首先查看select sid,event,p1,p1text from v$session_wait确定出sid 和等待的类型 然后跟据sid 找到具体sql执行内容select sql_text from v$sqltext a where a.hash_value=(select ...
rowid一点总结
物理rowid两种格式:受限rowid (8i之前)扩展rowid (8i以后)Extended rowids use a base 64 encoding of thephysical address for each row selected. Theencoding characters are A-Z, a-z, 0-9,...
sql_trace 及 tkprof 工具
sql_trace 命令会将sql执行的整个过程输出到一个trace文件中,然后通过阅读这个trace文件了解整个sql执行过程中sql究竟做了些什么。 sql_trace 命令可以在会话级别设置(session),也...
index full scan 和 index FAST full scan 区别
index full scan starts at the root block, walks down the branches on the left hand side one by one till it gets to the first leaf block on the "left" and then reads the index one block at a time --...