¶à¸öoracleÊý¾Ý¿âÖ®¼äÊý¾Ý¹²Ïí database link
ÒòΪ¹«Ë¾µÄÕÆÉϳÇÊÐϵͳÔÚ¶à¸öµØÊÆͬʱÉÏÏߣ¬¶øΪÁËÈÃÿ¸ö³ÇÊеÄ3G¿ìѶ¾ßÓеØÊÆÌØÉ«ÐÔ£¬Ã¿¸öµØÊÆÓÐ×Ô¼ºµ¥¶ÀµÄÊý¾Ý¿âϵͳ£¬¶øÿ¸öµØÊƵĿìѶÓÖһЩ¹²Í¬µÄ£¬Æ©ÈçͻȻ³öÁËÒ»Ìõ¹ú¼ÊÐÂÎÅ£¬ÄÇôÊDz»ÊÇÿ¸öµØÊƵĺǫ́±à¼¶¼ÒªÂ¼ÈëÒ»±é£¬ÕâÑùÎÞÒÉÊÇ×öÁËÐí¶àÎÞÓù¦£¬ËùÒÔ¹«Ë¾¿¼ÂǼÜÉèÒ»¸ö×ÜÕ¾£¬×ÜÕ¾ÉÏÓÐרÃŵÄÈ˸ºÔð£¬Ã¿Ì츺Ôð¼ÈëһЩͨÓõģ¬²»¾ßÓеØÊÆÌØÉ«µÄÐÂÎÅ×ÊѶ£¬¶ø¸÷¸ö³ÇÊеÄÊý¾Ý¿â¶¼½«¹²Ïí×ÜÕ¾µÄÄÚÈÝ£¬Í¬Ê±ÓÖ¾ßÓб¾µØÌØÉ«µÄ×ÊѶ£¬Í¬Ê±½â·ÅÁËÈËÁ¦×ÊÔ´£¬¸÷¸ö³ÇÊпÉÒÔ¼¯ÖÐÓÚµØÊÆÌØÉ«µÄ½¨ÉèÉÏ¡£
ÕâÑùµÄ·½°¸£¬ÔÚ¼¼ÊõÉÏ£¬¾ÍÑݱä³ÉÁËÊý¾Ý¿âÖ®¼äµÄÊý¾Ý¹²Ïí£¬Ã¿µ±Â¼Èë×Üվ¼ÈëÊý¾ÝµÄʱºò£¬µ÷Óô¥·¢Æ÷£¬Í¨¹ýdatabaselinkÏòÆäËü¸÷¸ö·Öվͬ²½Êý¾Ý
Óõ½oracleµÄdatabase link,֮ǰҲû½Ó´¥¹ý£¬ÕâÁ½ÌìÒÀ¾Ý×ÊÁÏÃþË÷ÁËһϣ¬×ö¸ö¼Ç¼ÈçÏ£º
×÷ÓÃ:½«¶à¸öoracleÊý¾Ý¿âÂß¼ÉÏ¿´³ÉÒ»¸öÊý¾Ý¿â,Ò²¾ÍÊÇ˵ÔÚÒ»¸öÊý¾Ý¿âÖпÉÒÔ²Ù×÷ÁíÒ»¸öÊý¾Ý¿âÖеĶÔÏó¡£
Óï·¨:
CREATE [PUBLIC] DATABASE LINK dblink CONNECT TO user IDENTIFIED BY password USING ‘connect_string’;
DROP [PUBLIC] DATABASE LINK dblink;
×¢Òâ:Äã±ØÐëÓÐCREATE DATABASE LINK»òCREATE PUBLIC DATABASE LINKµÄȨÏÞ£¨¿ÉÓÃsysÉí·ÝÈ¥·ÖÅ䣩,ÁíÍâ,ÔÚÄãÒªÁ¬½ÓµÄÊý¾Ý¿âÉÏ,µÄȨÏÞ.
²ÎÊý˵Ã÷:
dblink: ÄãËù´´½¨µÄdatabase linkµÄÃû×Ö,
userºÍpassword:ÒªÁ¬½ÓµÄÊý¾Ý¿âµÄÓû§ÃûºÍÃÜÂë
connect_string:¿ÉÒÔÊǾ¹ýNet ManagerÅäÖõÄ(tnsnames.ora)ÇÒ¾²âÊÔ¿ÉÒÔÁ¬½ÓµÄ·þÎñÃû£¬²»¹ýÒ²¿Éд³ÉÕâÖÖÐÎʽ£¬¸üÖ±½Ó£º(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME =orcl) )
ʹÓÃ:
select * from mobile_type@dblink ;
UPDATE mobile_type@dblink m set m.type_name='83-6' where m.type_id =6;
¾ßÌå²½Ö裺
1¡¢ Á´½Ó×Ö·û´®¼´·þÎñÃû£¬Ê×ÏÈÔÚ±¾µØÅäÖÃÒ»¸ö·þÎñÃû£¬µØÖ·Ö¸ÏòÔ¶³ÌµÄÊý¾Ý¿âµØÖ·,
µ±È»Ò²¿ÉÏòÏÂÃæÄÇÑùÖ±½ÓдµÄ¡£
2¡¢´´½¨Êý¾Ý¿âÁ´½Ó£¨Ç°ÌáÊÇÒÑ·ÖÅäÏàӦȨÏÞ£©£¬½øÈëϵͳ¹ÜÀíÔ±SQL>²Ù×÷·ûÏ£¬ÔËÐÐÃüÁ
create database link wapsx
connect to WAP identified by wap
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =
Ïà¹ØÎĵµ£º
ÔÚ¹úÄÚÍâÐí¶àOracle DBAÕ¾µãÉÏ£¬Óкܶà²éÕÒ±íÖеÚn¸ö×î´óÖµµÄС¼¼ÇÉ£¬ÕâЩÓï¾äȷʵÏ൱ÇÉÃËüÃǶ¼¶À±Ùõ辶µØÓõ½ÁËOracle±íÖеÄÒ»¸öα×ֶΓlevel”¡£µ«ÊÇÔںܶàÇé¿öÏ£¬Õâ¸öÓï¾ä±ä³ÉÁË ÃÀÀöµÄÏÝÚå¡£Èç¹ûÄãÏëÖªµÀΪʲô£¬²¢ÔõÑùÈƹýËü£¬ÇëÌýÎÒµÀÀ´£¡
Ñо¿Á˼¸Ì죬ÎÒ·¢ÏÖÒ»ÖÖÑÜÉúËã·¨£¬¼´ÕÒ³öµÚn¸öºÍµÚm¸ö×î´óÖ ......
oracleÆô¶¯ÎÊÌâ
Ò»£ºÊý¾Ý¿âûÓÐÆô¶¯
#sqlplus /nolog
sql>connect /as sysdba
sql>startup
¶þ£º¼àÌý³öÎÊÌâ
µÇ¼DB·þÎñÆ÷
ʹÓÃlsnrctl start/stop¿ªÆô/¹Ø±Õ¼àÌý
ʹÓÃlsnrctl status²é¿´×´Ì¬
ÀíӦΪ£º
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ERPAP)(PORT=1521)))
STATUS of the ......
ͨ¹ý select * from table whereid=16701 for update ËøסһÕűí
ͨ¹ýÒÔÏÂÓï¾ä¿É²éѯ³ö±»ËøסµÄ¶ÔÏó
SELECT OBJECT_ID,
SESSION_ID,
SERIAL#,
ORACLE_USERNAME,
&nb ......
OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹ÔÓ뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ÀûÓÃÕâ¸ö¹¦ÄÜ¿ÉÒÔ¹¹½¨Á½¸öÏàͬµÄÊý¾Ý¿â£¬Ò»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓá£
Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ ......