|
Oracle DB¿¡ ¿ø°ÝÀ¸·Î Á¢¼ÓÇÒ ¶§´Â ¹Ýµå½Ã SQL*Net ÀÌ ¼³Ä¡ µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù. ±×¸®°í À̵é SQL*NetÀÌ DB Á¢¼Ó¿¡´Â 2°¡Áö °æ·ÎÁß Çϳª¸¦ ÀÌ¿ëÇϵµ·Ï µÇ¾îÀÖ½À´Ï´Ù.
Dedicated Server
ÀåÁ¡
1. º°µµÀÇ ÆĶó¹ÌÅÍ Ãß°¡°¡ ¶Ç´Â ¼³Ä¡°¡ ÇÊ¿ä¾ø´Ù.
2. ºü¸£´Ù
´ÜÁ¡
À¯Àú°¡ Á¢¼ÓÇÒ ¶§¸¶´Ù ÇÁ·Î¼¼½º¸¦ »ý¼º ÇÑ´Ù. (À¯Àú°¡ ¸¹À»¼ö·Ï ºÒ¸®ÇÏ´Ù)
±¸Á¶
À¯Àú°¡ Á¢¼ÓÇÒ ¶§¸¶´Ù 1À¯Àú´ç ÇϳªÀÇ ÇÁ·Î¼¼½º¸¦ ÇÒ´çÇϹǷΠºü¸£Áö¸¸ ³Ê¹« ¸¹Àº À¯Àú°¡ µ¿½Ã¿¡ Á¢¼ÓÇÏ°Ô µÇ¸é Àüü ½Ã½ºÅÛ ºÎÇϸ¦ ¸¹ÀÌ ÁÖ°Ô µÈ´Ù.
MTS (Multi-Threaded Server)
ÀåÁ¡
1. ServerÀÇ ÀÚ¿øÀ» ¸¹ÀÌ Â÷ÁöÇÏÁö ¾Ê´Â´Ù.
2. µ¿½ÃÁ¢¼Ó À¯Àú°¡ ¸¹À»¼ö·Ï À¯¸®ÇÏ´Ù. (50À¯ÀúÀÌ»ó)
´ÜÁ¡
1. Init*.ora ¿¡ º°µµÀÇ ÆĶó¹ÌÅÍ°¡ ÇÊ¿äÇÔ.
2. µ¿½ÃÁ¢¼Ó À¯Àú°¡ ÀûÀ¸¸é ¿ÀÈ÷·Á ÀÚ¿ø ³¶ºñ °¡ ½ÉÇÏ´Ù.
±¸Á¶
¹Ì¸® ¿©·¯ °³ÀÇ MTS ÇÁ·Î¼¼½º¸¦ »ý¼ºÇØ ³õ°í, dispatcher°¡ Á¢¼ÓÇØ¿À´Â À¯Àú¿¡°Ô ½¬°íÀÖ´Â MTS ÇÁ·Î¼¼½º¸¦ ÇÒ´çÇØÁÖ¾î ½Ã½ºÅÛ ÀÚ¿øÀ» ÀÏÁ¤ ÇÏ°Ô »ç¿ëÇÒ ¼ö ÀÖ´Ù.
Multi-threaded server ¼³Ä¡ ¹æ¹ý
1. MTS ÆĶó¹ÌÅÍ ¼³Á¤
initSID.ora ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ³»¿ëÀ» Ãß°¡ÇÏ°í DB¸¦ ´Ù½Ã startup ÇÑ´Ù.
Mts_dispatchers="tcp,3" # dispatcher ¸¦ 3°³¸¦ ¸¸µë.
Mts_max_dispatchers=10 # dispatcher ÃÖ´ë¼ö´Â 10°³±îÁö.
Mts_servers=5 # mts server ¸¦ 5°³ ¸¸µë.
Mts_max_servers=10 # mts server ÃÖ´ë¼ö´Â 10°³±îÁö.
Mts_service=ORA7 # DB name (SID)
Mts_listener_address="(ADDRESS=(PROTOCOL=tcp)(port=1521)(host=¼¹öÀÇ IP ȤÀº name))"
2. tnsnames.ora (Client Ãø), listener.ora(Server Ãø) ¼³Á¤ »ùÇÃ
# File name : /usr/oracle7/network/admin/listener.ora
#
LISTENER =
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)
(HOST = [color=RED]¼¹ö IP ȤÀº hostname[/color])
(PORT = 1521)
)
)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 0
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = [color=RED]SID ¸íĪ[/color])(ORACLE_HOME=[color=BLUE]/usr/oracle7[/color]) ) )
# Filename : /usr/oracle7/network/admin/tnsnames.ora
#
Á¢¼ÓÇÒ alias¸íĪ =
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)
(HOST = [color=RED]¼¹ö IP ȤÀº hostname[/color])
(PORT=1521)
)
)
(CONNECT_DATA = (SID = [color=RED]SID ¸íĪ[/color]) ) )
[b]3. Listener ±âµ¿[/b]
Unix : $lsnrctl start
WinNT : Á¦¾îÆÇ->SERVICES ¿¡¼ ORACLE***listener ¸¦ START
Win95/98/NT : c:\orawin95\bin\lsnrctl.exe start
[b]4. MTS ·Î Á¢¼Ó Å×½ºÆ®¸¦ Çغ»´Ù.[/b]
$ sqlplus scott/tiger@sample
[b][color=BLUE]MTS ·Î ¼³Á¤µÈ Listener¿¡ Dedicated ¹æ½ÄÀ¸·Î Á¢¼ÓÇϱâ[/color][/b]
MTS·Î Á¢¼ÓÇϵµ·Ï DB ¼¹ö¿¡¼ ¼³Á¤ÇØ ³õ¾ÒÁö¸¸ Dedicated·Îµµ Á¢¼ÓÀÌ °¡´ÉÇÏ´Ù.
Client ÃøÀÇ */network/admin/tnsnames.ora ÆÄÀÏÀ» ¼öÁ¤ÇÑ´Ù.
# Filename : /usr/oracle7/network/admin/tnsnames.ora
Á¢¼ÓÇÒ alias¸íĪ =
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)
(HOST = [color=RED]¼¹ö IP ȤÀº hostname[/color])
(PORT=1521)
) )
(CONNECT_DATA = (SID = [color=RED]SID ¸íĪ[/color]) ([color=RED]SRVR=DEDICATED[/color])))
|