<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_酷鸭战线</title><subtitle type="text">世界很大,每个人总有相同的地方!你喜欢的电影我也喜欢，我喜欢的作品你也喜欢!                                       就是这样，其实生活并不孤单。</subtitle><id>http://feed.cnblogs.com/blog/u/7702/rss</id><updated>2012-01-16T03:05:33Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/7702/rss"/><entry><id>http://www.cnblogs.com/QDuck/archive/2012/01/11/2318871.html</id><title type="text">动量ODE评估</title><summary type="text">1.业务构件化的解决方案。2.业务构件层级: 数据建模（问题1：主键和业务无关，主键由系统直接生成）。 菜单， 门户， 界面 （页面设计上，使用克隆按钮实现多个操作页面）， 表单（支持页面类型很多，问题2：业务实体和数据库对象实体之间转化，没有实际的业务实体对象。）， 业务流程（问题：流程中的角色没有everyone，自己需要建个角色，将所有用户添加进来。）， 业务规则（1.页面逻辑实现的方法直接使用写java代码的方式， 2.支持数据库查询where的过滤配置，不支持数据库自定义函数）， 报表， 文档， 网站， 作业， 权限(权限设置有点强大，菜单，页面，...</summary><published>2012-01-11T02:13:00Z</published><updated>2012-01-11T02:13:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2012/01/11/2318871.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2012/01/11/2318871.html"/><content type="html">&lt;p&gt;1.业务构件化的解决方案。&lt;/p&gt;&#xD;
&lt;p&gt;2.业务构件层级:&lt;/p&gt;&#xD;
&lt;p&gt;数据建模（问题1：主键和业务无关，主键由系统直接生成）。&lt;/p&gt;&#xD;
&lt;p&gt;菜单，&lt;/p&gt;&#xD;
&lt;p&gt;门户，&lt;/p&gt;&#xD;
&lt;p&gt;界面 （页面设计上，使用克隆按钮实现多个操作页面），&lt;/p&gt;&#xD;
&lt;p&gt;表单（支持页面类型很多，问题2：业务实体和数据库对象实体之间转化，没有实际的业务实体对象。），&lt;/p&gt;&#xD;
&lt;p&gt;业务流程（问题：流程中的角色没有everyone，自己需要建个角色，将所有用户添加进来。），&lt;/p&gt;&#xD;
&lt;p&gt;业务规则（1.页面逻辑实现的方法直接使用写java代码的方式，&lt;/p&gt;&#xD;
&lt;p&gt;2.支持数据库查询where的过滤配置，不支持数据库自定义函数），&lt;/p&gt;&#xD;
&lt;p&gt;报表，&lt;/p&gt;&#xD;
&lt;p&gt;文档，&lt;/p&gt;&#xD;
&lt;p&gt;网站，&lt;/p&gt;&#xD;
&lt;p&gt;作业，&lt;/p&gt;&#xD;
&lt;p&gt;权限(权限设置有点强大，菜单，页面，实体，行)，&lt;/p&gt;&#xD;
&lt;p&gt;集成，&lt;/p&gt;&#xD;
&lt;p&gt;样式。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Result:&lt;/p&gt;&#xD;
&lt;p&gt;实施来看，基本与软件开发的流程一致，只是将之前由软件工程师做的开发动作，由ODE系统间接生成原始代码来实现。&lt;/p&gt;&#xD;
&lt;p&gt;多个应用APP之间的对象复用是否存在问题？App之间通过导入导出配置来实现复用，APP里的模块之间的调用，通过Share方式。&lt;/p&gt;&#xD;
&lt;p&gt;协同开发的问题？两个人无法同时开发一个模块，可以分别负责不同的模块开发来实现。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;ODE :&lt;/p&gt;&#xD;
&lt;p&gt;hib, spring, mysql .&lt;/p&gt;&#xD;
&lt;p&gt;支持最好的是：ie8，ie9有点问题。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2318871.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2012/01/11/2318871.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2012/01/10/2318584.html</id><title type="text">相当有用的Table Row And Col Fix方法。</title><summary type="text">JQuery.FixedTablejQuery.FixedTable is a jQuery plugin to create a fixed header and columns on a HTML table. The idea is fromhttps://www.open2space.com/projects/fixedtable. We have improved it, and fixed some bugs.FeatureAllow horizontal and vertical scroll.Support multiple HTML tables in one page.Th</summary><published>2012-01-10T14:29:00Z</published><updated>2012-01-10T14:29:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2012/01/10/2318584.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2012/01/10/2318584.html"/><content type="html">&lt;p&gt;&lt;strong&gt;JQuery.FixedTable&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;jQuery.FixedTable is a jQuery plugin to create a fixed header and columns on a HTML table. The idea is from&amp;nbsp;&lt;a href="https://www.open2space.com/projects/fixedtable"&gt;https://www.open2space.com/projects/fixedtable&lt;/a&gt;. We have improved it, and fixed some bugs.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Feature&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;ul&gt;&#xD;
&lt;li&gt;Allow horizontal and vertical scroll.&lt;/li&gt;&#xD;
&lt;li&gt;Support multiple HTML tables in one page.&lt;/li&gt;&#xD;
&lt;li&gt;The number of fixed columns can be customize.&lt;/li&gt;&#xD;
&lt;li&gt;The background colors of each row when mouse is over and out can be customized.&lt;/li&gt;&#xD;
&lt;/ul&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Files&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://www.novasoftware.com/download/download.gif" alt="Nova Download" /&gt;&lt;a href="http://www.novasoftware.com/download/jquery_fixedtable/jQuery_FixedTable_Demo.htm" target="_blank"&gt;Demo&lt;/a&gt;&amp;nbsp;, Download:&amp;nbsp;&lt;a href="http://www.novasoftware.com/download/jquery_fixedtable/jquery.fixedtable.js" target="_blank"&gt;Source Code&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;Usage&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;To make a fixed table, you need to some javascript code and a &amp;lt;table&amp;gt; with the &amp;lt;thead&amp;gt; and &amp;lt;tfoot&amp;gt; in your page, and set the elements' class.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;e.g.&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;pre &gt;&lt;span &gt;&amp;lt;&lt;/span&gt;script type&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"text/javascript"&lt;/span&gt; src&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"jquery.js"&lt;/span&gt;&lt;span &gt;&amp;gt;&amp;lt;/&lt;/span&gt;script&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &lt;span &gt;&amp;lt;&lt;/span&gt;script type&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"text/javascript"&lt;/span&gt; src&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"jquery.fixedtable.js"&lt;/span&gt;&lt;span &gt;&amp;gt;&amp;lt;/&lt;/span&gt;script&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &lt;span &gt;&amp;lt;&lt;/span&gt;script type&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"text/javascript"&lt;/span&gt;&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &lt;span &gt;// this "tableDiv" must be the table's class&lt;/span&gt;&#xD;
    $&lt;span &gt;(&lt;/span&gt;&lt;span &gt;".tableDiv"&lt;/span&gt;&lt;span &gt;).&lt;/span&gt;&lt;span &gt;each&lt;/span&gt;&lt;span &gt;(&lt;/span&gt;&lt;span &gt;function&lt;/span&gt;&lt;span &gt;()&lt;/span&gt; &lt;span &gt;{&lt;/span&gt;      &#xD;
        &lt;span &gt;var&lt;/span&gt; Id &lt;span &gt;=&lt;/span&gt; $&lt;span &gt;(&lt;/span&gt;&lt;span &gt;this&lt;/span&gt;&lt;span &gt;).&lt;/span&gt;&lt;span &gt;get&lt;/span&gt;&lt;span &gt;(&lt;/span&gt;&lt;span &gt;0&lt;/span&gt;&lt;span &gt;).&lt;/span&gt;id&lt;span &gt;;&lt;/span&gt;&#xD;
        &lt;span &gt;var&lt;/span&gt; maintbheight &lt;span &gt;=&lt;/span&gt; &lt;span &gt;555&lt;/span&gt;&lt;span &gt;;&lt;/span&gt;&#xD;
        &lt;span &gt;var&lt;/span&gt; maintbwidth &lt;span &gt;=&lt;/span&gt; &lt;span &gt;911&lt;/span&gt;&lt;span &gt;;&lt;/span&gt;&#xD;
&#xD;
        $&lt;span &gt;(&lt;/span&gt;&lt;span &gt;"#"&lt;/span&gt; &lt;span &gt;+&lt;/span&gt; Id &lt;span &gt;+&lt;/span&gt; &lt;span &gt;" .FixedTables"&lt;/span&gt;&lt;span &gt;).&lt;/span&gt;&lt;span &gt;fixedTable&lt;/span&gt;&lt;span &gt;(&lt;/span&gt;&lt;span &gt;{&lt;/span&gt;&#xD;
            width&lt;span &gt;:&lt;/span&gt; maintbwidth&lt;span &gt;,&lt;/span&gt;&#xD;
            height&lt;span &gt;:&lt;/span&gt; maintbheight&lt;span &gt;,&lt;/span&gt;&#xD;
            fixedColumns&lt;span &gt;:&lt;/span&gt; &lt;span &gt;1&lt;/span&gt;&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// header style&lt;/span&gt;&#xD;
            classHeader&lt;span &gt;:&lt;/span&gt; &lt;span &gt;"fixedHead"&lt;/span&gt;&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// footer style        &lt;/span&gt;&#xD;
            classFooter&lt;span &gt;:&lt;/span&gt; &lt;span &gt;"fixedFoot"&lt;/span&gt;&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// fixed column on the left        &lt;/span&gt;&#xD;
            classColumn&lt;span &gt;:&lt;/span&gt; &lt;span &gt;"fixedColumn"&lt;/span&gt;&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// the width of fixed column on the left      &lt;/span&gt;&#xD;
            fixedColumnWidth&lt;span &gt;:&lt;/span&gt; &lt;span &gt;150&lt;/span&gt;&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// table's parent div's id           &lt;/span&gt;&#xD;
            outerId&lt;span &gt;:&lt;/span&gt; Id&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// tds' in content area default background color                     &lt;/span&gt;&#xD;
            Contentbackcolor&lt;span &gt;:&lt;/span&gt; &lt;span &gt;"#FFFFFF"&lt;/span&gt;&lt;span &gt;,&lt;/span&gt;&#xD;
            &lt;span &gt;// tds' in content area background color while hover.     &lt;/span&gt;&#xD;
            Contenthovercolor&lt;span &gt;:&lt;/span&gt; &lt;span &gt;"#99CCFF"&lt;/span&gt;&lt;span &gt;,&lt;/span&gt; &#xD;
            &lt;span &gt;// tds' in fixed column default background color   &lt;/span&gt;&#xD;
            fixedColumnbackcolor&lt;span &gt;:&lt;/span&gt;&lt;span &gt;"#187BAF"&lt;/span&gt;&lt;span &gt;,&lt;/span&gt; &#xD;
            &lt;span &gt;// tds' in fixed column background color while hover. &lt;/span&gt;&#xD;
            fixedColumnhovercolor&lt;span &gt;:&lt;/span&gt;&lt;span &gt;"#99CCFF"&lt;/span&gt;  &#xD;
        &lt;span &gt;}&lt;/span&gt;&lt;span &gt;);&lt;/span&gt;        &#xD;
    &lt;span &gt;}&lt;/span&gt;&lt;span &gt;);&lt;/span&gt;&#xD;
    &lt;span &gt;&amp;lt;/&lt;/span&gt;script&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &lt;/pre&gt;&#xD;
