Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚOracleÖÐʵÏÖÊý¾Ý¿âµÄ¸´ÖÆ


ÔÚInternetÉÏÔË×÷Êý¾Ý¿â¾­³£»áÓÐÕâÑùµÄÐèÇ󣺰ѱ鲼ȫ¹ú¸÷³ÇÊÐÏàËƵÄÊý¾Ý¿âÓ¦ÓÃͳһÆðÀ´£¬Ò»¸ö½ÚµãµÄÊý¾Ý¸Ä±ä²»½öÌåÏÖÔÚ±¾µØ£¬»¹·´Ó³µ½Ô¶¶Ë¡£¸´ÖƼ¼Êõ¸øÓû§ÌṩÁËÒ»ÖÖ¿ìËÙ·ÃÎʹ²ÏíÊý¾ÝµÄ°ì·¨¡£
Ò»¡¢ÊµÏÖÊý¾Ý¿â¸´ÖƵÄÇ°ÌáÌõ¼þ
1¡¢Êý¾Ý¿âÖ§³Ö¸ß¼¶¸´Öƹ¦ÄÜ
Äú¿ÉÒÔÓÃsystemÉí·ÝµÇ¼Êý¾Ý¿â£¬²é¿´v$optionÊÓͼ£¬Èç¹ûÆäÖÐAdvanced replicationΪTRUE£¬ÔòÖ§³Ö¸ß¼¶¸´Öƹ¦ÄÜ£»·ñÔò²»Ö§³Ö¡£
2¡¢Êý¾Ý¿â³õʼ»¯²ÎÊýÒªÇó
¢Ù¡¢db_domain = test.com.cn
Ö¸Ã÷Êý¾Ý¿âµÄÓòÃû(ĬÈϵÄÊÇWORLD)£¬ÕâÀï¿ÉÒÔÓÃÄú¹«Ë¾µÄÓòÃû¡£
¢Ú¡¢global_names = true
ËüÒªÇóÊý¾Ý¿âÁ´½Ó(database link)ºÍ±»Á¬½ÓµÄÊý¾Ý¿âÃû³ÆÒ»Ö¡£
ÏÖÔÚÈ«¾ÖÊý¾Ý¿âÃû£ºdb_name+”.”+db_domain
¢Û¡¢ÓиúÊý¾Ý¿âjobÖ´ÐÐÓйصIJÎÊý
job_queue_processes = 1
job_queue_interval = 60
distributed_transactions = 10
open_links = 4
µÚÒ»Ðж¨ÒåSNP½ø³ÌµÄÆô¶¯¸öÊýΪn¡£ÏµÍ³È±Ê¡ÖµÎª0£¬Õý³£¶¨Ò巶ΧΪ0¡«36£¬¸ù¾ÝÈÎÎñµÄ¶àÉÙ£¬¿ÉÒÔÅäÖò»Í¬µÄÊýÖµ¡£
µÚ¶þÐж¨Òåϵͳÿ¸ôNÃ뻽ÐѸýø³ÌÒ»´Î¡£ÏµÍ³È±Ê¡ÖµÎª60Ã룬Õý³£·¶Î§Îª1¡«3600Ãë¡£ÊÂʵÉÏ£¬¸Ã½ø³ÌÖ´ÐÐÍ굱ǰÈÎÎñºó£¬¾Í½øÈë˯Ãß״̬£¬Ë¯ÃßÒ»¶Îʱ¼äºó£¬ÓÉϵͳµÄ×ܿظºÔð½«Æ份ÐÑ¡£
Èç¹ûÐÞ¸ÄÁËÒÔÉÏÕ⼸¸ö²ÎÊý£¬ÐèÒªÖØÐÂÆô¶¯Êý¾Ý¿âÒÔʹ²ÎÊýÉúЧ¡£
¶þ¡¢ÊµÏÖÊý¾Ý¿âͬ²½¸´ÖƵIJ½Öè
¼ÙÉèÔÚInternetÉÏÎÒÃÇÓÐÁ½¸öÊý¾Ý¿â£ºÒ»¸ö½ÐÉîÛÚ(shenzhen)£¬Ò»¸ö½Ð±±¾©(beijing)¡£
¾ßÌåÅäÖüûÏÂ±í£º
Êý¾Ý¿âÃû
shenzhen
beijing
Êý¾Ý¿âÓòÃû
test.com.cn
test.com.cn
Êý¾Ý¿âsidºÅ
shenzhen
beijing
Listener¶Ë¿ÚºÅ
1521
1521
·þÎñÆ÷ipµØÖ·
10.1.1.100
10.1.1.200
1¡¢È·ÈÏÁ½Ì¨Êý¾Ý¿âÖ®¼ä¿ÉÒÔ»¥Ïà·ÃÎÊ£¬ÔÚtnsnames.oraÀïÉèÖÃÊý¾Ý¿âÁ¬½Ó×Ö·û´®¡£
¢Ù¡¢ÀýÈ磺ÉîÛÚÕâ±ßµÄÊý¾Ý¿âÁ¬½Ó×Ö·û´®ÊÇÒÔϵĸñʽ
beijing =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.200)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = beijing)
)
)
ÔËÐÐ$tnsping beijing
³öÏÖÒÔÏÂÌáʾ·û£º
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=10.1.1.200)(PORT=1521))
OK£¨nºÁÃ룩
±íÃ÷ÉîÛÚÊý¾Ý¿â¿ÉÒÔ·ÃÎʱ±¾©Êý¾Ý¿â¡£
¢Ú¡¢ÔÚ±±¾©ÄDZßҲͬÑùÅäÖã¬È·ÈÏ$tnsping shenzhen ÊÇͨµÄ¡£
2¡¢¸ÄÊý¾Ý¿âÈ«¾ÖÃû³Æ£¬½¨¹«¹²µÄÊý¾Ý¿âÁ´½Ó¡£
¢Ù¡¢ÓÃsystemÉí·ÝµÇ¼shenzhenÊý¾Ý¿â
SQL>alter database rename global_name to shenzh


