Oracle ¿ìÕÕ¼° dblinkʹÓà £¨Á½Ì¨·þÎñÆ÷Êý¾Ýͬ²½£©
--Ãû´Ê˵Ã÷£ºÔ´——±»Í¬²½µÄÊý¾Ý¿â
-- Ä¿µÄ——Ҫͬ²½µ½µÄÊý¾Ý¿â
/*Ò»¡¢´´½¨dblink£º*/
--1¡¢ÔÚÄ¿µÄÊý¾Ý¿âÉÏ£¬´´½¨dblin
drop database link dblink_anson;
Create public
database link dblink_anson
Connect to lg identified by lg using 'SDLGDB';
--Ô´Êý¾Ý¿âµÄÓû§Ãû¡¢ÃÜÂë¡¢·þÎñÆ÷Ãûk
/*¶þ¡¢´´½¨¿ìÕÕ£º*/
--1¡¢ÔÚÔ´ºÍÄ¿µÄÊý¾Ý¿âÉÏͬʱִÐÐÒ»ÏÂÓï¾ä£¬´´½¨Òª±»Í¬²½µÄ±í
drop table tb_anson;
create table tb_anson(c1 varchar2(12));
alter table tb_anson add constraint pk_anson primary key (C1);
--2¡¢ÔÚÄ¿µÄÊý¾Ý¿âÉÏ£¬²âÊÔdblink
select * from tb_anson@dblink_anson;
select * from tb_anson;
--3¡¢ÔÚÄ¿µÄÊý¾Ý¿âÉÏ£¬´´½¨ÒªÍ¬²½±íµÄ¿ìÕÕÈÕÖ¾
Create snapshot log on tb_anson;
--4¡¢´´½¨¿ìÕÕ£¬¿ìÕÕ(±»Í¬²½£¨Ô´£©Êý¾Ý¿â·þÎñ±ØÐëÆô¶¯)
Create snapshot sn_anson as select * from tb_anson@dblink_anson;
--5¡¢ÉèÖÿìÕÕË¢ÐÂʱ¼ä
Alter snapshot anson refresh fast Start with sysdate+1/24*60 next sysdate+10/24*60;
--oracle×Ô¶¯ÔÚ1·ÖÖÓºó½øÐеÚÒ»´Î¿ìËÙˢУ¬ÒÔºóÿ¸ô10·ÖÖÓ¿ìËÙË¢ÐÂÒ»´Î
Alter snapshot anson refresh complete Start with sysdate+30/24*60*60 next sysdate+1;
--oracle×Ô¶¯ÔÚ30³®ºó½øÐеÚÒ»´ÎÍêȫˢУ¬ÒÔºóÿ¸ô1ÌìÍêÈ«Ë¢ÐÂÒ»´Î
--6¡¢ÊÖ¶¯Ë¢Ð¿ìÕÕ
begin
dbms_refresh.refresh('"CS"."SN_ANSON"');
end;
Ïà¹ØÎĵµ£º
¡¶oracle´óÐÍÊý¾Ý¿âϵͳÔÚAIX/unixÉϵÄʵսÏê½â¡·ÌÖÂÛ23£º¹ØÓÚTivoli storage manage¡£ÎÄƽ Õâ¶ÎÈÕ×Ó¼äÓÐÈô¸ÉÕâ±¾ÊéµÄÅóÓÑÀ´ÓʼþÌÖÂÛTSMµÄÎÊÌ⣬ÒÔ¼°ÊDz»ÊÇÒªÉÏTSM±¸·ÝϵͳµÄÎÊÌâ¡£ÉõÖÁ°Ñ·½°¸·¢¹ýÀ´ÇëÎÒ¿´¿´£¬°Ñ¹Ø£¡Ð»Ð»Ð»Ð»´ó¼ÒµÄÐÅÈΣ¬¶ÔÕâ¸ö¶«Î÷ÎÒÒ²ÊÇÕ¾ÔÚ×îÖÕÓû§µÄ½Ç¶ÈÀ´¿´µÄ£¬ÕâÀïÎÒÃÇÌÖÂÛÌÖÂÛ£¬ÁÄÁÄ¡£ ÏÔÈ»£¬ºÃµÄ¼ ......
·½·¨Ò»£ºoffline±í¿Õ¼ä
1¡¢offline±í¿Õ¼ä£ºalter tablespace tablespace_name offline£»
2¡¢¸´ÖÆÊý¾ÝÎļþµ½ÐµÄĿ¼£»
3¡¢renameÐ޸ıí¿Õ¼ä£¬²¢Ð޸ĿØÖÆÎļþ£»
4¡¢online±í¿Õ¼ä£»
1¡¢offline±í¿Õ¼äzerone
SQL> select name from v$datafile;
NAME
--------------------------------------------------------- ......
oracleȨÏÞÌåϵÖÐÓиödefault role£¬±È½ÏÄÑÒÔÀí½â¡£ÏÂÃæÓÃʵÀý˵Ã÷Ò»ÏÂ×÷Óá£
ÎÒÃÇ¿ÉÒÔ¸øij¸öÓû§·ÖÅäһЩ½ÇÉ«£¬±ÈÈçrole r1,r2,r3,r4£¬¶øÆäÖпÉÒÔ½«Ä³Ð©½ÇÉ«±ÈÈçr1ÉèÖÃΪdefault role£¬ÆäËûµÄ²»ÉèÖóÉdefault role£¬ÕâÑù£¬µ±¸ÃÓû§µÇ¼ʱ£¬×Ô¶¯¾ßÓÐdefault roleÖÐËù°üº¬µÄȨÏÞ£¬ÆäËûµÄ½ÇÉ«Ëù¾ßÓеÄȨÏÞҪͨ¹ýset role ½ÇÉ ......
Oracle and Sun
http://www.oracle.com/events/productstrategy/index.html
Oracle + Sun: Java Strategy
http://oracle.com.edgesuite.net/ivt/4000/8104/9236/12630/lobby_external_flash_clean_480x360/default.htm
Oracle + Sun: Java Strategy
......