有时候数据库管理员需要对生产数据库进行监测,调整,查看,试验。 生产数据库是不能随便乱动的,即使不是乱动,也要承担巨大的压力,如果意外慢了,死机了。你将吃不了兜着走,没有真实环境又如何学习,提高,测试,试验呢?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
我们搞IT越接近真实环境,那么我们做的事情就越靠谱。虽然我们可以搞个空的ORACLE来学习,也可以搞个有真实数据的ORACLE来了解系统,也可以搞个DATAGUARD及时了解真实数据,逻辑DataGurad还可以查看SQL应用情况。唯一缺乏更改和用户请求数的环境。
那么我们可以写个程序把网络的IP包截获,检查是否发往生产数据库的。如果是的话那就复制个包,并且修改包的地址,把目的地址修改为模拟数据库,源地址修改为服务的地址。 那么就产生了真实的环境。
DBA们就可以在模拟数据库上监测,搞试验了。
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><group id="_x0000_s1031" style="WIDTH: 432.85pt; HEIGHT: 273.8pt; mso-position-horizontal-relative: char; mso-position-vertical-relative: line" coordsize="8657,5476" coordorigin="1819,1184" editas="canvas"><lock aspectratio="t" v:ext="edit"></lock><shapetype id="_x0000_t75" coordsize="21600,21600" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0"></f><f eqn="sum @0 1 0"></f><f eqn="sum 0 0 @1"></f><f eqn="prod @2 1 2"></f><f eqn="prod @3 21600 pixelWidth"></f><f eqn="prod @3 21600 pixelHeight"></f><f eqn="sum @0 0 1"></f><f eqn="prod @6 1 2"></f><f eqn="prod @7 21600 pixelWidth"></f><f eqn="sum @8 21600 0"></f><f eqn="prod @7 21600 pixelHeight"></f><f eqn="sum @10 21600 0"></f></formulas><path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></path><lock aspectratio="t" v:ext="edit"></lock></shapetype><shape id="_x0000_s1032" style="LEFT: 1819px; WIDTH: 8657px; POSITION: absolute; TOP: 1184px; HEIGHT: 5476px" o:preferrelative="f" type="#_x0000_t75"><fill o:detectmouseclick="t"></fill><path o:connecttype="none" o:extrusionok="t"></path><lock v:ext="edit" text="t"></lock></shape><shapetype id="_x0000_t22" coordsize="21600,21600" path="m10800,qx0@1l0@2qy10800,21600,21600@2l21600@1qy10800,xem0@1qy10800@0,21600@1nfe" o:spt="22" adj="5400"><formulas><f eqn="val #0"></f><f eqn="prod #0 1 2"></f><f eqn="sum height 0 @1"></f></formulas><path o:connecttype="custom" gradientshapeok="t" o:extrusionok="f" textboxrect="0,@0,21600,@2" o:connectangles="270,270,180,90,0" o:connectlocs="10800,@0;10800,0;0,10800;10800,21600;21600,10800"></path><handles><h yrange="0,10800" position="center,#0"></h></handles><complex v:ext="view"></complex></shapetype><shape id="_x0000_s1033" style="LEFT: 8306px; WIDTH: 1621px; POSITION: absolute; TOP: 1504px; HEIGHT: 1405px" type="#_x0000_t22"><textbox style="mso-next-textbox: #_x0000_s1033"><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体">主数据库<span lang="EN-US">192.168.1.1<p></p></span></span></p> </div> </td></tr></tbody></table></textbox></shape><shapetype id="_x0000_t96" coordsize="21600,21600" path="m10800,qx,10800,10800,21600,21600,10800,10800,xem7340,6445qx6215,7570,7340,8695,8465,7570,7340,6445xnfem14260,6445qx13135,7570,14260,8695,15385,7570,14260,6445xnfem4960@0c8853@3,12747@3,16640@0nfe" o:spt="96" adj="17520"><formulas><f eqn="sum 33030 0 #0"></f><f eqn="prod #0 4 3"></f><f eqn="prod @0 1 3"></f><f eqn="sum @1 0 @2"></f></formulas><path o:connecttype="custom" gradientshapeok="t" o:extrusionok="f" textboxrect="3163,3163,18437,18437" o:connectlocs="10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163"></path><handles><h yrange="15510,17520" position="center,#0"></h></handles><complex v:ext="view"></complex></shapetype><shape id="_x0000_s1034" style="LEFT: 1827px; WIDTH: 360px; POSITION: absolute; TOP: 1192px; HEIGHT: 311px" type="#_x0000_t96"></shape><shape id="_x0000_s1035" style="LEFT: 1827px; WIDTH: 360px; POSITION: absolute; TOP: 1815px; HEIGHT: 313px; mso-position-horizontal: absolute; mso-position-vertical: absolute" type="#_x0000_t96"></shape><shape id="_x0000_s1036" style="LEFT: 1827px; WIDTH: 360px; POSITION: absolute; TOP: 2284px; HEIGHT: 312px; mso-position-horizontal: absolute; mso-position-vertical: absolute" type="#_x0000_t96"></shape><shape id="_x0000_s1037" style="LEFT: 1827px; WIDTH: 360px; POSITION: absolute; TOP: 2909px; HEIGHT: 311px; mso-position-horizontal: absolute; mso-position-vertical: absolute" type="#_x0000_t96"></shape><shapetype id="_x0000_t133" coordsize="21600,21600" path="m21600,10800qy18019,21600l3581,21600qx,10800,3581,l18019,qx21600,10800xem18019,21600nfqx14438,10800,18019,e" o:spt="133"><path o:connecttype="custom" gradientshapeok="t" o:extrusionok="f" textboxrect="3581,0,14438,21600" o:connectangles="270,180,90,0,0" o:connectlocs="10800,0;0,10800;10800,21600;14438,10800;21600,10800"></path></shapetype><shape id="_x0000_s1038" style="LEFT: 7947px; WIDTH: 2521px; POSITION: absolute; TOP: 5092px; HEIGHT: 937px" type="#_x0000_t133"><textbox style="mso-next-textbox: #_x0000_s1038"><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体">模拟数据库<span lang="EN-US">192.168.2.3<p></p></span></span></p> </div> </td></tr></tbody></table></textbox></shape><line id="_x0000_s1039" style="POSITION: absolute" coordsize="21600,21600" to="3987,2284" from="2187,1349"><stroke endarrow="block"></stroke></line><line id="_x0000_s1040" style="POSITION: absolute" coordsize="21600,21600" to="3988,2284" from="2187,1972"><stroke endarrow="block"></stroke></line><line id="_x0000_s1041" style="POSITION: absolute; flip: y" coordsize="21600,21600" to="3988,2441" from="2187,2284"><stroke endarrow="block"></stroke></line><line id="_x0000_s1042" style="POSITION: absolute; flip: y" coordsize="21600,21600" to="3988,3064" from="2187,2284"><stroke endarrow="block"></stroke></line><shapetype id="_x0000_t69" coordsize="21600,21600" path="m,10800l@0,21600@0@3@2@3@2,21600,21600,10800@2,0@2@1@0@1@0,xe" o:spt="69" adj="4320,5400"><stroke joinstyle="miter"></stroke><formulas><f eqn="val #0"></f><f eqn="val #1"></f><f eqn="sum 21600 0 #0"></f><f eqn="sum 21600 0 #1"></f><f eqn="prod #0 #1 10800"></f><f eqn="sum #0 0 @4"></f><f eqn="sum 21600 0 @5"></f></formulas><path o:connecttype="custom" textboxrect="@5,@1,@6,@3" o:connectangles="270,270,270,180,90,90,90,0" o:connectlocs="@2,0;10800,@1;@0,0;0,10800;@0,21600;10800,@3;@2,21600;21600,10800"></path><handles><h yrange="0,10800" position="#0,#1" xrange="0,10800"></h></handles></shapetype><shape id="_x0000_s1043" style="LEFT: 3988px; WIDTH: 4318px; POSITION: absolute; TOP: 2176px; HEIGHT: 156px" type="#_x0000_t69"></shape><shapetype id="_x0000_t73" coordsize="21600,21600" path="m8472,l,3890,7602,8382,5022,9705r7200,4192l10012,14915r11588,6685l14767,12877r1810,-870l11050,6797r1810,-717xe" o:spt="73"><stroke joinstyle="miter"></stroke><path o:connecttype="custom" textboxrect="8757,7437,13917,14277" o:connectangles="270,270,180,180,90,0,0" o:connectlocs="8472,0;0,3890;5022,9705;10012,14915;21600,21600;16577,12007;12860,6080"></path></shapetype><shape id="_x0000_s1044" style="LEFT: 5247px; WIDTH: 540px; POSITION: absolute; TOP: 2284px; HEIGHT: 1404px; flip: y" type="#_x0000_t73"><textbox style="mso-next-textbox: #_x0000_s1044"><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span lang="EN-US"><p></p></span></p> </div> </td></tr></tbody></table></textbox></shape><shapetype id="_x0000_t84" coordsize="21600,21600" path="m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0e" o:spt="84" adj="2700"><stroke joinstyle="miter"></stroke><formulas><f eqn="val #0"></f><f eqn="sum width 0 #0"></f><f eqn="sum height 0 #0"></f><f eqn="prod width 1 2"></f><f eqn="prod height 1 2"></f><f eqn="prod #0 1 2"></f><f eqn="prod #0 3 2"></f><f eqn="sum @1 @5 0"></f><f eqn="sum @2 @5 0"></f></formulas><path o:connecttype="custom" o:extrusionok="f" textboxrect="@0,@0,@1,@2" o:connectlocs="0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0" limo="10800,10800"></path><handles><h position="#0,topLeft" xrange="0,10800" switch=""></h></handles><complex v:ext="view"></complex></shapetype><shape id="_x0000_s1045" style="LEFT: 4527px; WIDTH: 1440px; POSITION: absolute; TOP: 3844px; HEIGHT: 780px" type="#_x0000_t84"><textbox style="mso-next-textbox: #_x0000_s1045"><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务</span><span lang="EN-US" style="FONT-SIZE: 9pt"><p></p></span></p> </div> </td></tr></tbody></table></textbox></shape><shape id="_x0000_s1046" style="LEFT: 5967px; WIDTH: 1980px; POSITION: absolute; TOP: 5248px; HEIGHT: 468px" type="#_x0000_t69"></shape><line id="_x0000_s1047" style="POSITION: absolute" coordsize="21600,21600" to="6327,5092" from="5967,4624"><stroke endarrow="block"></stroke></line><line id="_x0000_s1048" style="POSITION: absolute" coordsize="21600,21600" to="6147,5248" from="5787,4624"><stroke endarrow="block"></stroke></line><line id="_x0000_s1049" style="POSITION: absolute" coordsize="21600,21600" to="5967,5248" from="5427,4624"><stroke endarrow="block"></stroke></line><line id="_x0000_s1050" style="POSITION: absolute" coordsize="21600,21600" to="5967,5404" from="5067,4624"><stroke endarrow="block"></stroke></line><shapetype id="_x0000_t63" coordsize="21600,21600" path="wr,,21600,21600@15@16@17@18l@21@22xe" o:spt="63" adj="1350,25920"><stroke joinstyle="miter"></stroke><formulas><f eqn="val #0"></f><f eqn="val #1"></f><f eqn="sum 10800 0 #0"></f><f eqn="sum 10800 0 #1"></f><f eqn="atan2 @2 @3"></f><f eqn="sumangle @4 11 0"></f><f eqn="sumangle @4 0 11"></f><f eqn="cos 10800 @4"></f><f eqn="sin 10800 @4"></f><f eqn="cos 10800 @5"></f><f eqn="sin 10800 @5"></f><f eqn="cos 10800 @6"></f><f eqn="sin 10800 @6"></f><f eqn="sum 10800 0 @7"></f><f eqn="sum 10800 0 @8"></f><f eqn="sum 10800 0 @9"></f><f eqn="sum 10800 0 @10"></f><f eqn="sum 10800 0 @11"></f><f eqn="sum 10800 0 @12"></f><f eqn="mod @2 @3 0"></f><f eqn="sum @19 0 10800"></f><f eqn="if @20 #0 @13"></f><f eqn="if @20 #1 @14"></f></formulas><path o:connecttype="custom" textboxrect="3163,3163,18437,18437" o:connectlocs="10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163;@21,@22"></path><handles><h position="#0,#1"></h></handles></shapetype><shape id="_x0000_s1051" style="LEFT: 5787px; WIDTH: 1980px; POSITION: absolute; TOP: 2752px; HEIGHT: 624px" type="#_x0000_t63" adj="-1495,4915"><textbox style="mso-next-textbox: #_x0000_s1051"><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体">截获<span lang="EN-US">IP</span>包<span lang="EN-US"><p></p></span></span></p> </div> </td></tr></tbody></table></textbox></shape><shapetype id="_x0000_t62" coordsize="21600,21600" path="m3600,qx,3600l0@8@12@24,0@9,,18000qy3600,21600l@6,21600@15@27@7,21600,18000,21600qx21600,18000l21600@9@18@30,21600@8,21600,3600qy18000,l@7,0@21@33@6,xe" o:spt="62" adj="1350,25920"><stroke joinstyle="miter"></stroke><formulas><f eqn="sum 10800 0 #0"></f><f eqn="sum 10800 0 #1"></f><f eqn="sum #0 0 #1"></f><f eqn="sum @0 @1 0"></f><f eqn="sum 21600 0 #0"></f><f eqn="sum 21600 0 #1"></f><f eqn="if @0 3600 12600"></f><f eqn="if @0 9000 18000"></f><f eqn="if @1 3600 12600"></f><f eqn="if @1 9000 18000"></f><f eqn="if @2 0 #0"></f><f eqn="if @3 @10 0"></f><f eqn="if #0 0 @11"></f><f eqn="if @2 @6 #0"></f><f eqn="if @3 @6 @13"></f><f eqn="if @5 @6 @14"></f><f eqn="if @2 #0 21600"></f><f eqn="if @3 21600 @16"></f><f eqn="if @4 21600 @17"></f><f eqn="if @2 #0 @6"></f><f eqn="if @3 @19 @6"></f><f eqn="if #1 @6 @20"></f><f eqn="if @2 @8 #1"></f><f eqn="if @3 @22 @8"></f><f eqn="if #0 @8 @23"></f><f eqn="if @2 21600 #1"></f><f eqn="if @3 21600 @25"></f><f eqn="if @5 21600 @26"></f><f eqn="if @2 #1 @8"></f><f eqn="if @3 @8 @28"></f><f eqn="if @4 @8 @29"></f><f eqn="if @2 #1 0"></f><f eqn="if @3 @31 0"></f><f eqn="if #1 0 @32"></f><f eqn="val #0"></f><f eqn="val #1"></f></formulas><path o:connecttype="custom" textboxrect="791,791,20809,20809" o:connectlocs="10800,0;0,10800;10800,21600;21600,10800;@34,@35"></path><handles><h position="#0,#1"></h></handles></shapetype><shape id="_x0000_s1052" style="LEFT: 3807px; WIDTH: 1440px; POSITION: absolute; TOP: 5872px; HEIGHT: 780px; mso-position-horizontal-relative: text; mso-position-vertical-relative: text; mso-position-horizontal: absolute; mso-position-vertical: absolute; mso-wrap-style: square; mso-wrap-distance-left: 9pt; mso-wrap-distance-top: 0; mso-wrap-distance-right: 9pt; mso-wrap-distance-bottom: 0; v-text-anchor: top" type="#_x0000_t62" adj="23670,-25588"><textbox><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体">生成<span lang="EN-US">4</span>个用户请求信息<span lang="EN-US"><p></p></span></span></p> </div> </td></tr></tbody></table></textbox></shape><shape id="_x0000_s1053" style="LEFT: 6327px; WIDTH: 1980px; POSITION: absolute; TOP: 4000px; HEIGHT: 936px; mso-position-horizontal-relative: text; mso-position-vertical-relative: text; mso-position-horizontal: absolute; mso-position-vertical: absolute; mso-wrap-distance-left: 9pt; mso-wrap-distance-top: 0; mso-wrap-distance-right: 9pt; mso-wrap-distance-bottom: 0; v-text-anchor: top" type="#_x0000_t63" adj="1789,30785"><textbox><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent"> <div> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">返回的数据被服务放弃</span><span lang="EN-US" style="FONT-SIZE: 9pt"><p></p></span></p> </div> </td></tr></tbody></table></textbox></shape><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><img height="462" alt="" src="http://p.blog.csdn.net/images/p_blog_csdn_net/ZengMuAnSha/EntryImages/20090107/ORACLE%E7%AA%83%E5%90%AC%E6%9C%8D%E5%8A%A1%E5%9B%BE.PNG" width="734"></span><?xml:namespace prefix = w ns = "urn:schemas-microsoft-com:office:word" /><wrap type="none"></wrap><anchorlock></anchorlock></group>