Ïà¹ØÎĵµ£º

oracleÊé¼®


ºÜ¶àÅóÓÑÒªÎÒ°ïæÍƼöÒ»ÏÂOracleµÄÈëÃÅÊé¼®£¬Äܹ»Á˽âOracleµÄ»ù±¾¸ÅÄî¡¢»ù±¾ÖªÊ¶µÄÄÇÖÖ¡£
ÎÒ¾ÍÃâΪÆäÄÑ£¬ÍƼö¼¸±¾¡£
Ê×ÏÈÎÒÏëÇ¿µ÷µÄÒ»µãÊÇ£¬ÈκÎÒ»±¾ÏµÍ³µÄOracleÊé¼®Ö»ÒªÈÏÕæ¶ÁÏÂÀ´£¬¶¼»áÓв»´íµÄÊÕ»ñ£¬¶ÁÊé×î¼É»äµÄÊÇ»¢Í·Éßβ£¬Ç³³¢ÔòÖ¹¡£
1.µÚÒ»±¾ÒªÍƼö¸ø´ó¼ÒµÄÊÇOracleµÄ¸ÅÄîÊֲᣬÕâ±¾ÊÖ²áÊÇÎÞÊýDBAѧϰµÄÆðµã£ ......

ORACLEÎﻯÊÓͼ ¸ßËÙ¸ßЧ ´´½¨ÎﻯÊÓͼÌá¸ß²éѯËÙ¶È


ÄãÊÇ·ñΪµÈ´ýÄãµÄ²éѯ·µ»Ø½á¹û¶ø¸Ðµ½Æ£±¹£¿ÄãÊÇ·ñÒѾ­ÎªÔöÇ¿Ë÷ÒýºÍµ÷ÓÅSQL¶ø¸Ðµ½Æ£±¹£¬µ«ÈÔÈ»²»ÄÜÌá¸ß²éѯÐÔÄÜ£¿ÄÇô£¬ÄãÊÇ·ñÒѾ­¿¼ÂÇ´´½¨ÎﻯÊÓͼ£¿ÓÐÁËÎﻯÊÓͼ£¬ÄÇЩ¹ýÈ¥ÐèÒªÊýСʱÔËÐеı¨¸æ¿ÉÒÔÔÚ¼¸·ÖÖÓÄÚÍê³É¡£ÎﻯÊÓͼ¿ÉÒÔ°üÀ¨Áª½Ó£¨join£©ºÍ¼¯ºÏ£¨aggregate£©
ÄãÊÇ·ñΪµÈ´ýÄãµÄ²éѯ·µ»Ø½á¹û¶ø¸Ðµ½Æ£±¹£¿ÄãÊÇ·ñÒÑ ......

Ö»¶ÁȨÏÞoracleÓû§

-- Create the user
create user SMCQUERY
  identified by SMCQUERY;
-- Grant/Revoke role privileges
grant connect to SMCQUERY;
-- Grant/Revoke system privileges
grant select any table to SMCQUERY;
grant debug any procedure to SMCQUERY;
grant debug connect session to SMCQUERY;
grant cr ......

oracle ½éÖʻָ´¼ò½é

Èç¹ûÊý¾ÝÎļþË𻵣¬»áÓöµ½1157 ºÍ 1110µÄ´íÎó¡£ÕâʱºòÐèÒª½éÖʻָ´Êý¾Ý¿â¡£
»Ö¸´Êý¾Ý¿âÐèÒªÓÐÏàÓ¦µÄ±¸·ÝºÍ±¸·ÝÒÔÀ´²úÉúµÄËùÓеĹ鵵ÈÕÖ¾ÎļþºÍÁª»úÈÕÖ¾Îļþ¡£
Èç¹ûÔÚmountµ½openµÄʱºò·¢ÏÖÆÕͨµÄÊý¾ÝÎļþË𻵣¬Êý¾Ý¿â»áÍ£ÁôÔÚmount״̬Ï£¬Õâʱºò¿ÉÒÔÖ´ÐÐalter database datafile x offline drop ºÍalter database open à ......

Oracle×óÓÒÈ«Á¬½Ó×ܽá

--½¨Á¢²âÊÔÊý¾Ý
create table a(id number);
create table b(id number);
insert into a values(1);
insert into a values(2);
insert into a values(3);
insert into b values(1);
insert into b values(2);
insert into b values(4);
commit;
--×ó:
--Ö÷Á÷Êý¾Ý¿âͨÓõķ½·¨
select * from a left ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