摘要: ①创建表: ②设置t4处于nologging: ③开启autotrace查看执行计划: ④插入数据: ⑤使用append插入数据: 比较一下普通插入和append插入生成的redo大小,明显append插入时生成的redo小很多。 SQL> insert /*+ append */ into t4 阅读全文
posted @ 2016-10-17 20:04 Tomatoes 阅读(282) 评论(0) 推荐(0)
摘要: SQL> select t1.* from t1,t2 where t1.object_id=t2.object_id; 99 rows selected. Execution Plan ---------------------------------------------------------- Plan hash value: 1506669289 --------------... 阅读全文
posted @ 2016-10-17 19:56 Tomatoes 阅读(753) 评论(0) 推荐(0)
摘要: SQL> select * from employees d, departments t where d.department_id=t.department_id; 106 rows selected. Execution Plan ---------------------------------------------------------- Plan hash value: 1... 阅读全文
posted @ 2016-10-17 19:54 Tomatoes 阅读(990) 评论(0) 推荐(0)
摘要: SQL> select count(*) from employees; COUNT(*) ---------- 107 Execution Plan ---------------------------------------------------------- Plan hash value: 3580537945 -----------------------... 阅读全文
posted @ 2016-10-17 19:48 Tomatoes 阅读(491) 评论(0) 推荐(0)
摘要: SQL>set autotrace onSQL>select sal from emp where empno=7902; SAL ---------- 3000 Execution Plan ---------------------------------------------------------- Plan hash value: 2949544139 ... 阅读全文
posted @ 2016-10-17 19:44 Tomatoes 阅读(550) 评论(0) 推荐(0)
摘要: ①连接到scott下,查询scott对应的sid,serial# ②开启对scott用户的跟踪: ③在scott下进行操作 ④关闭对scott用户的跟踪: ⑤查询trace文件的位置: ⑥查看生成的trace文件目录: ⑦用tkporf查看生成的trace文件: 阅读全文
posted @ 2016-10-17 19:34 Tomatoes 阅读(193) 评论(0) 推荐(0)
摘要: ①创建表t3: ②开启自动捕获并修改时间格式: ③查询sql ④创建索引: ⑤再次执行相同的sql语句: ⑥演进执行计划: ⑦再次查看: ⑧查看现在查询所用的执行计划: 阅读全文
posted @ 2016-10-17 19:27 Tomatoes 阅读(578) 评论(0) 推荐(0)