<body id=bd><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d7145547\x26blogName\x3dESZhang+blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://zenac.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://zenac.blogspot.com/\x26vt\x3d3767548654419712195', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

 ESZhang blog

บันทึก ความทรงจำ บ่น ระบาย เหตุบ้านการเมือง ไปๆมาๆ กล้องกับการถ่ายรูป กับงานสุดรัก คอมพิวเตอร์งัย

Oracle DB_LINKS

จะใช้ทีก็ค้นใหม่ทุกที มาบลอกเอาไว้ใช้เองดีกว่า
อันว่า Oracle Database นั้นเราจะเชื่อมต่อกับ Database service ได้หลายทาง
จะแก้ $ORACLE_HOME/network/admin/tnsname.ora ก็ได้
จะเรียก $ORACLE_HOME/bin/netca ขึ้นมาช่วยจัดการก็ได้
ส่วนวิธีที่จะใช้ในวันนี้คือ ยัดมันลงใน Database ตรงๆไปเลยเหอๆ
Oracle เรียกวิธีนี้ว่า DBLINK
View: DBA_DB_LINKS, USER_DB_LINKS, ALL_DB_LINKS
SQL: Show dblink config.

set linesize 121
col db_link format a20
col host format a100
select db_link,host
from dba_db_links

ง่ายจัง

Labels: , , ,

Monday, March 17, 2008 at 23:22
  Post a Comment »
 

My Profile

 My name: Zena
My Home: Klongsamwa, Bangkok, Thailand

View my complete profile


Copyright © 2005 for Blogger by Blogger Templates Inc. All rights reserved.