&lt;pre &gt;&lt;span &gt;&amp;lt;&lt;/span&gt;div id&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"tableDiv_Arrays"&lt;/span&gt; &lt;span &gt;class&lt;/span&gt;&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"tableDiv"&lt;/span&gt;&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;table id&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"Open_Text_Arrays"&lt;/span&gt; &lt;span &gt;class&lt;/span&gt;&lt;span &gt;=&lt;/span&gt;&lt;span &gt;"FixedTables"&lt;/span&gt;&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;thead&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;tr&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Purpose&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&lt;span &gt;#&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Php4&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Php5&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActionScript&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JavaScript&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ruby&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;tr&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;thead&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;tbody&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;tr&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data1&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data2&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data3&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data4&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data5&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data6&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data7&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;tr&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;tbody&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;tfoot&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;tr&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Purpose&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&lt;span &gt;#&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Php4&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Php5&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ActionScript&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;JavaScript&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Ruby&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;th&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;tr&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;tfoot&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span &gt;&amp;lt;/&lt;/span&gt;table&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &lt;span &gt;&amp;lt;/&lt;/span&gt;div&lt;span &gt;&amp;gt;&lt;/span&gt;&#xD;
    &lt;/pre&gt;&#xD;
&lt;p&gt;note: if you do not need the footer, just remove the &amp;lt;tfoot&amp;gt; in your html code.&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2318584.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2012/01/10/2318584.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html</id><title type="text">ORACLE 11g R2 归档模式</title><summary type="text">archive log listshow parameter clusterstartup nomountalter database mount;alter database archivelog;archive log list;</summary><published>2011-12-06T11:06:00Z</published><updated>2011-12-06T11:06:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html"/><content type="html">&lt;p&gt;archive log list&lt;/p&gt;&#xD;
&lt;p&gt;show parameter cluster&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;startup nomount&lt;/p&gt;&#xD;
&lt;p&gt;alter database mount;&lt;/p&gt;&#xD;
&lt;p&gt;alter database archivelog;&lt;/p&gt;&#xD;
&lt;p&gt;archive log list;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2278381.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/12/06/2278381.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/09/07/2169662.html</id><title type="text">DHCP server configuration on the Cisco Aironet 1100 and 1200 series AP</title><summary type="text">DHCP server configuration on the Cisco Aironet 1100 and 1200 series APhttps://supportforums.cisco.com/docs/DOC-3628ResolutionDynamic Host Configuration Protocol (DHCP) server capability was first available on the Cisco Aironet 1100 and 1200 series Access Points (APs) in version 12.2(11)JA1.When an A</summary><published>2011-09-07T03:50:00Z</published><updated>2011-09-07T03:50:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/09/07/2169662.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/09/07/2169662.html"/><content type="html">&lt;p&gt;&lt;span  style="color: #333333; font-family: Arial, verdana, sans-serif; font-size: 12px; line-height: normal;"&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;h2 style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 2em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; line-height: 1.1em; color: #ee6804; border-width: 0px; margin: 0px;"&gt;DHCP server configuration on the Cisco Aironet 1100 and 1200 series AP&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;a href="https://supportforums.cisco.com/docs/DOC-3628"&gt;https://supportforums.cisco.com/docs/DOC-3628&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;h3 style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1.5556em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 10px; padding-right: 0px; padding-bottom: 4px; padding-left: 0px; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; margin: 0px;"&gt;&lt;span  style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 19px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Resolution&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Dynamic Host Configuration Protocol (DHCP) server capability was first available on the Cisco Aironet 1100 and 1200 series Access Points (APs) in version 12.2(11)JA1.&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 8pt; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; background-repeat: initial initial; border-width: 0px; margin: 0px;"&gt;When an AP is configured as a DHCP server, it can provide IP addresses to an Ethernet-capable PC connected to its Ethernet port or to wireless client devices that associate to the AP.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Setting up the DHCP Server&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;By default, access points are configured to receive IP settings from a DHCP server on your network. You can also configure an access point to act as a DHCP server to assign IP settings to devices on both your wired and wireless LANs.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;The access point becomes a mini-DHCP server by default when it is configured with factory default settings and it cannot receive IP settings from a DHCP server. As a mini-DHCP server, the access point provides up to 20 IP addresses between 10.0.0.11 and 10.0.0.30 to a PC connected to its Ethernet port and to wireless client devices configured to use no SSID, and with all security settings disabled. The mini-DHCP server feature is disabled automatically when you assign a static IP address to the access point. Because it has a console port to simplify initial setup.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Note When you configure the access point as a DHCP server, it assigns IP addresses to devices on its subnet. The devices communicate with other devices on the subnet but not beyond it. If data needs to be passed beyond the subnet, you must assign a default router. The IP address of the default router should be on the same subnet as the access point configured as the DHCP server.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;For detailed information on DHCP-related commands and options, refer to the Configuring DHCP chapter in the Cisco IOS IP Configuration Guide, Release 12.3. Click this URL to browse to the "Configuring DHCP" chapter:&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;a  href="http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt1/1cfdhcp.htm" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt1/1cfdhcp.htm&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Beginning in privileged EXEC mode, follow these steps to configure an access point to provide DHCP service and specify a default router:&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;table border="1" cellpadding="3" cellspacing="0" id="wp1057378table1057374" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; width: 570px; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;tbody style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;tr align="left" valign="bottom" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;th scope="col"&gt;&lt;/th&gt;&lt;th scope="col"&gt;&#xD;
&lt;div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Command&lt;/div&gt;&#xD;
&lt;/th&gt;&lt;th scope="col"&gt;&#xD;
&lt;div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Purpose&lt;/div&gt;&#xD;
&lt;/th&gt;&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 1&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;configure terminal&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Enter global configuration mode.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 2&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: normal; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip dhcp excluded-address&lt;/strong&gt;low_address [ high_address ]&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Exclude the wireless device IP address from the range of addresses the&amp;nbsp; wireless device assigns. Enter the IP address in four groups of&amp;nbsp; characters, such as 10.91.6.158.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;the wireless device assumes that all IP addresses in a DHCP address pool&amp;nbsp; subnet are available for assigning to DHCP clients. You must specify&amp;nbsp; the IP addresses that the DHCP Server should not assign to clients.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;(Optional) To enter a range of excluded addresses, enter the address at&amp;nbsp; the low end of the range followed by the address at the high end of the&amp;nbsp; range.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 3&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: normal; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip dhcp pool&lt;/strong&gt;pool_name&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Create a name for the pool of IP addresses that the wireless device&amp;nbsp; assigns in response to DHCP requests, and enter DHCP configuration mode.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 4&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: normal; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;network&lt;/strong&gt;subnet_number&amp;nbsp;&lt;br /&gt;[&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: normal; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/strong&gt;mask | prefix-length ]&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Assign the subnet number for the address pool. The wireless device assigns IP addresses within this subnet.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;(Optional) Assign a subnet mask for the address pool, or specify the&amp;nbsp; number of bits that comprise the address prefix. The prefix is an&amp;nbsp; alternative way of assigning the network mask. The prefix length must be&amp;nbsp; preceded by a forward slash (/).&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 5&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;lease { days [ hours ] [ minutes ] |&amp;nbsp;&lt;br /&gt;infinite }&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Configure the duration of the lease for IP addresses assigned by the wireless device.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&amp;bull;&lt;a href="http://www.cisco.com/en/US/i/templates/blank.gif" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;img border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding: 0px; margin: 0px;" /&gt;&lt;/a&gt;days&amp;mdash;configure the lease duration in number of days&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&amp;bull;&lt;a href="http://www.cisco.com/en/US/i/templates/blank.gif" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;img border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding: 0px; margin: 0px;" /&gt;&lt;/a&gt;(optional) hours&amp;mdash;configure the lease duration in number of hours&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&amp;bull;&lt;a href="http://www.cisco.com/en/US/i/templates/blank.gif" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;img border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding: 0px; margin: 0px;" /&gt;&lt;/a&gt;(optional) minutes&amp;mdash;configure the lease duration in number of minutes&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&amp;bull;&lt;a href="http://www.cisco.com/en/US/i/templates/blank.gif" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;img border="0" height="2" src="http://www.cisco.com/en/US/i/templates/blank.gif" width="19" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding: 0px; margin: 0px;" /&gt;&lt;/a&gt;infinite&amp;mdash;set the lease duration to infinite&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 6&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;default-router address [address2 ... address 8]&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Specify the IP address of the default router for DHCP clients on the&amp;nbsp; subnet. One IP address is required; however, you can specify up to eight&amp;nbsp; addresses in one command line.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 7&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;end&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Return to privileged EXEC mode.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 8&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;show running-config&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Verify your entries.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Step 9&amp;nbsp;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;copy running-config startup-config&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;(Optional) Save your entries in the configuration file.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;/tbody&gt;&#xD;
&lt;/table&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Use the no form of these commands to return to default settings.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;This example shows how to configure the wireless device as a DHCP server, exclude a range of IP address, and assign a default router:&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP# configure terminal&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP(config)# ip dhcp excluded-address 172.16.1.1 172.16.1.20&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP(config)# ip dhcp pool wishbone&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP(dhcp-config)# network 172.16.1.0 255.255.255.0&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP(dhcp-config)# lease 10&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP(dhcp-config)# default-router 172.16.1.1&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;AP(dhcp-config)# end&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 8pt; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-position: initial initial; background-repeat: initial initial; border-width: 0px; margin: 0px;"&gt;To configure DHCP service on the AP, refer to the&amp;nbsp;&lt;span  style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Configuring DHCP Service&lt;/span&gt;&amp;nbsp;section of&amp;nbsp;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;a  href="http://www.cisco.com/en/US/docs/wireless/access_point/12.4_3g_JA/configuration/guide/s43adm.html" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Administering the Access Point&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Note:&lt;/strong&gt;&amp;nbsp;When you use an external DHCP server to provide IP addresses and if the DHCP server is behind a router you can use the&amp;nbsp;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address&lt;/strong&gt;&amp;nbsp; command to forward the bootp broadcast packets received on the Router interface to the DHCP server. DHCP protocol information is carried inside of BOOTP packets. To enable BOOTP broadcast forwarding for a set of clients, configure a helper address on the router interface closest to the client. The helper address should specify the address of the DHCP server. If you have multiple servers, you can configure one helper address for each server. Because BOOTP packets are forwarded by default, DHCP information can now be forwarded by the router. The DHCP server now receives broadcasts from the DHCP clients. For more information on the usage of this command read&amp;nbsp;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;a  href="http://www.cisco.com/en/US/customer/docs/ios/12_3t/ip_addr/command/reference/ip1_i1gt.html#wp1169356" target="_blank" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address&lt;/a&gt;&amp;nbsp;&lt;/strong&gt;command.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; text-decoration: underline; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address&lt;/strong&gt;&lt;/span&gt;;-&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;To enable the forwarding of User Datagram Protocol (UDP) broadcasts, including BOOTP, received on an interface, use the ip helper-address command in interface configuration mode. To disable the forwarding of broadcast packets to specific addresses, use the no form of this command.&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address [vrf name | global] address [redundancy vrg-name]&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;no ip helper-address [vrf name | global] address [redundancy vrg-name]&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; text-decoration: underline; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Syntax Description&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;div align="left" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;table border="1" cellpadding="3" cellspacing="0" id="wp1169363table1169361" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; width: 570px; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;caption style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/caption&gt;&#xD;
&lt;tbody style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: normal; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;vrf&lt;/strong&gt;&amp;nbsp;&lt;em style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;name&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;(Optional) Enables VPN routing and forwarding (VRF) instance and VRF name.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;global&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;(Optional) Configures a global routing table.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;em style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;address&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Destination broadcast or host address to be used when forwarding UDP&amp;nbsp; broadcasts. There can be more than one helper address per interface.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;tr align="left" valign="top" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;redundancy&lt;/strong&gt;vrg-name&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;td&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;(Optional) Defines the VRG group name.&lt;/p&gt;&#xD;
&lt;/td&gt;&#xD;
&lt;/tr&gt;&#xD;
&lt;/tbody&gt;&#xD;
&lt;/table&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12pt; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; text-decoration: underline; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 16px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Examples&lt;/strong&gt;&lt;/span&gt;;-&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;The following example defines an address that acts as a helper address:&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;interface ethernet 1&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address 121.24.43.2&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;The following example defines an address that acts as a helper address and is associated with the VRF named red:&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;interface ethernet 1/0&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address vrf red 121.25.44.2&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;The following example defines an address that acts as a helper address and is associated with the VRG named shop:&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;interface ethernet 1/0&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;ip helper-address 121.25.45.2 redundancy shop&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; text-decoration: underline; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;strong style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Administering the Access Point:-&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;div  style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;a  href="http://www.cisco.com/en/US/docs/wireless/access_point/12.4_3g_JA/configuration/guide/s43adm.html" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: initial; outline-style: none; outline-color: initial; color: #2f6681; text-decoration: none; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;http://www.cisco.com/en/US/docs/wireless/access_point/12.4_3g_JA/configuration/guide/s43adm.html&lt;/a&gt;&lt;/div&gt;&#xD;
&lt;div  style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/div&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;h3 style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1.5556em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 10px; padding-right: 0px; padding-bottom: 4px; padding-left: 0px; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; margin: 0px;"&gt;&lt;span  style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 19px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Problem Type&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Configure / Configuration issues&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;h3 style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1.5556em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 10px; padding-right: 0px; padding-bottom: 4px; padding-left: 0px; font-weight: bold; background-position: initial initial; background-repeat: initial initial; border-width: 0px; margin: 0px;"&gt;&lt;span  style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 19px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Products&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; min-height: 8pt; height: 8pt; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;/p&gt;&#xD;
&lt;p style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 1em; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;&lt;span style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; border-style: initial; border-color: initial; border-collapse: collapse; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; list-style-type: none; list-style-position: initial; list-style-image: initial; outline-width: 0px; outline-style: initial; outline-color: initial; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;"&gt;Access point&lt;/span&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2169662.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/09/07/2169662.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html</id><title type="text">Oracle PLSQL 学习笔记(块、控制结构、过程、函数、包)</title><summary type="text">Oracle PL/SQL学习笔记一、PL/SQL 块块定义语法：DECLARE/* 定义部分——定义常量、变量、复杂数据类型、游标*/BEGIN/* 执行部分——PL/SQL语句和SQL语句*/EXCEPTION/* 异常处理部分——处理运行错误*/ END; 注：PL/SQL中结束输入使用‘/’字符dbms_output.put_line(“输出的字符串内容”);dbms_output是oracle提供的系统包；put_line 是该包中的过程，用于输出字符串信息。当使用dbms_output包时必须要先激活服务器输出激活服务器输出语句： set serveroutput on示例：DEC</summary><published>2011-09-05T09:01:00Z</published><updated>2011-09-05T09:01:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html"/><content type="html">&lt;p&gt;&lt;span  style="font-family: arial, helvetica, sans-serif, verdana, 宋体; line-height: 20px;"&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p align="center" style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;Oracle PL/SQL&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;学习笔记&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;一、PL/SQL 块&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;块定义语法：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;DECLARE&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;/*&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;定义部分&amp;mdash;&amp;mdash;定义常量、变量、复杂数据类型、游标&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;*/&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;BEGIN&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;/*&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;执行部分&amp;mdash;&amp;mdash;PL/SQL语句和SQL语句&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;*/&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;EXCEPTION&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;/*&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;异常处理部分&amp;mdash;&amp;mdash;处理运行错误&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;*/&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;END;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;注：PL/SQL中结束输入使用&amp;lsquo;/&amp;rsquo;字符&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;dbms_output.put_line(&amp;ldquo;输出的字符串内容&amp;rdquo;);&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;dbms_output是&lt;a  href="http://www.chinawin.net/tag/oracle/" target="_blank" style="color: #333333; text-decoration: none; font-weight: bold;"&gt;oracle&lt;/a&gt;提供的系统包；put_line&amp;nbsp;&amp;nbsp;&amp;nbsp; 是该包中的过程，用于输出字符串信息。当使用dbms_output包时必须要先激活服务器输出&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;激活服务器输出语句： set serveroutput on&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;示例：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;DECLARE&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;str&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; varchar(5)&amp;nbsp;&amp;nbsp;&amp;nbsp; --变量的定义&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;BEGIN&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;Select name INTO str FROM emp &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --INTO是将name的值赋值给str&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;where empno=$no;&amp;nbsp;&amp;nbsp;&amp;nbsp; --$no是替代变量&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;EXCEPTION&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;When NO_DATA_FOUND then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --PL/SQL预定义的异常类型&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;dbms_output.put_line(&amp;ldquo;输出的字符串内容&amp;rdquo;);&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;END;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;变量定义语法：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;变量名 [CONSTANT] 数据类型 [NOT NULL] [:=|DEFAULT 默认值或函数]&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;--CONSTANT表示常量；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;--:=设置默认值&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;%TYPE&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;属性&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;示例：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp; emp.ename%TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --name与emp表中ename列的类型和长度相同&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;Sex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name%TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --sex与name类型和长度相同&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;%ROWTYPE&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;属性&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;语法：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;变量名&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 表名%ROWTYPE&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;示例：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;Str&amp;nbsp;&amp;nbsp; T1%ROWTYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;--str变量对应T1表中所有列，并且该表中的所有列的类型与长度相同&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;PL/SQL&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;中使用的操作符&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;:=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --赋值操作符&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;=&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; --关联操作符&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;||&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --连接操作符&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;PL/SQL&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;游标&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;游标定义语法：&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;CURSOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 游标名&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IS&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL语句&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;游标名%ISOPEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 判断游标是否已经打开&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;游标名%FOUND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL语句有作用行市，其属性值为TRUE；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;游标名%NOTFOUND SQL语句没有作用行市，其属性值为TRUE；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;游标名%ROWCOUNT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 返回SQL语句所作用的总行数&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;注：游标名默认为&amp;lsquo;SQL&amp;rsquo;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;二、&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;PL/SQL&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;控制语句&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;1、分支语句&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;IF&amp;nbsp;&amp;nbsp;&amp;nbsp; 条件&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;ELSEIF 条件THEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;ELSE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;END &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;2、多重分支语句&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;CASE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 表达式&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;WHEN&amp;nbsp;&amp;nbsp;&amp;nbsp; 要判断的值&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;WHEN&amp;nbsp;&amp;nbsp;&amp;nbsp; 要判断的值&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN &amp;nbsp;&amp;nbsp; 执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;ELSE &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;END &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;3、循环语句一&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;WHILE&amp;nbsp;&amp;nbsp; 条件&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOOP&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;执行操作&amp;middot;&amp;middot;&amp;middot;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;END &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOOP;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;4、循环语句二&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;FOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 变量&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IN&amp;nbsp;&amp;nbsp;&amp;nbsp; [REVERSE]&amp;nbsp;&amp;nbsp;&amp;nbsp; 起点值　．．终点值 LOOP&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;执行操作&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;END&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOOP;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;注：REVERSE表示由终点值到起点值循环；　．．是固定格式；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;三、&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;存储过程&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;创建过程语法：&lt;/strong&gt;&lt;br style="margin-bottom: 8px;" /&gt;create [or replace] procedure procedure_name&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;[ (argment [ { in| in out }] type,&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;argment [ { in | out | in out } ] type&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;{ is | as }&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;&amp;lt;类型.变量的说明&amp;gt;&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;( 注: 不用 declare 语句 )&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;Begin&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;&amp;lt;执行部分&amp;gt;&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;exception&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;&amp;lt;可选的异常处理说明&amp;gt;&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;end; l 这里的IN表示向存储过程传递参数，OUT表示从存储过程返回参数。而IN OUT 表示传递参数和返回参数；&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;l 在存储过程内的变量类型只能指定变量类型；不能指定长度；&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;l 在AS或IS 后声明要用到的变量名称和变量类型及长度；&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;l 在AS或IS 后声明变量不要加declare 语句。&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;br style="margin-bottom: 8px;" /&gt;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;示例：&lt;/strong&gt;&lt;br style="margin-bottom: 8px;" /&gt;CREATE OR REPLACE PROCEDURE ModeTest (&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;p_InParameter IN NUMBER,&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;p_OutParameter OUT NUMBER,&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;p_InOutParameter IN OUT NUMBER) IS&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;过程体v_LocalVariable NUMBER; --定义变量BEGIN&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;/* 分配p_InParameter给v_LocalVariable.；p_InParamete表示值*/&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;v_LocalVariable := p_InParameter; -- 合法&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;/* 分配 7 给 p_InParameter. 这是非法的,因为声明是IN ；p_InParamete表示值，即值不能給值*/&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;p_InParameter := 7; -- 非法&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;/* 分配7给p_ OutParameter. 这是合法的,因为声明是OUT；p_ OutParameter表示变量 */&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;p_OutParameter := 7; -- 合法 /* 分配 p_OutParameter 给 v_LocalVariable.这是非法的,因为声明是OUT；p_ OutParameter表示变量，即变量不能给变量*/&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;v_LocalVariable := p_outParameter; -- 非法 /* 分配 p_InOutParameter 给 v_LocalVariable. 这是合法的,因为声明是IN OUT */&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;v_LocalVariable := p_InOutParameter; --合法 /*分配 7 给 p_InOutParameter. 这是合法的,因为声明是IN OUT */&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;p_InOutParameter := 7; -- 合法&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;END ModeTest;&amp;nbsp;&lt;br style="margin-bottom: 8px;" /&gt;/&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;过程的调用：&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;EXEC [UTE] 过程名 (参数1 ,参数2&amp;hellip;);&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;四、&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;函数&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;创建语法&lt;/strong&gt;：&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;create [or replace ] function 函数名&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;[(参数1 [in | out | in out] 参数类型，参数2 [in | out | in out] 参数类型，&amp;hellip;&amp;hellip;)]&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;return 数据类型&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;is | as&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;begin&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;执行部分&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;exception&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;异常处理部分&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;end [函数名];&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;五、&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;包&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;1、&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;包规范创建语法&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;create [or replace] package 程序包名&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;is | as&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;procedure 过程名（过程参数列表）；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;function 函数名（函数参数列表）；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&amp;hellip;&amp;hellip;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;end 程序包名；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;2、&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;包体创建语法&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;create [or replace] package body 程序包名&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;is | as&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;之前定义的函数、过程的具体实现部分&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;end 程序包名；&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;3、&lt;/strong&gt;&lt;strong style="font-style: inherit; font-weight: bold;"&gt;包的调用&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; font-size: 14px; line-height: 20px; text-align: justify; padding: 0px;"&gt;exec 程序包名.过程名（参数列表）；&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2167727.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/09/05/2167727.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html</id><title type="text">Exp出这个错</title><summary type="text">Exp出这个错PLS-00201: 必须宣告识别项 &amp;#39;DMSYS.DBMS_DM_MODEL_EXP&amp;#39;即将汇出设定的使用者 .... 正在汇出预先纲要程序对象与动作EXP-00008: ORACLE 错误 6550 发生ORA-06550: 第 1 行, 第 13 个字段:PLS-00201: 必须宣告识别项 &amp;#39;DMSYS.DBMS_DM_MODEL_EXP&amp;#39;ORA-06550: 第 1 行, 第 7 个字段:PL/SQL: Statement ignoredEXP-00083: 当呼叫 DMSYS.DBMS_DM_MODEL_EXP.schema_info_e</summary><published>2011-09-02T04:15:00Z</published><updated>2011-09-02T04:15:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html"/><content type="html">&lt;p&gt;Exp出这个错PLS-00201: 必须宣告识别项 'DMSYS.DBMS_DM_MODEL_EXP'&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;即将汇出设定的使用者 ...&lt;/p&gt;&#xD;
&lt;p&gt;. 正在汇出预先纲要程序对象与动作&lt;/p&gt;&#xD;
&lt;p&gt;EXP-00008: ORACLE 错误 6550 发生&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06550: 第 1 行, 第 13 个字段:&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;PLS-00201: 必须宣告识别项 'DMSYS.DBMS_DM_MODEL_EXP'&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06550: 第 1 行, 第 7 个字段:&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;PL/SQL: Statement ignored&lt;/p&gt;&#xD;
&lt;p&gt;EXP-00083: 当呼叫 DMSYS.DBMS_DM_MODEL_EXP.schema_info_exp 时发生了先前的问题&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;怎么去创建DMSYS.DBMS_DM_MODEL_EXP&lt;/p&gt;&#xD;
&lt;p&gt;------------------------------------------------------------&lt;/p&gt;&#xD;
&lt;p&gt;catalog first, then catproc, then catexp&lt;/p&gt;&#xD;
&lt;p&gt;it is ok for the err prompt &amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;If DMSYS has already been dropped&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;Start SQLPLUS and connect with user SYS as SYSDBA&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt; DELETE FROM exppkgact$ WHERE SCHEMA='DMSYS';&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt; exit;&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;proceed with export jobs&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;If dmsys schema objects have been accidentally removed&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;set ORACLE_HOME and ORACLE_SID&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;Start SQLPLUS and connect with user SYS as SYSDBA&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt; run $ORACLE_HOME/dm/admin/dminst.sql SYSAUX TEMP $ORACLE_HOME/dm/admin/&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt; run $ORACLE_HOME/dm/admin/odmpatch.sql (if the database is at 10g patch level, e.g. 10.1.0.3 or 10.1.0.4)&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt; run $ORACLE_HOME/rdbms/admin/utlrp.sql&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;Ensure 'Oracle Data Mining' is at Valid status in dba_registry&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt; select COMP_NAME,VERSION,STATUS from dba_registry where COMP_NAME='Oracle Data Mining';&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;proceed with export jobs&lt;/p&gt;&#xD;
&lt;p&gt;==========================================&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;&#xD;
&lt;p&gt;解决Oracle导出时的 SYS.LT_EXPORT_PKG 错误&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;执行exp命令时报错： ORA-06550: line 1, column 13: PLS-00201: identifier 'SYS.LT_EXPORT_PKG' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_&lt;/p&gt;&#xD;
&lt;p&gt;执行 Select * From Dba_Objects Where owner='SYS' And object_name Like 'LT_%' 发现LT_EXPORT_PKG编译不通过，&lt;/p&gt;&#xD;
&lt;p&gt;经过三番五次的折腾，&lt;/p&gt;&#xD;
&lt;p&gt;最后发现执行脚本 oracle\product\10.2.0\db_1\RDBMS\ADMIN\owminst.plb ，问题全解决了。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;==========================================&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;&#xD;
&lt;p&gt;出现问题如下：&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('HNMJSYS',1,1,'10.02.00.01.00',newblock)&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06550: line 1, column 12:&lt;/p&gt;&#xD;
&lt;p&gt;PLS-00201: identifier 'EXFSYS.DBMS_EXPFIL_DEPASEXP' must be declared&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06550: line 1, column 7:&lt;/p&gt;&#xD;
&lt;p&gt;PL/SQL: Statement ignored&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06512: at "SYS.DBMS_METADATA", line 5419&lt;/p&gt;&#xD;
&lt;p&gt;ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('HNMJPRIV',1,1,'10.02.00.01.00',newblock)&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06550: line 1, column 12:&lt;/p&gt;&#xD;
&lt;p&gt;PLS-00201: identifier 'EXFSYS.DBMS_EXPFIL_DEPASEXP' must be declared&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06550: line 1, column 7:&lt;/p&gt;&#xD;
&lt;p&gt;PL/SQL: Statement ignored&lt;/p&gt;&#xD;
&lt;p&gt;ORA-06512: at "SYS.DBMS_METADATA", line 5419&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;上METALINK上查看了一下&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;出现这个错误有两种原因：&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;1、用户EXFSYS用户事物处于无效状态&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;2、用户EXFSYS用户的事物被删除&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;通过select username,user_id from dba_users where username='EXFSYS';&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;查无此用户&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;解决方法：&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;1、Start SQLPlus.&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;2、Connect with user SYS as SYSDBA and issue the following commands:&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt;DELETE FROM exppkgact$ WHERE SCHEMA='EXFSYS';&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;SQL&amp;gt;EXIT&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;问题解决！&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2163585.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/09/02/2163585.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/08/17/2142937.html</id><title type="text">Easy Table Partitions with SQL Server 2008（转sql2008表分区）</title><summary type="text">IntroductionWe all know we have to work with loads of data every day and over the time with the growth of the organization the data bank also grows tremendously. We see there is a performance degradation after few years or months. Is it the same SQL Server that was working efficiently in past is now</summary><published>2011-08-17T03:52:00Z</published><updated>2011-08-17T03:52:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/08/17/2142937.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/08/17/2142937.html"/><content type="html">&lt;h5 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 17px; font-size: 1.15em;"&gt;Introduction&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;We all know we have to work with loads of data every day and over the time with the growth of the organization the data bank also grows tremendously. We see there is a performance degradation after few years or months. Is it the same SQL Server that was working efficiently in past is now getting slower, it is not the SQL Server binaries that have changed, it is still the same efficient SQL Server but the growth of data and the way it is structured plays a big role in the performance.&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;In my experience I have seen that an inefficient query, badly built index, poorly structured database can eat up the entire resources on the server. If the best practices are followed then you will get good performance from the SQL Server. For the best practices on Physical Design of SQL Server Database visit:&lt;a title="http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx" href="http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx" mce_href="http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;http://www.microsoft.com/technet/prodtechnol/sql/2005/physdbstor.mspx&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;Today I am going to discuss how easy it is for us to partition our tables for better performance with SQL Server 2008 (Katmai). I am not going to cover what is the criteria for partitioning your data because it is a long conversation topic. I am just going to highlight the SQL Server 2008 Management Studio's feature for table partitioning.&lt;/p&gt;&#xD;
&lt;h5 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 17px; font-size: 1.15em;"&gt;Partitioning Steps&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;You should partition your tables that has accumulated a lot of data over the time and you find that the performance is slowing down. It would not be a very good idea to partition a table it has&amp;nbsp; just a couple of hundred rows for example : Product Category table. You could partition your tables that contains a lot of transactions like Purchase Order tables, Sales Order tables, General Ledger Tables etc.&lt;/p&gt;&#xD;
&lt;h6 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 16px; font-size: 1.1em;"&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;Open the SQL Server 2008 management studio and select the appropriate table that needs to be partitioned. Right click on the table and in the context menu select Storage &amp;gt;&amp;gt; Create Partition.&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture1_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture1_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="772" alt="Picture1" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture1_thumb.jpg" width="574" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture1_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h6 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 16px; font-size: 1.1em;"&gt;Step 2:&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;I am using the [Purchasing.WorkOrder] table in the 'AdventureWorks' sample database. When you select the above option a wizard dialog box appears, press the next button once.&lt;/p&gt;&#xD;
&lt;p align="justify" style="margin-top: 0px;"&gt;You will see a dialog box with the columns available for partition with data type, length etc. Select the column on which you would like to create a partition and press next.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture2_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture2_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="484" alt="Picture2" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture2_thumb.jpg" width="580" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture2_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h6 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 16px; font-size: 1.1em;"&gt;Step 3:&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;Provide the name of the partition function and press Next.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture3_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture3_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="484" alt="Picture3" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture3_thumb.jpg" width="580" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture3_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h6 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 16px; font-size: 1.1em;"&gt;Step 4:&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;Provide the name of the partition scheme and press next.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture4_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture4_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="484" alt="Picture4" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture4_thumb.jpg" width="580" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture4_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h6 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 16px; font-size: 1.1em;"&gt;Step 5:&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;You have to select the option Left Boundary or Right Boundary and then click the button that says Set Boundaries.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;span style="text-decoration: underline;"&gt;Left boundary&amp;nbsp;&lt;/span&gt;&lt;br /&gt;The Boundary column label in the grid will dynamically display &amp;lt;= Boundary when you select Left boundary.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;span style="text-decoration: underline;"&gt;Right boundary&amp;nbsp;&lt;br /&gt;&lt;/span&gt;Select to include range values up to the specified value in the Boundary column for each filegroup selected. The specified value will be the starting value for the range values of the filegroup on the next row. The Boundary column label in the grid will dynamically display &amp;lt; Boundary when you select Right boundary.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture5_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture5_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="484" alt="Picture5" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture5_thumb.jpg" width="580" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture5_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;A small dialog box appears with the caption "Set Boundary Values". Select the starting and ending date and select the Date Range from Monthly, Yearly, Quarterly, Half-Yearly , Daily and press OK. I am using End Date field for the partition in this demo.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/image_4.png" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/image_4.png" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="234" alt="image" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/image_thumb_1.png" width="352" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/image_thumb_1.png" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;The above option will create the partition ranges for you. Select the appropriate File Group for each partition in the grid and then click on the 'Estimated Storage' button which will give you the details of the required space. Once you are happy with the results, please press 'Next'.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture6_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture6_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="484" alt="Picture6" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture6_thumb.jpg" width="580" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture6_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;h6 style="color: #260859; clear: both; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 16px; font-size: 1.1em;"&gt;Step 6:&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;After pressing the 'Next' button you will get the option to create a script or to run it immediately or to schedule it for a later time. Depending on your requirements you can select the option and press the finish button.&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;&lt;a href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture7_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture7_2.jpg" style="color: #0066dd; cursor: pointer; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial;"&gt;&lt;img height="484" alt="Picture7" src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture7_thumb.jpg" width="580" border="0" mce_src="http://blogs.msdn.com/blogfiles/manisblog/WindowsLiveWriter/EasyTablePartitions_672/Picture7_thumb.jpg" style="overflow-x: hidden; overflow-y: hidden; max-width: 100%; height: auto !important; border-color: initial; border-style: initial;" /&gt;&lt;/a&gt;&lt;/p&gt;&#xD;
&lt;p style="margin-top: 0px;"&gt;See it's so easy to partition your tables and achieve better performance. Please keep a track of my blogs because I will soon come up with more blog posts, if you have any feedbacks or if you liked this article then please drop me an email. Thank you.&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2142937.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/08/17/2142937.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/08/11/2135534.html</id><title type="text">CSS特殊性概念 样式规则的次序(转)</title><summary type="text">我们在使用CSS对网页元素定义样式时经常会遇到这种情况：要对一般元素应用一般样式，然后在更特殊的元素上覆盖它们。那么我们怎么样来保证我们所新定义的元素样式能覆盖目标元素上原有的样式呢？在CSS中，会根据选择器的特殊性来决定所定义的样式规则的次序，具有更特殊选择器的规则优先于具有一般选择器的规则，如果两个规则的特殊性相同，那么后定义的规则优先。那么，又怎么来计算选择器的特殊性呢？下面这张图介绍了特殊性的计算方法：我们把特殊性分为4个等级，每个等级代表一类选择器，每个等级的值为其所代表的选择器的个数乘以这一等级的权值，最后把所有等级的值相加得出选择器的特殊值。4个等级的定义如下：l 第一等：代表内</summary><published>2011-08-11T14:00:00Z</published><updated>2011-08-11T14:00:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/08/11/2135534.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/08/11/2135534.html"/><content type="html">&lt;p&gt;我们在使用&lt;a href="http://www.jzxue.com/wangyesheji/css/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;CSS&lt;/span&gt;&lt;/a&gt;对&lt;a href="http://www.jzxue.com/wangyesheji/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;网页&lt;/span&gt;&lt;/a&gt;元素定义样式时经常会遇到这种情况：要对一般元素应用一般样式，然后在更特殊的元素上覆盖它们。那么我们怎么样来保证我们所新定义的元素样式能覆盖目标元素上原有的样式呢？&lt;/p&gt;&#xD;
&lt;p&gt;在CSS中，会根据&lt;a href="http://www.jzxue.com/tag/%D1%A1%D4%F1%C6%F7/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;选择器&lt;/span&gt;&lt;/a&gt;的特殊性来决定所定义的样式规则的次序，具有更特殊选择器的规则优先于具有一般选择器的规则，如果两个规则的特殊性相同，那么后定义的规则优先。&lt;/p&gt;&#xD;
&lt;p&gt;那么，又怎么来计算选择器的特殊性呢？&lt;/p&gt;&#xD;
&lt;p&gt;下面这张图介绍了特殊性的计算方法：&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img alt="" src="http://www.jzxue.com/System/uploads/allimg/110625/2308130.jpg" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;我们把特殊性分为4个等级，每个等级代表一类选择器，每个等级的值为其所代表的选择器的个数乘以这一等级的权值，最后把所有等级的值相加得出选择器的特殊值。&lt;/p&gt;&#xD;
&lt;p&gt;4个等级的定义如下：&lt;/p&gt;&#xD;
&lt;p&gt;l 第一等：代表内联样式，如: style=&amp;rdquo;&amp;rdquo;，权值为1000。&lt;/p&gt;&#xD;
&lt;p&gt;l 第二等：代表ID选择器，如：#content，权值为100。&lt;/p&gt;&#xD;
&lt;p&gt;l 第三等：代表类，伪类和属性选择器，如.content，权值为10。&lt;/p&gt;&#xD;
&lt;p&gt;l 第四等：代表类型选择器和伪元素选择器，如div p，权值为1。&lt;/p&gt;&#xD;
&lt;p&gt;例如上图为例，&lt;/p&gt;&#xD;
&lt;p&gt;其中#NAV为二等选择器；&lt;/p&gt;&#xD;
&lt;p&gt;.ACTIVE为三等选择器；&lt;/p&gt;&#xD;
&lt;p&gt;UL、LI和A为四等选择器。&lt;/p&gt;&#xD;
&lt;p&gt;则整个选择器表达式的特殊性的值为1*100+1*10+3*1=113&lt;/p&gt;&#xD;
&lt;p&gt;下面是一些计算示例：&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img alt="" src="http://www.jzxue.com/System/uploads/allimg/110625/2308131.jpg" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;注意：通用选择器（*），子选择器（&amp;gt;）和相邻同胞选择器（+）并不在这四个等级中，所以他们的权值都为0。&lt;/p&gt;&#xD;
&lt;p&gt;我们再来看一个具体的例子：&lt;/p&gt;&#xD;
&lt;p&gt;假如有以下组样式规则，你能判断出&lt;a href="http://www.jzxue.com/wangyesheji/html/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;HTML&lt;/span&gt;&lt;/a&gt;代码中的两个标题是什么颜色吗？&lt;/p&gt;&#xD;
&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding-left:5px;padding-right:5px;"&gt;&#xD;
&lt;div&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 1&lt;/span&gt; &lt;span style="color: #800000;"&gt;#content div#main-content h2&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 2&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;color&lt;/span&gt;&lt;span style="color: #000000;"&gt;:&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;red&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 3&lt;/span&gt; &lt;span style="color: #ff0000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 4&lt;/span&gt; &lt;span style="color: #800000;"&gt;#content #main-content&amp;gt;h2&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 5&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;color&lt;/span&gt;&lt;span style="color: #000000;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #0000ff;"&gt;blue&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #008080;"&gt; 6&lt;/span&gt; &lt;span style="color: #0000ff;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 7&lt;/span&gt; &lt;span style="color: #800000;"&gt;body #content div[id="main-content"] h2&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 8&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;color&lt;/span&gt;&lt;span style="color: #000000;"&gt;:&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;green&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt; 9&lt;/span&gt; &lt;span style="color: #ff0000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;10&lt;/span&gt; &lt;/span&gt;&lt;span style="color: #800000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;11&lt;/span&gt; &lt;span style="color: #800000;"&gt;#main-content div.paragraph h2&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;12&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;color&lt;/span&gt;&lt;span style="color: #000000;"&gt;:&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;orange&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;13&lt;/span&gt; &lt;span style="color: #ff0000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;14&lt;/span&gt; &lt;span style="color: #800000;"&gt;#main-content [cl&lt;a href="http://www.jzxue.com/tag/FlashAS/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;as&lt;/span&gt;&lt;/a&gt;s="paragraph"] h2&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;15&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;color&lt;/span&gt;&lt;span style="color: #000000;"&gt;:&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;yellow&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;16&lt;/span&gt; &lt;span style="color: #ff0000;"&gt; &lt;/span&gt;&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;17&lt;/span&gt; &lt;span style="color: #800000;"&gt;div#main-content div.paragraph h2.first&lt;/span&gt;&lt;span style="color: #000000;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;18&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;color&lt;/span&gt;&lt;span style="color: #000000;"&gt;:&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;pink&lt;/span&gt;&lt;span style="color: #000000;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;19&lt;/span&gt; &lt;span style="color: #ff0000;"&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;以下是HTML代码：&lt;/p&gt;&#xD;
&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding-left:5px;padding-right:5px;"&gt;&#xD;
&lt;div&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;1&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;div &lt;/span&gt;&lt;span style="color: #ff0000;"&gt;id&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;="content"&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;2&lt;/span&gt;&lt;span style="color: #000000;"&gt;  &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;div &lt;/span&gt;&lt;span style="color: #ff0000;"&gt;id&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;="main-content"&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;3&lt;/span&gt;&lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;h2&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;CSS简介&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;h2&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;4&lt;/span&gt;&lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;p&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;CSS（Cascading Style Sheet，可译为&amp;ldquo;层叠&lt;a href="http://www.jzxue.com/wangyesheji/css/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;样式表&lt;/span&gt;&lt;/a&gt;&amp;rdquo;或&amp;ldquo;级联样式表&amp;rdquo;）是一组格式设置规则，用于控制&lt;a href="http://www.jzxue.com/shujixiazai/jianzhanxiangguan/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;Web&lt;/span&gt;&lt;/a&gt;页面的外观。&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;p&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;5&lt;/span&gt;&lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;div &lt;/span&gt;&lt;span style="color: #ff0000;"&gt;class&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;="paragraph"&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;6&lt;/span&gt;&lt;span style="color: #000000;"&gt;      &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;h2 &lt;/span&gt;&lt;span style="color: #ff0000;"&gt;class&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;="first"&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;使用CSS&lt;a href="http://www.jzxue.com/wangyesheji/wangyebuju/" target="_blank"&gt;&lt;span style="color: #333333;" color="#333333"&gt;布局&lt;/span&gt;&lt;/a&gt;的优点&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;h2&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;7&lt;/span&gt;&lt;span style="color: #000000;"&gt;      &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000;"&gt;p&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;1、表现和内容相分离 2、提高页面浏览速度 3、易于维护和改版 4、使用CSS布局更符合现在的W3C标准.&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;p&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;8&lt;/span&gt;&lt;span style="color: #000000;"&gt;    &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;div&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Verdana;" face="Verdana"&gt;&lt;span style="color: #008080;"&gt;9&lt;/span&gt;&lt;span style="color: #000000;"&gt;  &lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000;"&gt;div&lt;/span&gt;&lt;span style="color: #0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&#xD;
&lt;/div&gt;&#xD;
&lt;p&gt;判断出来了么？答案是：两个标题都是红色的！&lt;/p&gt;&#xD;
&lt;p&gt;让我们来一起算算六个样式规则各自的特殊性的值：&lt;/p&gt;&#xD;
&lt;p&gt;第一个特殊性的值=2*100+2*1=202&lt;/p&gt;&#xD;
&lt;p&gt;第二个特殊性的值=2*100+1=201&lt;/p&gt;&#xD;
&lt;p&gt;第三个特殊性的值=1*100+1*10+3*1=113&lt;/p&gt;&#xD;
&lt;p&gt;第四个特殊性的值=1*100+1*10+2*1=112&lt;/p&gt;&#xD;
&lt;p&gt;第五个特殊性的值=1*100+1*10+1*1=111&lt;/p&gt;&#xD;
&lt;p&gt;第六个特殊性的值=1*100+2*10+3*1=123&lt;/p&gt;&#xD;
&lt;p&gt;清楚了吧，第一个样式规则以其202的高分一举夺得了本次样式选择器特殊性大赛的冠军，后面一些规则虽然看起来好像更复杂，但特殊性并不是拼谁的选择器表达式写得更长，ID选择器才是王道！&lt;/p&gt;&#xD;
&lt;p&gt;理解选择器的特殊性很重要，特别是在修复bug的时候，因为你需要了解哪些规则优先及其原因。&lt;/p&gt;&#xD;
&lt;p&gt;如果你遇到了似乎没有起作用的CSS规则，很可能是出现了特殊性冲突。请在你的选择器中添加他的一个父元素的ID，从而提高它的特殊性。如果这能解决问题，就说明样式表中其他地方很可能有更特殊的规则，它覆盖了你的规则。如果是这种情况，你可能需要检查代码，解决特殊性冲突，让代码尽可能简洁&lt;/p&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2135534.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/08/11/2135534.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/07/28/2119105.html</id><title type="text">RAID详解[RAID0/RAID1/RAID10/RAID5]（不可不知的硬件知识转）</title><summary type="text">一．RAID定义RAID(Redundant Array of Independent Disk 独立冗余磁盘阵列)技术是加州大学伯克利分校1987年提出，最初是为了组合小的廉价磁盘来代替大的昂贵磁盘，同时希望磁盘失效时不会使对数据的访问受损 失而开发出一定水平的数据保护技术。RAID就是一种由多块廉价磁盘构成的冗余阵列，在操作系统下是作为一个独立的大型存储设备出现。RAID可以充分发 挥出多块硬盘的优势，可以提升硬盘速度，增大容量，提供容错功能够确保数据安全性，易于管理的优点，在任何一块硬盘出现问题的情况下都可以继续工作，不会 受到损坏硬盘的影响。二、 RAID的几种工作模式（仅讨论 RAI</summary><published>2011-07-28T00:56:00Z</published><updated>2011-07-28T00:56:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/07/28/2119105.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/07/28/2119105.html"/><content type="html">&lt;span  style="line-height: 22px; font-family: arial, sans-serif, 宋体; "&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;一．RAID定义&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;/font&gt;&lt;/strong&gt;RAID(Redundant Array of Independent Disk 独立冗余磁盘阵列)技术是加州大学伯克利分校1987年提出，最初是为了组合小的廉价磁盘来代替大的昂贵磁盘，同时希望磁盘失效时不会使对数据的访问受损 失而开发出一定水平的数据保护技术。RAID就是一种由多块廉价磁盘构成的冗余阵列，在操作系统下是作为一个独立的大型存储设备出现。RAID可以充分发 挥出多块硬盘的优势，可以提升硬盘速度，增大容量，提供容错功能够确保数据安全性，易于管理的优点，在任何一块硬盘出现问题的情况下都可以继续工作，不会 受到损坏硬盘的影响。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;二、 RAID的几种工作模式（仅讨论 RAID0，RAID1，RAID5，RAID10这四种，这四种比较典型）&lt;/strong&gt;&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;1、RAID0 （又称为Stripe或Striping－－分条）&lt;/strong&gt;&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;/font&gt;即Data Stripping数据分条技术。RAID 0可以把多块硬盘连成一个容量更大的硬盘群，可以提高磁 盘的性能和吞吐量。RAID 0没有冗余或错误修复能力，成本低，要求至少两个磁盘，一般只是在那些对数 据安全性要求不高的情况下才被使用。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;特点：&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;table border="1" width="100%" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;tbody style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;容错性：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;没有&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;冗余类型：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;没有&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;热备盘选项：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;没有&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;读性能：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;高&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;随机写性能：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;高&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;连续写性能：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;高&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;需要的磁盘数：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;只需2个或2*N个（这里应该是多于两个硬盘都可以）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;可用容量：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;总的磁盘的容量&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;典型应用：&lt;/td&gt;&lt;td colspan="3" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;无故障的迅速读写，要求安全性不高，如图形工作站等。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID 0的工作方式：&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;img title="RAID详解" border="0" hspace="10" alt="RAID详解" vspace="10" src="http://www.kuqin.com/upimg/allimg/100430/1346300.gif" width="305" height="235" style="font-family: arial, sans-serif, 宋体; line-height: 22px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;图1&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;如图1所示:系统向 三个磁盘组成的逻辑硬盘(RADI 0 磁盘组)发出的I/O数据请求被转化为3项操作，其中的每一项操作都对应于一块物理硬盘。我们从图中可以清楚的看到通过建立RAID 0，原先顺序的数据请求被分散到所有的三块硬盘中同时执行。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;从理论上讲，三块硬盘的并行操作使同一时间内磁盘读写速度提升了3倍。 但由于总线带宽等多种因素的影响，实际的提升速率肯定会低于理论值，但是，大量数据并行传输与串行传输比较，提速效果显著显然毋庸置疑。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;RAID 0的&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;缺点&lt;/font&gt;&lt;/strong&gt;是不提供数据冗余，因此一旦用户数据损坏，损坏的数据将无法得到恢复。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;RAID 0具有的&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;特点&lt;/font&gt;&lt;/strong&gt;，使其特别适用于对性能要求较高，而对数据安全不太在乎的领域，如图形工作站等。对于个人用户，RAID 0也是提高硬盘存储性能的绝佳选择。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;计算机技术发展迅速，但硬盘传输率也成了性能的瓶颈。怎么办？IDE RAID技术的成熟让我们轻松打造自己的超高速硬盘。在实际应用中，RAID 0硬盘阵列能比普通IDE 7200转ATA 133硬盘快得多，时至今日，在大多数的高端或者玩家主板上我们都能找到一颗PROMISE或者HighPoint的RAID芯片，同时发现它们提供的额 外几个IDE接口。没错，RAID已经近在眼前，难道你甘心放弃RAID为我们带来的性能提升吗？答案当然是否定的！&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;实用 的IDE RAID&lt;/strong&gt;&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;/font&gt;RAID可以通过软件或硬件实现。像Windows 2000就能够提供软件的RAID功能，但是这样需要消耗不小的CPU资源，降低整机性能。而硬件实现则是一般由RAID卡实现的，高档的SCSI RAID卡有着自己专用的缓存和I/O处理器，但是对于家庭用户来说这样的开销显然是承受不了的，毕竟为了实现RAID买两个或者更多的HDD已经相当不 容易了。我们还有一种折中的办法&amp;#8212;&amp;#8212;IDE RAID。或许这才是普通人最容易接受的方法。虽然IDE RAID在功能和性能上都有所折中，但相对于低廉的价格，普通用户看来并不在意。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;为什么要用RAID 0&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;/font&gt;&lt;/strong&gt;RAID 0至少需要两块硬盘才能够实现，它的容量为组成这个系统的各个硬盘容量之和，这几块硬盘的容量要相同，在家用IDE RAID中一般级联两块硬盘，一定要用同型号同容量的硬盘。RAID 0模式向硬盘写入数据的时候把数据一分为二，分别写入两块硬盘，读取数据的时候则反之，这样的话，每块硬盘只要负担一半的数据传输任务，得到的结果也就是 速度的增加。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;实现方 式：&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;（1）、&lt;/font&gt;&lt;/strong&gt;RAID 0最简单方式（我觉得这个方式不是它本意所提倡的）&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;就是把x块同样的硬盘用硬件的形式通过智能磁盘控制器或用操作系统中的磁盘驱动程序以软件的方式串联在一起，形成一个独立的逻辑驱动器，容量是单独硬盘的 x倍,在电脑数据写时被依次写入到各磁盘 中，当一块磁盘的空间用尽时，数据就会被自动写入到下一块磁盘中，它的好处是可以增加磁盘的容量。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;速度与其中任何一块磁盘的速度相同，如果其中的任何一块磁盘出现故障，整个系统将会受到破坏，可靠&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;性是单独使用一块硬盘的1/n。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;（2）、&lt;/font&gt;&lt;/strong&gt;RAID 0的另一方式（常指的RAID 0就是指的这个）&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;是用n块硬盘选择合理的带区大小创建带区集，最好是为每一块硬盘都配备一个专门的磁盘控制器,在 电脑数据读写时同时向n块磁盘读写数据,速度提升n倍。提高系统的性能。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;2、RAID 1 （又称为Mirror或Mirroring－－镜像）&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;/font&gt;&lt;/strong&gt;RAID 1称为磁盘镜像：把一个磁盘的数据镜像到另一个磁盘上，在不影响性能情况下最大限度的保证系统的可靠性和可修复性上，具有很高的数据冗余能力，但磁盘利用 率为50%，故成本最高，多用在保存关键性的重要数据的场合。RAID 1的操作方式是把用户写入硬盘的数据百分之百地自动复制到另外一个硬盘上。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID 1有以下&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;特点&lt;/font&gt;&lt;/strong&gt;：&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;（1）、RAID 1的每一个磁盘都具有一个对应的镜像盘，任何时候数据都同步镜像，系统可以从一组 镜像盘中的任何一个磁盘读取数据。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;（2）、磁盘所能使用的空间只有磁盘容量总和的一半，系统成本高。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;（3）、只要系统中任何一对镜像盘中至少有一块磁盘可以使用，甚至可以在一半数量的硬盘出现问题时系统都可以正常运行。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;（4）、出现硬盘故障的RAID系统不再可靠，应当及时的更换损坏的硬盘，否则剩余的镜像盘也出现问题，那么整个系统就会崩溃。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;（5）、更换新盘后原有数据会需要很长时间同步镜像，外界对数据的访问不会受到影响，只是这时整个系统的性能有所下降。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;（6）、RAID 1磁盘控制器的负载相当大，用多个磁盘控制器可以提高数据的安全性和可用性。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID 1的工作方式：&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;img title="RAID详解" border="0" hspace="10" alt="RAID详解" vspace="10" src="http://www.kuqin.com/upimg/allimg/100430/1346301.gif" width="435" height="301" style="font-family: arial, sans-serif, 宋体; line-height: 22px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;图2&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;如图2所 示：当读取数据时，系统先从RAID1的源盘读取数据，如果读取数据成功，则系统不去管备份盘上的数据；如果读取源盘数据失败，则系统自动转而读取备份盘 上的数据，不会造成用户工作任务的中断。当然，我们应当及时地更换损坏的硬盘并利用备份数据重新建立Mirror，避免备份盘在发生损坏时，造成不可挽回 的数据损失。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;raid 1的优缺点&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;由于对存储的数据进行百分之百的备份，在所有RAID级别中，RAID 1提供最高的数据安全保障。同样，由于数据的百分之百备份，备份数据占了总存储空间的一半，因而Mirror（镜像）的磁盘空间利用率低，存储成本高。 Mirror虽不能提高存储性能，但由于其具有的高数据安全性，使其尤其适用于存放重要数据，如服务器和数据库存储等领域。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;3、 RAID&amp;nbsp;5 （可以理解为是RAID 0和RAID 1的折衷方案，但没有完全使用RAID 1镜像理念，而是使用了&amp;#8220;奇偶校验信息&amp;#8221;来作为数据恢复的方式，与下面的RAID10不同。）&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;table border="1" width="100%" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;tbody style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;容错性：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;有&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;冗余类型：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;奇偶校验&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;热备盘选项：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;有&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;读性能：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;高&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;随机写性能：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;低&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;连续写性能：&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;低&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;需要的磁盘数：&lt;/td&gt;&lt;td colspan="3" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;三个或更多&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;可用容量：&lt;/td&gt;&lt;td colspan="3" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;（n-1）/n的总磁盘容量（n为磁盘数）&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;典型应用：&lt;/td&gt;&lt;td colspan="3" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;随机数据传输要求安全性高，如金融、数据库、存储等。&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;img title="RAID详解" border="0" hspace="10" alt="RAID详解" vspace="10" src="http://www.kuqin.com/upimg/allimg/100430/1346302.png" style="font-family: arial, sans-serif, 宋体; line-height: 22px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " /&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;图3&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;RAID 5 是一种存储性能、数据安全和存储成本兼顾的存储解决方案。 以四个硬盘组成的RAID 5为例，其数据存储方式如图4所示：图中，Ap为A1，A2和A3的奇偶校验信息，其它以此类推。由图中可以看出，RAID 5不对存储的数据进行备份，而是把数据和相对应的奇偶校验信息存储到组成RAID5的各个磁盘上，并且奇偶校验信息和相对应的数据分别存储于不同的磁盘 上。当RAID5的一个磁盘数据发生损坏后，利用剩下的数据和相应的奇偶校验信息去恢复被损坏的数据。&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;RAID 5可以理解为是RAID 0和RAID 1的折衷方案。RAID 5可以为系统提供数据安全保障，但保障程度要比Mirror低而磁盘空间利用率要比Mirror高。RAID 5具有和RAID 0相近似的数据读取速度，只是多了一个奇偶校验信息，写入数据的速度比对单个磁盘进行写入操作稍慢。同时由于多个数据对应一个奇偶校验信息，RAID 5的磁盘空间利用率要比RAID 1高，存储成本相对较低。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;4、 RAID&amp;nbsp;5 （可以理解为是RAID 0和RAID 1的折衷方案，但没有完全使用RAID 1镜像理念，而是使用了&amp;#8220;奇偶校验信息&amp;#8221;来作为数据恢复的方式）&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;img title="RAID详解" border="0" hspace="10" alt="RAID详解" vspace="10" src="http://www.kuqin.com/upimg/allimg/100430/1346303.png" width="500" height="536" style="font-family: arial, sans-serif, 宋体; line-height: 22px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " /&gt;&lt;br style="font-family: arial, sans-serif, 宋体; line-height: 22px; " /&gt;&lt;/font&gt;图4&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID10也被称为镜象阵列条带。象RAID0一样，数据跨磁盘抽取；象RAID1一样，每个磁盘都有一个镜象磁盘, 所以RAID 10的另一种会说法是 RAID 0+1。RAID10提供100%的数据冗余，支持更大的卷尺寸，但价格也相对较高。对大多数只要求具有冗余度而不必考虑价格的应用来说，RAID10提 供最好的性能。使用RAID10，可以获得更好的可靠性，因为即使两个物理驱动器发生故障（每个阵列中一个），数据仍然可以得到保护。RAID10需要4 + 2*N 个磁盘驱动器（N &amp;gt;=0)， 而且只能使用其中一半(或更小, 如果磁盘大小不一)的磁盘用量, 例如 4 个 250G 的硬盘使用RAID10 阵列， 实际容量是 500G。&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;strong style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;font color="#00ccff" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID总结：&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;table border="1" width="100%" style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;tbody style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;类型&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;读写性能&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;安全性&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;磁盘利用率&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;成本&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;应用方面&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID0&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;最好（因并行性而提高）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;最差（完全无安全保障）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;最高（100％）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;最低&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;个人用户&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID1&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;读和单个磁盘无分别，写则要写两边&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;最高（提供数据的百分之百备份）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;差（50％）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;最高&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;适用于存放重要数据，如服务器和数据库存储等领域。&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID5&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;读：RAID 5＝RAID 0（相近似的数据读取速度）&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;写：RAID 5&amp;lt;对单个磁盘进行写入操作（多了一个奇偶校验信息写入）&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID 5&amp;lt;RAID 1&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID 5&amp;gt;RAID 1&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID 5&amp;lt;RAID 1&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;是一种存储性能、数据安全和存储成本兼顾的存储解决方案。&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID10&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;读：RAID10＝RAID0&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;&lt;/p&gt;&lt;p style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;写：RAID10＝RAID1&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID10＝RAID1&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID10＝RAID1（50％）&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;RAID10＝RAID1&lt;/td&gt;&lt;td style="font-family: arial, sans-serif, 宋体; line-height: 22px; "&gt;集合了RAID0，RAID1的优点，但是空间上由于使用镜像，而不是类似RAID5的&amp;#8220;奇偶校验信息&amp;#8221;，磁盘利用率一样是50％&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2119105.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/07/28/2119105.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html</id><title type="text">利用SqlBulkCopy快速大批量导入数据(SqlBulkCopy强大 转）</title><summary type="text">实际的开发可能会遇到数据大批量插入数据的问题，若是一条条的循环倒数效率非常低下，这个较好的解决方案12 protected void Button1_Click(object sender, EventArgs e)3 {45 DateTime beginTime = DateTime.Now;6 Response.Write(&amp;quot;开始时间：&amp;quot; + beginTime.ToString(&amp;quot;yyyy年MM月dd日：HH:mm:ss:fff&amp;quot;));78 //构造一个Datatable存储将要批量导入的数据9 DataTable dt = new DataTab</summary><published>2011-07-06T02:36:00Z</published><updated>2011-07-06T02:36:00Z</updated><author><name>QDuck</name><uri>http://www.cnblogs.com/QDuck/</uri></author><link rel="alternate" href="http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html"/><content type="html">&lt;div&gt;&lt;div&gt;实际的开发可能会遇到数据大批量插入数据的问题，若是一条条的循环倒数效率非常低下，这个较好的解决方案&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;1&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;2 &amp;nbsp; protected void Button1_Click(object sender, EventArgs e)&lt;/div&gt;&lt;div&gt;&amp;nbsp;3 &amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;4&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DateTime beginTime = DateTime.Now;&lt;/div&gt;&lt;div&gt;&amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write("开始时间：" + beginTime.ToString("yyyy年MM月dd日：HH:mm:ss:fff"));&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;7&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //构造一个Datatable存储将要批量导入的数据&lt;/div&gt;&lt;div&gt;&amp;nbsp;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataTable dt = new DataTable();&lt;/div&gt;&lt;div&gt;10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add("id", typeof(string));&lt;/div&gt;&lt;div&gt;11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Columns.Add("name", typeof(string));&amp;nbsp;&lt;/div&gt;&lt;div&gt;12&amp;nbsp;&lt;/div&gt;&lt;div&gt;13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // 见识下SqlBulkCopy强悍之处，来个十万条数数据试验&lt;/div&gt;&lt;div&gt;14 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i;&lt;/div&gt;&lt;div&gt;15 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (i = 0; i &amp;lt; 100000; i++)&lt;/div&gt;&lt;div&gt;16 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div&gt;17 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataRow dr = dt.NewRow();&lt;/div&gt;&lt;div&gt;18 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr["name"] = i.ToString();&lt;/div&gt;&lt;div&gt;19 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt.Rows.Add(dr);&lt;/div&gt;&lt;div&gt;20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/div&gt;&lt;div&gt;21&amp;nbsp;&lt;/div&gt;&lt;div&gt;22 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string str = ConfigurationManager.ConnectionStrings["connStr"].ConnectionString.ToString();&lt;/div&gt;&lt;div&gt;23 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //声明数据库连接&lt;/div&gt;&lt;div&gt;24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SqlConnection conn = new SqlConnection(str);&amp;nbsp;&lt;/div&gt;&lt;div&gt;25&amp;nbsp;&lt;/div&gt;&lt;div&gt;26 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn.Open();&lt;/div&gt;&lt;div&gt;27 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //声明SqlBulkCopy ,using释放非托管资源&lt;/div&gt;&lt;div&gt;28 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; using (SqlBulkCopy sqlBC = new SqlBulkCopy(conn))&lt;/div&gt;&lt;div&gt;29 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div&gt;30 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //一次批量的插入的数据量&lt;/div&gt;&lt;div&gt;31 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.BatchSize = 1000;&lt;/div&gt;&lt;div&gt;32 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //超时之前操作完成所允许的秒数，如果超时则事务不会提交 ，数据将回滚，所有已复制的行都会从目标表中移除&lt;/div&gt;&lt;div&gt;33 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.BulkCopyTimeout = 60;&amp;nbsp;&lt;/div&gt;&lt;div&gt;34&amp;nbsp;&lt;/div&gt;&lt;div&gt;35 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //設定 NotifyAfter 属性，以便在每插入10000 条数据时，呼叫相应事件。 &amp;nbsp;&lt;/div&gt;&lt;div&gt;36 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.NotifyAfter = 10000;&lt;/div&gt;&lt;div&gt;37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.SqlRowsCopied += new SqlRowsCopiedEventHandler(OnSqlRowsCopied);&amp;nbsp;&lt;/div&gt;&lt;div&gt;38&amp;nbsp;&lt;/div&gt;&lt;div&gt;39 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //设置要批量写入的表&lt;/div&gt;&lt;div&gt;40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.DestinationTableName = "dbo.text";&amp;nbsp;&lt;/div&gt;&lt;div&gt;41&amp;nbsp;&lt;/div&gt;&lt;div&gt;42 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //自定义的datatable和数据库的字段进行对应&lt;/div&gt;&lt;div&gt;43 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.ColumnMappings.Add("id", "tel");&lt;/div&gt;&lt;div&gt;44 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.ColumnMappings.Add("name", "neirong");&amp;nbsp;&lt;/div&gt;&lt;div&gt;45&amp;nbsp;&lt;/div&gt;&lt;div&gt;46 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //批量写入&lt;/div&gt;&lt;div&gt;47 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sqlBC.WriteToServer(dt);&lt;/div&gt;&lt;div&gt;48 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;49 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn.Dispose();&lt;/div&gt;&lt;div&gt;50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write("&amp;lt;br/&amp;gt;");&amp;nbsp;&lt;/div&gt;&lt;div&gt;51&amp;nbsp;&lt;/div&gt;&lt;div&gt;52 &amp;nbsp;&lt;/div&gt;&lt;div&gt;53&amp;nbsp;&lt;/div&gt;&lt;div&gt;54 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DateTime endTime = DateTime.Now;&lt;/div&gt;&lt;div&gt;55 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write("结束时间：" + endTime.ToString("yyyy年MM月dd日：HH:mm:ss:fff"));&lt;/div&gt;&lt;div&gt;56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TimeSpan useTime = endTime-beginTime;//使用时间&lt;/div&gt;&lt;div&gt;57 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write("&amp;lt;br/&amp;gt;插入时间："+ useTime.TotalSeconds.ToString()+"秒");&amp;nbsp;&lt;/div&gt;&lt;div&gt;58&amp;nbsp;&lt;/div&gt;&lt;div&gt;59 &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;60 &amp;nbsp; &amp;nbsp; //响应时事件&lt;/div&gt;&lt;div&gt;61 &amp;nbsp; &amp;nbsp; void OnSqlRowsCopied(object sender, SqlRowsCopiedEventArgs e)&lt;/div&gt;&lt;div&gt;62 &amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div&gt;63 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Response.Write("&amp;lt;br/&amp;gt; OK! ");&lt;/div&gt;&lt;div&gt;64 &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/div&gt;&lt;div&gt;65&amp;nbsp;&lt;/div&gt;&lt;div&gt;66 &amp;nbsp;&lt;/div&gt;&lt;div&gt;67&amp;nbsp;&lt;/div&gt;&lt;div&gt;68&amp;nbsp;&lt;/div&gt;&lt;div&gt;这个是程序的运行结果：&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/QDuck/aggbug/2098964.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/QDuck/archive/2011/07/06/2098964.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry></feed>
