⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 315.html

📁 关于jsp的一些好文章 主要介绍一些关于JSP的应用技巧方面的东西
💻 HTML
字号:

<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>精选文章 >> Oracle 专栏 >> ORACLE的分布式管理</title>
</head>
<body >

<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>

<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=http://www.jsp001.com/list_thread.php?int_attribute=2>精选文章</a>
>> <a href=http://www.jsp001.com/list_thread.php?forumid=20&int_attribute=2>Oracle 专栏</a>
>> ORACLE的分布式管理 [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=315>查看别人的评论</a>]<br>

<hr><p>由 webmaster 发布于: 2001-02-07 14:31</p><p><img src="images/icons/icon7.gif" alt="Smile" border=0> </p><p>  物理上存放于网络的多个ORACLE数据库,逻辑上可以看成一个单个的大数<br>据库。用户可以通过网络对异地数据库中的数据同时进行存取,而服务器之间<br>的协同处理对于工作站用户及应用程序而言是完全透明的:开发人员无需关心<br>网络的链接细节、无需关心数据在网络接点中的具体分布情况、也无需关心服<br>务器之间的协调工作过程。<br><br>    数据库之间的链接建立在DATABASE LINK上。要创建一个DB LINK,必须先<br>在每个数据库服务器上设置链接字符串。<br><br>   例如,深圳SUN平台ORACLE数据库,在/var/opt/oracle/tnsnames.ora中有以下<br>一条和北京的数据库链接tobeijing,格式如下:<br><br>链接字符串的设置 <br> <br>tobeijing=(description= database link名称:tobeijing <br>(address=(protocol=tcp) 采用tcp/ip协议 <br>(host=www.bj.col.com.cn) 欲链接主机名称或IP地址 <br>(port=1521)) 网络端口1521  <br>(connect_data=(sid=oracle7))) 安装ORACLE采用的sid <br><br>然后进入系统管理员SQL&gt;操作符下,运行命令:<br><br>SQL&gt;create public database link beijing connect to scott identified by tiger <br>           using 'tobeijing';<br><br>则创建了一个以scott用户和北京数据库的链接beijing,我们查询北京的scott数据:<br><br>SQL&gt;select * from emp@beijing; <br><br>这样就可以把深圳和北京scott用户的数据做成一个整体来处理。<br><br>为了使有关分布式操作更透明,ORACLE数据库里有同义词的对象synonym<br><br>SQL&gt;create synonym bjscottemp for emp@beijing;<br><br>于是就可以用bjscottemp来替代带@符号的分布式链接操作emp@beijing。<br><br>查看所有的数据库链接,进入系统管理员SQL&gt;操作符下,运行命令:<br><br>SQL&gt;select owner,object_name from dba_objects where object_type='DATABASE LINK'; <br><br>建ORACLE快照日志:<br>SQL&gt;create snapshot log on table3 with rowid;<br><br>建快照:<br>SQL&gt;create snapshot table3beijing  refresh force start with sysdate <br>           next sysdate+1/24 with rowid as select * from table3@beijing; <br><br>ORACLE的快照刷新方式refresh有三种:<br><br>fast 快速刷新,用snapshot log,只更新时间段变动部分 <br>complete 完全刷新,运行SQL语句 <br>force 自动判断刷新,介于fast和complete之间 <br><br>                 <br></p></td>
  </tr>
</table>

<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=315">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=315&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=315&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=315&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=315&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=315"></script>
<p><CENTER>
Copyright &copy; 2001 - 2009 JSP001.com . All Rights Reserved <P>

<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -