07 2015 档案

摘要:19.1 Overview of Optimizer Hints A hint is an instruction to the optimizer. In a test or development environments, hints are useful for testing ... 阅读全文
posted @ 2015-07-20 09:25 神之一招 阅读(185) 评论(0) 推荐(0) 编辑
摘要:16.1 Introduction to SQL Tuning Identifying high load or top SQL statements that are responsible for a large share of the application workload and ... 阅读全文
posted @ 2015-07-20 09:24 神之一招 阅读(264) 评论(0) 推荐(0) 编辑
摘要:正常配置一下, 就OK了, 不用理了, oracle 11g 默认启动发展: 1、从Oracle的发展角度来看,估计这种方法是Oracle发展和改进的方向,如今outline已经被废弃,sql profile 估计在后续的发行版本中也难有改进,因此,对于从11g开始接触O... 阅读全文
posted @ 2015-07-20 09:23 神之一招 阅读(417) 评论(0) 推荐(0) 编辑
摘要:do not build indexes unless necessary. 索引是非常占资源的To maintain optimal performance, drop indexes that an application is not using. 不用的索引可以drop掉, 通过toad可以... 阅读全文
posted @ 2015-07-20 09:22 神之一招 阅读(148) 评论(0) 推荐(0) 编辑
摘要:The row source tree is the core of the execution plan. The tree shows the following information: An ordering of the tables referenced by the statem... 阅读全文
posted @ 2015-07-20 09:21 神之一招 阅读(304) 评论(0) 推荐(0) 编辑
摘要:trap 命令 基本格式: trap command sig1 sig2 ... sigN 有3种信号可以捕获: EXIT : 从函数中退出, 或整个脚本执行完毕 ERR: 当一条命令返回非0状态码, 即命令执行不成功 DEBUG: 脚本汇总每一条命令执行前 演示 DEBUG(一般使用这个方法查看... 阅读全文
posted @ 2015-07-18 13:24 神之一招 阅读(419) 评论(0) 推荐(0) 编辑
摘要:传递参数 在bash shell 编程中, 向函数传递的参数仍然是位置参数的方式来传递的, 而不能传递数组等其他形式的变量, 这与C语言 或JAVA语言的函数传递是不同的. #!/bin/bash half() { let "n = $1"... 阅读全文
posted @ 2015-07-18 13:13 神之一招 阅读(202) 评论(0) 推荐(0) 编辑
摘要:数组 单个赋值: city[0]=Nanjing city[1]=Beijing 等等 集体赋值: city = (Nanjing Beijing) for i in ${city[@]} # 这里的 @(或*) 同脚本参数一样, 表示全部的意思 ... 阅读全文
posted @ 2015-07-18 12:49 神之一招 阅读(156) 评论(0) 推荐(0) 编辑
摘要:1. 赋值运算符= 左右之间不能加空格, 其余的都可以加空格, 而这种限制在以下情况, 可以使用空格 let "n = $1" 虽然也是赋值语句, 但是可以使用空格 阅读全文
posted @ 2015-07-18 12:30 神之一招 阅读(175) 评论(0) 推荐(0) 编辑
摘要:for for 列表用法 for variable1 in {1..5} do done 不带列表 for varibale in "$@" do done 可以看到, 不带列表的, 与带列表的区别不大 类C风格 for (( integer=1; integer= 10)) then break ... 阅读全文
posted @ 2015-07-15 21:09 神之一招 阅读(215) 评论(0) 推荐(0) 编辑
摘要:变量 linux 中变量分为, 本地变量, 环境变量, 位置变量 本地变量: 类似C 中的局部变量, 在新启动的shell中不存在, 只有当前shell中先定义了, 之后才能引用 环境变量: 适用于所有由登陆进程产生的子进程, 简言之, 环境变量在用户登陆后到注销之前的所有编辑器, 脚本... 阅读全文
posted @ 2015-07-14 21:30 神之一招 阅读(243) 评论(0) 推荐(0) 编辑