上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 前言:(一)准备工作: 1.数据库要处于归档模式; 2.监听参数:local_listener 默认值为空--1521 3.关闭闪回(可能会触发数据库的bug,备库不能开闪回) 4.如果有外部表,外部表要删除。 (二)环境描述: 192.168.206.8 主库 ORA11GR2 192.168.2 阅读全文
posted @ 2016-10-20 01:42 Tomatoes 阅读(784) 评论(0) 推荐(0) 编辑
摘要: ①创建表: ②设置t4处于nologging: ③开启autotrace查看执行计划: ④插入数据: ⑤使用append插入数据: 比较一下普通插入和append插入生成的redo大小,明显append插入时生成的redo小很多。 SQL> insert /*+ append */ into t4 阅读全文
posted @ 2016-10-17 20:04 Tomatoes 阅读(265) 评论(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 阅读(717) 评论(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 阅读(961) 评论(0) 推荐(0) 编辑
摘要: SQL> select count(*) from employees; COUNT(*) ---------- 107 Execution Plan ---------------------------------------------------------- Plan hash value: 3580537945 -----------------------... 阅读全文
posted @ 2016-10-17 19:48 Tomatoes 阅读(479) 评论(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 阅读(537) 评论(0) 推荐(0) 编辑
摘要: ①连接到scott下,查询scott对应的sid,serial# ②开启对scott用户的跟踪: ③在scott下进行操作 ④关闭对scott用户的跟踪: ⑤查询trace文件的位置: ⑥查看生成的trace文件目录: ⑦用tkporf查看生成的trace文件: 阅读全文
posted @ 2016-10-17 19:34 Tomatoes 阅读(181) 评论(0) 推荐(0) 编辑
摘要: ①创建表t3: ②开启自动捕获并修改时间格式: ③查询sql ④创建索引: ⑤再次执行相同的sql语句: ⑥演进执行计划: ⑦再次查看: ⑧查看现在查询所用的执行计划: 阅读全文
posted @ 2016-10-17 19:27 Tomatoes 阅读(566) 评论(0) 推荐(0) 编辑
摘要: ①首先进入$ORACLE_HOME/rdbms/admin目录 该目录下 以SYSDBA身份登录运行@awrrpt 阅读全文
posted @ 2016-10-15 19:13 Tomatoes 阅读(492) 评论(0) 推荐(0) 编辑
摘要: ①创建测试表空间 ②在测试表空间上创建测试表 ③删除数据文件 ④再创建表,验证,数据文件已丢失 切记,此时,不能关闭数据库 ⑤查看DBWR进程的pid ⑥找到句柄 ⑦将找到的句柄拷贝回来 ⑧查看数据文件的状态 ⑨将数据文件offline 再次查看数据文件 ⑩恢复数据文件,将数据文件online 阅读全文
posted @ 2016-10-13 21:30 Tomatoes 阅读(216) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页